hi!
I’m trying to make the link switch color when you move the cursor over them using the script from this page
[url]http://www.htmlgoodies.com/tutorials/web_graphics/article.php/3479941
the result is
[url]http://www.cobeflow.com/java.htm
On purpose i’ve only tried to script the links “bilder” and “utstilling” (cause i can’t make it work and don’t want the codes to be too complicated)
but as you see “utstilling” is changing nothe when i scroll over “utstilling” AND “bilder”…..
Can anybody please tell me what i’m doing wrong???
I’ve also tride to make everything as one script, like below, but that didn’t work either….
<script type=”text/javascript” language=”javascript”>
<!– hide from none JavaScript Browsers
Image1= new Image(40,24)
Image1.src = “images/knapper/bilder.jpg”
Image2 = new Image(40,24)
Image2.src = “images/knapper/bilderinna.jpg”
Image3= new Image(40,24)
Image3.src = “images/knapper/utstilling.jpg”
Image4 = new Image(40,24)
Image4.src = “images/knapper/utstillinginna.jpg”
function SwapOut() {
document.imageflip.src = Image2.src; return true;
}
function SwapBack() {
document.imageflip.src = Image1.src; return true;
}
function SwapOut() {
document.utstilling.src = Image4.src; return true;
}
function SwapBack() {
document.utstilling.src = Image3.src; return true;
}
// – stop hiding –>
</script>
</head>