I created some images with rollover effects in one folder on my server, and just moved them to a different folder on my server, and they no longer work! What gives with javascript? I thought all the javascript code for a rollover effect was right in the code of the image page itself...?
Why don't the rollover effects work any longer? If I go back to the other folder I copied them from they still work.
Dale
#1
The code for JavaScript still requires a path to where the images are located. If the path is wrong the images won't show up. You may have to go into the code and adjust the code manually by entering the path to the new folder.
Peadge :-)
wrote in message
I created some images with rollover effects in one folder on my server, and just moved them to a different folder on my server, and they no longer work! What gives with javascript? I thought all the javascript code for a rollover effect was right in the code of the image page itself...?
Why don't the rollover effects work any longer? If I go back to the other folder I copied them from they still work.
Dale
#2
wrote in message
I created some images with rollover effects in one folder on my server, and just moved them to a different folder on my server, and they no longer work! What gives with javascript? I thought all the javascript code for a rollover effect was right in the code of the image page itself...?
The references in your page are looking to a specific folder, just as they look for the images in a specific folder. Don't expect Javascript to read your mind.
#3
I looked at the source code and it referenced a
GeneratedItems/CSScriptLib.js file, and I just figured out that it DIDN'T have the requisite number of ../ to actually reference that file. Once fixed, the rollovers worked.
I don't remember where that folder came from originally and I don't remember copying that file over when I set up my rollovers.
I guess I want to know what the CSScriptLib.js code does...? I used ImageReady for the rollover effects.
Thanks,
Dale
#4