JavaScript problem…
-
I`ve got a “small” problem that drives me crazy…i have changed my template for my wordpress self-hosted…in my old theme i had a rollover script, and when i put the code in my new one, it doesn’t work at all…i tried locally and works perfect, but not when i upload it (the same script, was working fine…)…i even re-installed a fresh copy…but the same problem…i have “<?php wp_head(); ?>” and “<?php wp_footer(); ?>” tags….
the script is something like this:<head>
<script LANGUAGE=”JavaScript”>
<!–if (document.images) {
img01 = new Image();
img01.src = “http:// url to image1.png”;
img012 = new Image();
img012.src = “http:// url to image2.png”;}
function OnImage(name) {
if (document.images) {
fullname = eval(name + “2”);
document[name].src = fullname.src;
}
}
function OffImage(name) {
if (document.images) {
fullname = eval(name);
if (fullname.complete) {
document[name].src = fullname.src;
}
}
}
//–>
</script>
</head>and in body,
<img name=”img01″ src=”http:// url to image1.png” border=”0″ title=”title”>
i would really apreciate your help…and thank you for reading…
I have cleared the WordPress Cache, and my browser cache…still not working… i just don’t understand what could it be…
The topic ‘JavaScript problem…’ is closed to new replies.