Title: JavaScript problem&#8230;
Last modified: August 19, 2016

---

# JavaScript problem…

 *  [blogshot](https://wordpress.org/support/users/blogshot/)
 * (@blogshot)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/javascript-problem-4/)
 * 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”>](http:// url)
 * 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…

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/javascript-problem-4/#post-1515416)
 * [http://codex.wordpress.org/Function_Reference/wp_enqueue_script](http://codex.wordpress.org/Function_Reference/wp_enqueue_script)
 *  Thread Starter [blogshot](https://wordpress.org/support/users/blogshot/)
 * (@blogshot)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/javascript-problem-4/#post-1515504)
 * thank you very much esmi… i have managed to resolve it…(after i smashed my keyboard
   a few times lol)i put the script in wordpress 3.0 beta2…didn`t work…i don’t know
   why…(i know it’s beta version but…) i “downgraded” to 2.9.2, and it’s ok now…
 * Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘JavaScript problem…’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [blogshot](https://wordpress.org/support/users/blogshot/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/javascript-problem-4/#post-1515504)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
