Random Image Javascript

michaeloew / 2012-11-17 22:47:05   

Hello Indexhibit,

I'm finding it difficult to make a random image script work on my homepage. Below is my homepage:
michaeloew.com

...and here's what I want the "click" button to be able to do (just look at the source to see the javascript I used; pretty simple):
michaeloew.com/…

I tried placing the javascript portion of the code in all sorts of places, but to no avail. Is this something I need to make a .js file for? If so, how do I set it up and get the home page to refer to it to make the jpeg switch out when the mouse hovers over?

Also, all sorts of formatting stuff is of with the menu currently, but I'll address that in another post so as not to anger the forum gods ;)

Thanks everyone!

arsondpi / 2012-11-18 00:11:07   

1. try swiching off the text processing in the text area of your main page.
paste the script and the html in there. Use absolute urls (meaning include http:/ etc. etc.)

2. incluse the html page you made using an iframe? don't know if it will work but it's worth a try

michaeloew / 2012-11-18 16:47:58   

The second I read "iframe" I just felt plain silly for not thinking of that before. Thanks arsondpi! It works wonderfully!

This thread has been closed, thank you.