PDA

View Full Version : Dynamically adding images to conveyor



avalonai2
08-21-2005, 04:07 PM
Hi all, I was wondering if it possible to add images to the conveyor belt? I was looking to use a script within my ebay aution templates. Something like a cross promotion bar pulling images and links from my running auctions.

Given the number of auctions running at any particular time I haven't found a way to do this effeciently.

Thanks for any advice

cr3ative
08-21-2005, 04:58 PM
Take this part of the script:


//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<a href="http://"><img src="dynamicbook1.gif" border=1></a>'
leftrightslide[1]='<a href="http://"><img src="dynamicbook2.gif" border=1></a>'
leftrightslide[2]='<a href="http://"><img src="dynamicbook3.gif" border=1></a>'
leftrightslide[3]='<a href="http://"><img src="dynamicbook4.gif" border=1></a>'
leftrightslide[4]='<a href="http://"><img src="dynamicbook5.gif" border=1></a>'


And replace it with this:


</script><script src="http://host.org/file.txt" type="text/javascript"></script><script type="text/javascript">
Where http://host.org/file.txt is a file on your website containing the array you replaced. Then you can just change that file on your host to contain your eBay auctions.

AFAIK there is no way to read the current auctions off eBay. This just gets the array of images and links from your site which can easily be updated.

cr3

avalonai2
08-22-2005, 08:21 PM
Thanks for the help I'm gonna try it out :D :D