Click to See Complete Forum and Search --> : How does this person do this?


culturecreature
09-24-2007, 04:59 AM
How is this person making the buy it now, watch this item, and e-mail a friend links on his webpage?

[Link removed -Stephen Philbin]

Stephen Philbin
09-24-2007, 05:28 AM
The "Bid/Buy it now" button just uses Javascript javascript:document.forms[1].submit(); to submit the normal "buy it now" button that appears at the top of all ebay auctions. The buttons appear to be statically written. It looks like the seller has just written the links with plan http addresses found in Ebay. They just have the item number appended to them.

culturecreature
09-24-2007, 05:37 AM
ok, can you tell me how I could write this so I can use it in my webpage? thank you loads!

Stephen Philbin
09-24-2007, 11:59 AM
Well the most basic way of doing it would be to put an image element inside an anchor element.

<a href="the address the link should point to"><img alt="what this image is for" src="the web address of the image you want to use"></a>

Just put the address the link should point to in the href attribute of the "a" element, a text equivelant of the image in the alt attribute of the img element and the web address of the image in the src attribute of the img element.

On the page you pointed to, the buy-it-now/make-a-bid button uses javascript:document.forms[1].submit(); for a href attribute value. This just makes the button activate the default bid/buy button at the top of all ebay auction pages. The others just use plain adresses you change manually. Just use the same addresses that the page you linked shows, but just edit the item number to be the item number for the item on the page.

Though don't you think these buttons are rather pointless? They're already on the page anyway.