O'Reilly logo

eBay Hacks by David A. Karp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Generate a Custom Gallery

Insert a list of your running auctions, with photos, into your auction descriptions.

One of the ways to advertise your other auctions in any given auction description is to use a gallery — a scrolling viewport with thumbnail photos of all your running auctions — as described in [Hack #47]. Aside from the commercial versions, there’s a way to create a custom gallery using the eBay API.

First, include this code in your description:

<iframe src="http://www.ebayhacks.com/cgi-bin/gallery.pl" 
                             style="width:100%;margin:0;border:0;">

The URL referenced in this iframe (see [Hack #51]) should point to your own server and cgi-bin directory. See the Using CGI Scripts sidebar if you’re not sure how to do this.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required