You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
I inserted a dynamic slideshow element into my splash page & layout. Now I am having issues linking the individual pictures, which is a feature of the slideshow.
Here is the general input I was provided and instructed to fill in my info:
var fadeimages=new Array() //SET IMAGE PATHS. Extend or contract array as needed fadeimages[0]=["photo1.jpg", "", ""] //plain image syntax fadeimages[1]=["photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax fadeimages[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
Here is what I have now:
var fadeimages=new Array() //SET IMAGE PATHS. Extend or contract array as needed fadeimages[0]=["(CGIVAR)images_path(/CGIVAR)/site/splash.jpg"], "(CGIVAR)common_url(/CGIVAR)&pg=new","" fadeimages[1]=["(CGIVAR)images_path(/CGIVAR)/site/splash_hardy.jpg"], "(CGIVAR)common_url(/CGIVAR)&pg=hardy","" fadeimages[2]=["(CGIVAR)images_path(/CGIVAR)/site/splash211.jpg"], "(CGIVAR)common_url(/CGIVAR)&pg=new","" fadeimages[3]=["(CGIVAR)images_path(/CGIVAR)/site/splash_hardy.jpg"], ["(CGIVAR)common_url(/CGIVAR)&pg=hardy","" var fadebgcolor="white"
I know one of my problems is that I am trying to link to a category in two of them ("hardy"), and I'm not sure how to do that command or if it's possible... But the other one "new" should work, as I had it working before. No idea what I'm doing wrong.
my site: wwwroversallover.com/store
Offline
Well, I see one problem right off. You have an extra [ here:
site/splash_hardy.jpg"], ["(
That's causing a javascript error that could be affecting the ability of the show to work. Also, unless I'm misreading the instructions, the ]'s should be at the end of each line, not in the middle. In other words, instead of:
fadeimages[0]=["(CGIVAR)images_path(/CGIVAR)/site/splash.jpg"], "(CGIVAR)common_url(/CGIVAR)&pg=new",""
It should be:
fadeimages[0]=["(CGIVAR)images_path(/CGIVAR)/site/splash.jpg", "(CGIVAR)common_url(/CGIVAR)&pg=new",""]
And similarly for the other lines. I believe those errors are keeping the javascript from compiling and that's why you're not seeing anything.
Offline
I had previously tried that, and it didnt work, but I think you nailed it... i must have had something out of place. Thanks for your help.
Also, do you have any idea how I link to a specific category? Is this possible?
Offline
You're welcome. It was probably the extra [. I believe the category reference is done by '&pg=cat&ref=hardy'.
Offline