hallo,
ik ben bezig met het bouwen van een website en wil een koppeling maken naar een andere pagina en dan moet de pagina niet in een nieuw venster worden geopend maar in hetzelfde venster.
Dit is mijn code:
<html>
<head>
<title>- Techtuts -</title>
<style type="text/css">
BODY {scrollbar-3dlight-color:#778899;
scrollbar-arrow-color:#FFFFFF;
scrollbar-base-color:#7F7F7F;
scrollbar-track-color:#FFFFFF;
scrollbar-darkshadow-color:#FFFFFF;
scrollbar-face-color:#B0C4DE;
scrollbar-highlight-color:#E0E0E0;
scrollbar-shadow-color:#483D8B}
</style>
<style type="text/css">
A {
COLOR: #000080; FONT: 10 pt verdana; TEXT-DECORATION: none
}
A:hover {
COLOR: #FF0000
}
</style>
<script language="Javascript">
function SelectIt(What){
if (What.value=="") {
alert('er is niets te selecteren')
}else{
What.focus();
What.select();
if (document.all){
What.createTextRange().execCommand("Copy");
alert("Script is geselecteerd ( plakken met Ctrl V )");
}}}
</script>
<!-- Begin code -->
<script>
<!--
if (window.Event) // Only Netscape will have the CAPITAL E.
document.captureEvents(Event.MOUSEUP); // catch the mouse up event
function nocontextmenu() // this function only applies to IE4, ignored otherwise.
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e) // This function is used by all others
{
if (window.Event) // again, IE or NAV?
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
//-->
</script>
<!-- End code -->
<style>
body{font-family:verdana;}
table{font-size:80%;background:white}
a{
color:black;
text-decoration:none;
font:bold;
font-size: 10px;
}
a:hover{color:#FF0000}
td.menu{background:#D8D8D8}
table.menu
{
font-size:100%;
position:absolute;
visibility:hidden;
}
body,td,th {
font-size: 10px;
}
h1 {
font-size: 10px;
}
h2 {
font-size: 11px;
}
h3 {
font-size: 12px;
}
.style1 {color: #CCCCCC}
</style>
<base target="_blank">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
</head>
<body>
<script language="JavaScript">
function toonmenu(elmnt)
{
document.all(elmnt).style.visibility="visible"
}
function verstopmenu(elmnt)
{
document.all(elmnt).style.visibility="hidden"
}
</script>
<table width="826" cellspacing="0">
<tr bgcolor="#999999">
<td onmouseover="toonmenu('site1')" onmouseout="verstopmenu('site1')" bgcolor="#8497e6" width="271" height="14"><a href="test.html">HOME</a><br />
<table id="site1" class="menu" width="75%">
<tr>
<!-- verberg menu
<td class="menu"><a href="test.html">Wie</a></td>
</tr>
<tr>
<td class="menu"><a href="test.html">Test</a></td>
</tr>
<tr>
<td class="menu"><a href="test.html">Test</a></td>
</tr>
<tr>
<td class="menu"><a href="test.html">Test</a></td>
</tr>
<tr>
<td class="menu"><a href="test.html">Test</a></td>
etc....
als ik nu op test.html klik wordt een nieuw venster geopend maar dit is eigelijk niet de bedoeling. Hoe kan ik dit zo makkelijk aanpassen dat dit wel werkt?
Bedankt!
ik ben bezig met het bouwen van een website en wil een koppeling maken naar een andere pagina en dan moet de pagina niet in een nieuw venster worden geopend maar in hetzelfde venster.
Dit is mijn code:
<html>
<head>
<title>- Techtuts -</title>
<style type="text/css">
BODY {scrollbar-3dlight-color:#778899;
scrollbar-arrow-color:#FFFFFF;
scrollbar-base-color:#7F7F7F;
scrollbar-track-color:#FFFFFF;
scrollbar-darkshadow-color:#FFFFFF;
scrollbar-face-color:#B0C4DE;
scrollbar-highlight-color:#E0E0E0;
scrollbar-shadow-color:#483D8B}
</style>
<style type="text/css">
A {
COLOR: #000080; FONT: 10 pt verdana; TEXT-DECORATION: none
}
A:hover {
COLOR: #FF0000
}
</style>
<script language="Javascript">
function SelectIt(What){
if (What.value=="") {
alert('er is niets te selecteren')
}else{
What.focus();
What.select();
if (document.all){
What.createTextRange().execCommand("Copy");
alert("Script is geselecteerd ( plakken met Ctrl V )");
}}}
</script>
<!-- Begin code -->
<script>
<!--
if (window.Event) // Only Netscape will have the CAPITAL E.
document.captureEvents(Event.MOUSEUP); // catch the mouse up event
function nocontextmenu() // this function only applies to IE4, ignored otherwise.
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e) // This function is used by all others
{
if (window.Event) // again, IE or NAV?
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
//-->
</script>
<!-- End code -->
<style>
body{font-family:verdana;}
table{font-size:80%;background:white}
a{
color:black;
text-decoration:none;
font:bold;
font-size: 10px;
}
a:hover{color:#FF0000}
td.menu{background:#D8D8D8}
table.menu
{
font-size:100%;
position:absolute;
visibility:hidden;
}
body,td,th {
font-size: 10px;
}
h1 {
font-size: 10px;
}
h2 {
font-size: 11px;
}
h3 {
font-size: 12px;
}
.style1 {color: #CCCCCC}
</style>
<base target="_blank">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
</head>
<body>
<script language="JavaScript">
function toonmenu(elmnt)
{
document.all(elmnt).style.visibility="visible"
}
function verstopmenu(elmnt)
{
document.all(elmnt).style.visibility="hidden"
}
</script>
<table width="826" cellspacing="0">
<tr bgcolor="#999999">
<td onmouseover="toonmenu('site1')" onmouseout="verstopmenu('site1')" bgcolor="#8497e6" width="271" height="14"><a href="test.html">HOME</a><br />
<table id="site1" class="menu" width="75%">
<tr>
<!-- verberg menu
<td class="menu"><a href="test.html">Wie</a></td>
</tr>
<tr>
<td class="menu"><a href="test.html">Test</a></td>
</tr>
<tr>
<td class="menu"><a href="test.html">Test</a></td>
</tr>
<tr>
<td class="menu"><a href="test.html">Test</a></td>
</tr>
<tr>
<td class="menu"><a href="test.html">Test</a></td>
etc....
als ik nu op test.html klik wordt een nieuw venster geopend maar dit is eigelijk niet de bedoeling. Hoe kan ik dit zo makkelijk aanpassen dat dit wel werkt?
Bedankt!
[ Voor 15% gewijzigd door saxion op 23-11-2004 16:47 ]
check de homepage button> ICT portal: techtuts.host.sk