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 Andrinasart
Posted Hide Post
table border="1"

I thing there is another way to do it but I usually added to the table code where you also say what color you want the table or the background.

Or some times I just add a square around each image using corel draw. (This is good when the images aren't the same size. You can add the same size square to all the images as a background. You can see what I mean at the bottom of my shop.

In your case, if I'm not wrong you just have to add the size to the code you alredy have.

After your text where says:
< !-- ROTATING IMAGE SCRIPT -->
9 rows after, you have this code:

--table width="175" cellpadding="4" cellspacing="0" border="0"--

Just change the "0" for the number you want next to border.

I hope it helped.



 
Reply With QuoteEdit or Delete MessageReport This Post
Picture of One Eyed Mackerel
Posted Hide Post
Is there a way to make the image centered vertically? I used the script and have the rotating images, but some of my images are smaller than others, so I end up having a couple of things all the way at the top and totally off centered.

cafepress.com/oneeyedmackerel

Thanks!


Justin, proud keeper of:

www.oneeyedmackerel.com
 
Reply With QuoteEdit or Delete MessageReport This Post
Picture of WeaselPuppy
Posted Hide Post
Hi

Just another person stopping by to say this is coooooooool. Thanks Smiler


Perpetually confused, but I try
(Suggestions and unsolicited advice welcome)

Weasel Puppy Flyball Shop
Infestation of the Mind



 
Reply With QuoteEdit or Delete MessageReport This Post
Moderator
Picture of Teesed
Posted Hide Post
quote:
Originally posted by One Eyed Mackerel:
Is there a way to make the image centered vertically? I used the script and have the rotating images, but some of my images are smaller than others, so I end up having a couple of things all the way at the top and totally off centered.

cafepress.com/oneeyedmackerel

Thanks!


(teaching you to fish)

Look in the code where it looks like it draws the table. Use the same code as you would to center anything in a table data cell. (hint: valign=center)
 
Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Is there a way to add a border to the image, I need a border in a certain colour so it matches my other products on my site.

quote:
After your text where says:
< !-- ROTATING IMAGE SCRIPT -->
9 rows after, you have this code:

--table width="175" cellpadding="4" cellspacing="0" border="0"--

Just change the "0" for the number you want next to border.


there is nothing in the code that says
able width="175" cellpadding="4" cellspacing="0" border="0"--
have a look through it, its not there in the code.

The best I can work out is perhaps adding something like this

<div style="background-color:#FFFFFF; width:150px; padding:5px; border:1px solid #666666">


not sure where though, I am NOT a coder, of any kind, I tried pasting it in and it didnt work,

tried pasting this in different places

 <table width="175" cellpadding="4" cellspacing="0" border="1"> 


didnt work, like I said, Im not a coder, so Ive no idea, Id like to know though, I need it for my charity christian site and Ive just added more items, and want to get the card section, ie the CP part, fitting in with the rest of the homepage items, getting this working would just finish it for me..

Ive sent the original maker of the script an email, getting a reply on CP can sometimes be like pulling teeth, its very hit and miss.

If I get a reply Ill post it up here, then I can add my changes to my site, and hopefully raise some more money with my charity site.

I also didnt want
click to view
on each image
I tried deleating this
 </script>(click to view)</center>

But it messes up the whole thing, so I dont know how to get rid of that.

This message has been edited. Last edited by: Amen-Ra,


The Gift Of Christ My Cafe Press offsite Christian Greetings Cards store.
 
Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
did anyone manage to get two scripts working on the same page, I think the problem is here
 window.onload=startit
else
setInterval("rotateimage()",pause) 

though not sure how to go forward with it, a tutorial is listed, but I cant follow it, Im sure the problem is in the onload function someplace, anyone get more than one script working?


The Gift Of Christ My Cafe Press offsite Christian Greetings Cards store.
 
Reply With QuoteEdit or Delete MessageReport This Post
Moderator
Picture of Teesed
Posted Hide Post
In general, when you have two scripts on the same page, you have to rename the second script's functions. When I get a chance, I'll see if I can tell which to rename.
 
Reply With QuoteEdit or Delete MessageReport This Post
Picture of igotthemusic
Posted Hide Post
Sounds like a great script, will have to look how to implement this, when I have some more spare time Bonk


-----------------------------------------------------------
Powerful Designs Make a Lasting Impression™

http://igotthemusic.com [blog]
http://cafepress.com/igotthemusic [store]
 
Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
I'm going to ask a really still q

where the script says:

  var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]="http://storetn.cafepress.com/nocache/4/26071324_F_store.jpg"
fadeimages[1]="http://storetn.cafepress.com/nocache/9/15187979_F_store.jpg"


how does one find out the url for that?

what is the ** number and how does one determine it?
 storetn.cafepress.com/nocache/**/15187979_F_store.jpg] 



Is probably something really obvious but I'm just not getting that bit atm Frowner

thanks for any help Smiler
 
Reply With QuoteEdit or Delete MessageReport This Post
Moderator
Picture of Teesed
Posted Hide Post
Go to the thumbnail image for that product. Right click on the image. Depending on your browser, either select "Properties" to get it or with Firefox, click "Copy Image Location"

So, you could do this with the design thumbnail created for a section, then link to the section. Or, you could copy the product thumbnail and either link to the product or to the section depending on how you want your customer to experience your shop.
 
Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Thank you!! SmilerSmiler

was having one of those brain fog moments lol Smiler
 
Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
You can make some cool free flash based rotating things on wix.com to add to your HTML. I just found it a few days ago and found it super easy to use
 
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