Title: Javascript Not Working
Last modified: August 19, 2016

---

# Javascript Not Working

 *  [godheval](https://wordpress.org/support/users/godheval/)
 * (@godheval)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/javascript-not-working/)
 * Hi.
 * I’m trying to make the following script…
 * [http://www.poguri.com/hello.html](http://www.poguri.com/hello.html)
 * (hover over and click the little guy in the corner)
 * …work on my main page:
 * [http://www.poguri.com](http://www.poguri.com)
 * But it just won’t happen. Any help is greatly appreciated.

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

 *  Thread Starter [godheval](https://wordpress.org/support/users/godheval/)
 * (@godheval)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/javascript-not-working/#post-939912)
 * Oh, I suppose I should mention…
 * The difference is that on my main page, I’m calling the javascript from an external
   file, located here:
 * [http://www.poguri.com/scripts/talk.js](http://www.poguri.com/scripts/talk.js)
 *  Thread Starter [godheval](https://wordpress.org/support/users/godheval/)
 * (@godheval)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/javascript-not-working/#post-939922)
 * I’m really not having any luck with getting my questions answered in these forums.
 * Oh well, so I managed to solve it myself, again.
 * Should anyone need to do this, it was a matter of changing every instance of:
 * **document.swapDiss.src**
 * to…
 * **document.getElementById(swapDiss).src**
 * And changing the **img name** property to **img id**. This made the script work
   AND validate in XHTML strict.
 *  [LumBenny](https://wordpress.org/support/users/lumbenny/)
 * (@lumbenny)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/javascript-not-working/#post-940318)
 * Hey trying to get something similar working but images aren’t showing.
 * think it has to do with PHP, any help?
 * [http://lumlighting.com/wordpress/lum/?page_id=152](http://lumlighting.com/wordpress/lum/?page_id=152)
 * [http://lumlighting.com/images/talk.js](http://lumlighting.com/images/talk.js)

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

The topic ‘Javascript Not Working’ is closed to new replies.

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [image](https://wordpress.org/support/topic-tag/image/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [LumBenny](https://wordpress.org/support/users/lumbenny/)
 * Last activity: [16 years, 12 months ago](https://wordpress.org/support/topic/javascript-not-working/#post-940318)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
