X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Javascript Change Image Issues (https://forum.x-cart.com/showthread.php?t=39213)

bedardh 04-20-2008 08:40 PM

Re: Javascript Change Image Issues
 
I'm not sure what you mean by "clearing x-cart's own cache," but I have refreshed the browser and viewed the page source. I'm actually trying this on my test area if you want to take a look at the source. Maybe there's something there that I'm missing ...

http://girlsnightoutdesigns.com/gtest/girlsnight/home.php

kube 04-20-2008 09:02 PM

Re: Javascript Change Image Issues
 
cool. I see. Although the images it is referencing do not exist within that folder now. For example, http://girlsnightoutdesigns.com/gtest/girlsnight/girlsnight/images/nav_pic-nav_cigarboxes_over.gif.

If it was one above inside gtest instead of gtest/girlsnight; or you uploaded the images with the appropriate folders so that the javascript can find them, perhaps.

Also try removing the if preloaded part temporarily. This should help a lot in finding out if the images are correctly referenced. Within function changeImages() remove the... && (preloadFlag == true) ...part. And remember to put it back when finished testing.

=======================
EDIT: I updated the link to the example gif, I referred to the wrong image.

bedardh 04-20-2008 09:17 PM

Re: Javascript Change Image Issues
 
I changed the image paths in the javascript code and took out the if preloaded part like you suggested. That was IT!!

Amazing! You are my personal savior. THANK YOU!!!

kube 04-20-2008 09:24 PM

Re: Javascript Change Image Issues
 
Remember to put the && (preloadFlag == true) part back, otherwise it would cease to be a preloader.


All times are GMT -8. The time now is 01:27 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.