Indexhibit

Login:

Created by:
Daniel Eatock &
Jeffery Vaska

Built with Indexhibit

Random Image Javascript

 

Indexhibit version: 2.0
Thread is resolved.

michaeloew
UNITED STATES
1 year(s) ago
Permalink Post

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
GREECE
1 year(s) ago
Permalink Post

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
UNITED STATES
1 year(s) ago
Permalink Post

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

Showing 1 - 3 of 3 posts in Forum » Customize » Random Image Javascript
 

This thread has been closed, thank you.