Click to See Complete Forum and Search --> : PLEASE HELP ME! :( - Having trouble loading pics here


Jon15N
01-20-2003, 06:12 PM
Hello all,
I have a bit of a problem.
The web site I'm starting
(www.indianasc.org/~district2/)
Seems to be having problems loading all of the pictures for my javascript hover buttons. As soon as the page pops up, they are not there, but when your mouse gos over them, they are. Plus, the "highlight" buttons are the ones that pop up first, not the regular unclicked blue buttons.
Please help me out!

Thanks,
Jon
Jon15N@aol.com

jdavia
01-20-2003, 09:55 PM
Use the complete address to where the files are, like this:

<IMG src="http://www.indianasc.org/~district2/buttons/home.gif" id="home"

Not this:

<IMG src="../buttons/home.gif" id="home"

And it will work.

Jon15N
01-21-2003, 10:48 AM
Thank you, I appreciate it.

spufi
01-22-2003, 08:02 PM
I have feeling that the following code would have worked. I think he was pointing to the wrong directory and that's why it wasn't being found. I'm just saying this because I use relative links all over the place on my site. The only time I use absolute links is when I'm pointing to something outside of my website. This also helps when you need to move your site from one URL to another.

<IMG src="buttons/home.gif" id="home" alt="home">

jdavia
01-22-2003, 08:55 PM
var imagePath = "http://www.indianasc.org/~district2/buttons/"
/*
** imagePath is the full URL path to the stored images.
His code says the full path to the stored images. Otherwise he could have coded it with a relative path. Then a relative path would have opened them.