| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
help with j/s for slide show | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
![]() You have the sizes in the wrong place. Replace this:
new fadeshow(fadeimages, , 400, 267, 1, 3000, 0, "R") with this: new fadeshow(fadeimages, 400, 267, 0, 3000, 0, "R")
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#12
|
|||||||
|
|||||||
![]() Thanks,
I tried that - to no avail- still not working. Its driving me crazy. As is often the case it is probably something really simple. ![]()
__________________
scott v x cart version 4.1.8 (Unix) |
|||||||
#13
|
|||||||
|
|||||||
![]() I'd start over from scratch, as you have probably changed something somewhere that is causing the problem. I use this script all the time, so I know it works. Paste the default code in, change the image names and image size and that is it.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#14
|
|||||||
|
|||||||
![]() Thats a great idea.
Glad to know its not hte script- didn't hink it was but you never know. Will dump and build see what happens. Will post back to you, Thanks for all your time and effort - you make a huge difference to people like me that are trying to get better at this stuff. Know it takes time but AYE CARUMBA Scott V
__________________
scott v x cart version 4.1.8 (Unix) |
|||||||
#15
|
|||||||
|
|||||||
![]() Yea, I remember fighting with this the first time I tried it as well. Also, while you are at it, to do it right and keep your code clean, save the javascript portion that you put in the head as a separate file - I usually call it slideshow.js. You won't need the literal or <script> part, just what is in between the <script> and </script> Put that file in skin1/. Then in your head of home.tpl, put this:
{if $main eq "catalog" and $current_category.category eq ""} <script type="text/javascript" language="JavaScript 1.2" src="{$SkinDir}/slideshow.js"></script>{/if} That only runs the script on the home page, and keeps the code out of the source.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#16
|
|||||||
|
|||||||
![]() Hey Balinor,
Like a dog I have been nawing away on this and finally success- well almost. ![]() I have gotten the slide to work, but when I try to add the code to the skin1.css and put the recomended code into the home.tpl when I look a the slide show in IE I see 2 small missing image icons underneath the slide show images- these missing image icons are hyperlinks that when clicked take me back to either cssdrive.com, or javascriptkits.com I went back into the dynamic drive script and removed the two references I found for these- near the top of the script where the images for the fade are listed- cleared my cache yet they still show up. As you know a newbie here, I haven't put j/s into the skin before. I have tried to reference it a couple of ways thinking that this might be why this problem is happening. I have put the script in like this .slideshow.js { script goes here } also tried slideshow.js { script here } and #slideshow.js { script here } I have not included <script> </script> or {literal} {/literal} just the code. Should I be calling for this in some other manner ? It would be greati f I coud get the js into the skin put at this point I am happy just to get the script working. any thoughts? Thanks Scott V xcart 4.18
__________________
scott v x cart version 4.1.8 (Unix) |
|||||||
#17
|
|||||||
|
|||||||
![]() Ummm...don't think you understood my post. You need to create a new .js file called slideshow.js. This is simply a text file. You then upload that file to the skin1/ directory. You don't do anything with skin1.css.
As for the missing images, those are probably from the second image part of the script, you can delete that all together.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#18
|
|||||||
|
|||||||
![]() This is old code from dynamic drive. This is all I use and works perfectly in php.
Code:
__________________
X-Cart Version 4.1.8 Hosted on Linux |
|||||||
#19
|
|||||||
|
|||||||
![]() DUHHHHH
missed that in the post. Too many hours looking at the same thing. Makes much more sense with a fresh set of eyes. Made txt file and added to skin1/directory. moving on. again many thanks Scott V
__________________
scott v x cart version 4.1.8 (Unix) |
|||||||
#20
|
|||||||
|
|||||||
![]() Raxiitpatel,
THanks for the code Thisis basically the same scrript I am using, Being the knuckhead I am with much of thsi stuff I was having probelms getting it to work right. Think I solved the problems as it is working and moving on to other things. Thanks again for the reply though. Scott V
__________________
scott v x cart version 4.1.8 (Unix) |
|||||||
|
|||
X-Cart forums © 2001-2020
|