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
General Help & Sharing
Shop Customization & HTML
Creating a "popular items" image rotation|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Moderator |
This came from another topic, so I thought I'd post it in this section and link to it.
If you are looking to do a rotating product image, you can create an animated .gif with several products. However, that doesn't give you a big bang for the buck, as you can only link one URL to an image. If someone likes the product they just saw in one of the image frames, they still have to track it down. So, another solution? Here you go. Let me start by giving credit where due. I came on this script at HecticDMC's site. It comes from Dynamic Drive, but I got Daniel's permission to post as well, since it's part of his site design. Copy the script below and paste it anywhere you want the rotating images to appear. You will need to make the following changes:
That's it! You *can* make these changes as well:
Here's the script. Don't be skeered by code. (Ahhh, forget it. I'm going to just post a text file.) or, http://www.cafewish.com/scripts/rotateimage.txt This message has been edited. Last edited by: Teesed, Teesed@Cafepress ~ OurGayApparel ~ RightWingSwag ~ Undamned Teesed ~ getahoodie ~ search4tees ~findmytee ~ findmysticker CafePress Tools at Cafewish.com: WishAds™! | Categories Script! | Likewise™ for Premium Shops | Teesed's Bag O' Scripts Affiliate Tools: ToMyInbox.com - affiliate donots in your inbox - and more! |
||
|
|
|
Part of the reason I'm hesitant to post code myself sometimes is that the message board messes up HTML
Try this: Edit the post, then re-paste the script back in, as it should be. Click the Options link in the left hand side of the posting form, and disable HTML conversion. That should work. I hope. If not, maybe you could post a plain text file somewhere for peeps to download ~ Daniel M. Clark |
|||
|
I checked out your site...cool effect! I might borrow that and give it a whirl. Good job everyone!
|
||||
|
|
Moderator |
Thanks, Daniel. I did the "code" tags, thinking that would basically put it up as formatted text, and I did a quick check and it looked fine. Strange how it BB'd the first two items in the array, but not the rest. Spawn of the Devil, computers are.
So, reposted with HTML off. Post here if you have problems. Someone should be able to fix them. FYI, I'm working on tweaking it so that it can also rotate text along with the image and link. If successful, I'll post the new code and what changes to make. Teesed@Cafepress ~ OurGayApparel ~ RightWingSwag ~ Undamned Teesed ~ getahoodie ~ search4tees ~findmytee ~ findmysticker CafePress Tools at Cafewish.com: WishAds™! | Categories Script! | Likewise™ for Premium Shops | Teesed's Bag O' Scripts Affiliate Tools: ToMyInbox.com - affiliate donots in your inbox - and more! |
|||
|
|
|
Looks good - one last thing though - there are a few places where you see this:
**** what that's supposed to be is this: <img but the boards don't allow it. I typed it in by using the &code for the left angle brace - & l t ; without the spaces. This message board is weird sometimes ~ Daniel M. Clark |
|||
|
|
Moderator |
There. I just broke down and posted the text file link.
Teesed@Cafepress ~ OurGayApparel ~ RightWingSwag ~ Undamned Teesed ~ getahoodie ~ search4tees ~findmytee ~ findmysticker CafePress Tools at Cafewish.com: WishAds™! | Categories Script! | Likewise™ for Premium Shops | Teesed's Bag O' Scripts Affiliate Tools: ToMyInbox.com - affiliate donots in your inbox - and more! |
|||
|
|
|
I love it! I tried to add in my store but I get an error in frontpage. I visited Dynamic Drive and was able to 'get' a similar one
Carl http://www.cafepress.com/humormongers |
|||
|
|
Moderator |
What error were you getting? The one your using is nice with the sliding effect, and you could probably put in a text block below each image by putting a break tag and some short text at the end of each of your array list items.
It worked the first time I loaded your page, but then it came up with blank images and "undefined" scrolling through over and over. It didn't repeat. Then I reloaded, and it stuck on the first image. I closed the browser and clicked the link again, and it still froze on the first one. When you say it gave you an error in frontpage, do you mean the software program, or your front page? If it's the software program, try putting the code inside as an html block. Frontpage is notorious for determining that you don't want some code snippet where you think you do, and it moves it. Dynamic Drive has some great stuff, doesn't it?! Teesed@Cafepress ~ OurGayApparel ~ RightWingSwag ~ Undamned Teesed ~ getahoodie ~ search4tees ~findmytee ~ findmysticker CafePress Tools at Cafewish.com: WishAds™! | Categories Script! | Likewise™ for Premium Shops | Teesed's Bag O' Scripts Affiliate Tools: ToMyInbox.com - affiliate donots in your inbox - and more! |
|||
|
|
|
|
|||
|
|
|
I'm using this script as well and have noticed a problem of similar type mentioned here
I'm using the MSIE browser, most of my customers use this browser so... Just like the quoted above sometimes image sort of sticks, it often jumps over an image or skips a few, sometime it runs them all no problem. often you can click where the image doesn't show and you still go to the correct URL of image that should have shown. I figure it's just not always loading quite right. Occurences are very intermittent ~ Jayce ShirtsAndGifts.Com Originals Play Pool Online Free! Single or Multi-Player Interactive Games » CLICK HERE NOW! « |
|||
|
|
|
how did you make the image slide like that? |
|||
|
|
|
Hi there Burn Tees! Well, thanks to Teesed, I managed to find it herehttp://dynamicdrive.com/dynamicindex14/index.html
They've got lots of cool stuff! Carl http://www.cafepress.com/humormongers |
|||
|
|
|
yes.. it's in the frontpage software. that's when i decided to check out the site and found a similar rotation. it worked the first time i tried. now when i checked the posts, aha! i saw the problem! it's the **** that should've been "<" and "img" anyway, i'm so happy with the current rotation though at times yes, it skips and does funny stuff (like what Jayce said) coz my sister has a different browser yet she sees it fine. Carl http://www.cafepress.com/humormongers |
|||
|
|
Former CP Cheerleader |
I have a funky blue half box around mine?? Is that because I made the thumbnail bigger?
Hmmm...yeah...and Im lame...heres my page My site that I forgot to post You have to wait for the second image to hit I figured out that its in my css.....how do you remove that around images? I got it...I added <style type="text/css"> img { border:0 } </style>
This message has been edited. Last edited by: Benthabits, ~~All Designs Are NOT Created Equal, They shouldn't be charged that way~~ |
|||
|
| Powered by Eve Community | Page 1 2 3 4 5 6 |
| Please Wait. Your request is being processed... |
|
Community Forums: Home
CafePress Community Forums
General Help & Sharing
Shop Customization & HTML
Creating a "popular items" image rotation