If you're new to the CafePress Community Forums, be sure to read our Forum Guidelines before you post anything.

    Community Forums: Home    CafePress Community Forums  Hop To Forum Categories  General Help & Sharing  Hop To Forums  Shop Customization & HTML    Creating a "popular items" image rotation
Page 1 2 3 4 5 6 
Go
New
Find
Notify
Tools
Reply
  
  Login/Join 
Picture of BurnTees
Posted Hide Post
hey there,
so, i've had the rotating script on my page for a while and i wanted to try putting 3 side by side so that i could show more images without people having to wait for the whole cycle to go thru. i tried just taking the script, copying and pasting three times, inserting <table> at the beginning and all the other table codes in between. however, for some reason, i just can't get it to work. has anyone else tried using multiple scripts on one page like that?
 
Reply With QuoteEdit or Delete MessageReport This Post
Picture of BizarreTs
Posted Hide Post
I haven't tried doing that with 3 scripts, but I do have the 1 script in a table and it's showing where it should be. Can you post the html of your table code? Maybe it's missing something.


~Kelly

Affiliate Sites Are Always Accepting Submissions
Dirtees.com Crude & Funny T-Shirts - DevotedGifts.com
PM me, I don't bite. I promise! Ok. Well maybe a little.
 
Reply With QuoteEdit or Delete MessageReport This Post
Picture of Tanith
Posted Hide Post
Often you need to change some of the variable names to get more than one copy working correctly.


Diane Blackman
 
Reply With QuoteEdit or Delete MessageReport This Post
Picture of BurnTees
Posted Hide Post
 
Reply With QuoteEdit or Delete MessageReport This Post
Picture of BizarreTs
Posted Hide Post
Do you mean that if the code is numbering them 1, 2, 3, you would continue the next chunk of code with 4, 5, 6 so the numbers don't overlap?


~Kelly

Affiliate Sites Are Always Accepting Submissions
Dirtees.com Crude & Funny T-Shirts - DevotedGifts.com
PM me, I don't bite. I promise! Ok. Well maybe a little.
 
Reply With QuoteEdit or Delete MessageReport This Post
Picture of Tanith
Posted Hide Post
quote:
Originally posted by BizarreTees:
Do you mean that if the code is numbering them 1, 2, 3, you would continue the next chunk of code with 4, 5, 6 so the numbers don't overlap?


It depends on the code and how it works. I took a quick look but I'm not experienced enough in scripting to be able to do a quick analysis. Someone with more experience may know. But the question may have already been asked/answered on the Dynamic Drive forums - that's where I'd look first to save myself the trouble.

There are two kinds of things that happen is such scripts. One is the array numbering that keeps the image and links matching, and keeps stuff in order. Usually that is done by setting a variable then incrementing it with each loop.

The second is information about where the re-write occurs. There is usually some kind of name or id given to the "container" where the image and link are written. If more than one container has the same name errors occur.


Diane Blackman
 
Reply With QuoteEdit or Delete MessageReport This Post
Picture of HecticDMC
Posted Hide Post
Funny, I thought I stickied this thread when it was new... I think I meant to... I didn't notice it was gone Frowner

Anyway, I went ahead and stickied it on the premise that this is probably one of the more frequently asked-about add-ons to a shop.


~ Daniel M. Clark

Shop: Hectic Studios -¤°¤- Book: Success With CafePress.com

For Affiliates: Review Builders
 
Reply With QuoteEdit or Delete MessageReport This Post
Picture of Zibuka
Posted Hide Post
Hi All

Here's a link to a tutorial at Dynamic Drive teaching how to run multiple javascripts on a single page. Adding Multiple Javascripts to a Single Page. This should help with makng multiple slideshow scripts run on one page.

Take care

Clint

This message has been edited. Last edited by: Zibuka,
 
Reply With QuoteEdit or Delete MessageReport This Post
Picture of HecticDMC
Posted Hide Post
Good link Smiler
It's important to remember that wherever possible, scripts should have unique names and variables to avoid conflicts. When I was studying C++ in school, it was drilled into us to use completely unique variable names, and often simply adding a two or three letter combination to the front or back of a name would do the trick. Basically, instead of

var = text;

you would use

var = hstext; or var = texths;

where the hs, in my case, might stand for Hectic Studios. It's not a guarantee to solve all conflict problems, but it will go a long way.


~ Daniel M. Clark

Shop: Hectic Studios -¤°¤- Book: Success With CafePress.com

For Affiliates: Review Builders
 
Reply With QuoteEdit or Delete MessageReport This Post


Picture of ~goatlady~
Posted Hide Post
I love the script and use it in both of my shops, blogs, my space and anywhere else I can use it.. I have it changed as often as I think about it.. and you can add as many images as you like by just adjusting the script.. You can also adjust the speed..

BTW I Love the fade in effect at thefamouslabel Shop..
 
Reply With QuoteEdit or Delete MessageReport This Post
Former CP Cheerleader
Picture of Benthabits
Posted Hide Post
quote:
BTW I Love the fade in effect at thefamouslabel Shop..



Thanks Smiler


~~All Designs Are NOT Created Equal, They shouldn't be charged that way~~
 
Reply With QuoteEdit or Delete MessageReport This Post
Picture of kayecee
Posted Hide Post
Stupid question- I think I can figure out how to get the link images- (go to my shop, pick the product I want, right click, properties) Correct?

But, uh, where do I get the fade images URL? What does that mean?
 
Reply With QuoteEdit or Delete MessageReport This Post
Picture of photographr
Posted Hide Post
Cool!! Thanks for the code!

I added this to my site because I wanted something else in my Left Nav to attract attention. I think it looks pretty good.

What do you peeps think?
http://www.cafepress.com/jfphotography

Smiler
 
Reply With QuoteEdit or Delete MessageReport This Post
Picture of freelief
Posted Hide Post
Flippin' awesome ... can't wait to try it!!
 
Reply With QuoteEdit or Delete MessageReport This Post
Picture of freelief
Posted Hide Post
I used it at my website ... it looks like it is working on my end. I'm using Firefox on a Mac. If anyone has problems with it, let me know what browser you're using.

Thanks for sharing!
 
Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community Page 1 2 3 4 5 6  
 

    Community Forums: Home    CafePress Community Forums  Hop To Forum Categories  General Help & Sharing  Hop To Forums  Shop Customization & HTML    Creating a "popular items" image rotation