traxman
Legacy Member
Ik zou nog moeten maken dat ik een active link kan hebben, maar dat lukt voorlopig niet, kan iemand mij helpen???
Kan iemand mij helpen,
alvast bedankt.
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
a{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#FFFFFF; text-decoration: none;}
.toolbar{ background-color:#666666;}
</style>
<script language="javascript">
function linkOn(currentLink, cell) {
currentLink.style.color = "#990000";
currentLink.style.fontWeight = "bold";
currentLink.style.textDecoration = "underline";
var currentCell = document.getElementById(cell);
currentCell.style.backgroundColor = "#CCCCCC";
}
function linkOff(currentLink, cell) {
currentLink.style.color = "#FFFFFF";
currentLink.style.fontWeight = "normal";
currentLink.style.textDecoration = "none";
var currentCell = document.getElementById(cell);
currentCell.style.backgroundColor = "#666666";
}
function linkAct(currentLink, cell) {
currentLink.style.color = "#F6F6F6";
currentLink.style.fontWeight = "bold";
currentLink.style.textDecoration = "none";
var currentCell = document.getElementById(cell);
currentCell.style.backgroundColor = "#FFFFFF";
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="600" border="0" cellpadding="3" cellspacing="0">
<tr align="center">
<td class="toolbar" id="news" width="120">
<a href="javascript:linkAct(currentLink, cell);" onMouseOver="linkOn(this, 'news');" onMouseOut="linkOff(this, 'news');" onClick="linkAct(this, 'news')">News</a>
</td>
</tr>
</table>
</body>
</html>
Kan iemand mij helpen,
alvast bedankt.
want je zou moeten vaststellen dat zowel de mousedown als de mouseup op hetzelfde element toegepast worden en dat zou overeen komen met "click"
