Title: Problem with getting linked javascript to run
Last modified: August 19, 2016

---

# Problem with getting linked javascript to run

 *  [daniko](https://wordpress.org/support/users/daniko/)
 * (@daniko)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-linked-javascript-to-run/)
 * [http://www.talkingboxmedia.com/dryarnell.com/](http://www.talkingboxmedia.com/dryarnell.com/)
 * Working on the above site, i have confirmed that my simple javascript rollover
   function works by pasting the code directly in the header.php file, and tested
   it online. However, in linking to the file via
 * <script type=”text/javascript”
    src=”<?php bloginfo(“template_url”); ?>/js/imageswap.
   js”> </script>
 * I confirm with firebug that the code is being linked/called, but the javascript
   does not run the rollover. I’m sure i’m missing/forgetting something simple, 
   as it’s been a year since i’ve put one of these together….
 * please HELP!!…and thanks

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

 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-linked-javascript-to-run/#post-1378408)
 * It’s linking fine, i think your issue is the script itself..
 * Open your JS file, you’ll kick yourself when you spot the mistake.
 * 😉
 *  Thread Starter [daniko](https://wordpress.org/support/users/daniko/)
 * (@daniko)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-linked-javascript-to-run/#post-1378410)
 * I kicked myself …….hard
 * thanks
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-linked-javascript-to-run/#post-1378418)
 * You’re welcome… 🙂

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

The topic ‘Problem with getting linked javascript to run’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-linked-javascript-to-run/#post-1378418)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
