Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Javascript Change Image Issues

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 04-20-2008, 08:40 PM
 
bedardh bedardh is offline
 

Member
  
Join Date: Feb 2006
Posts: 14
 

Default 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
__________________
Holly
x-cart v. 4.4.2
Reply With Quote
  #12  
Old 04-20-2008, 09:02 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default 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.
__________________
Doms
kube v4.1.9
Reply With Quote
  #13  
Old 04-20-2008, 09:17 PM
 
bedardh bedardh is offline
 

Member
  
Join Date: Feb 2006
Posts: 14
 

Default 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!!!
__________________
Holly
x-cart v. 4.4.2
Reply With Quote
  #14  
Old 04-20-2008, 09:24 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Javascript Change Image Issues

Remember to put the && (preloadFlag == true) part back, otherwise it would cease to be a preloader.
__________________
Doms
kube v4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:19 AM.

   

 
X-Cart forums © 2001-2020