www.webdeveloper.com
Results 1 to 4 of 4

Thread: How does this person do this?

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    21

    How does this person do this?

    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]

  2. #2
    Join Date
    Mar 2004
    Posts
    3,056
    The "Bid/Buy it now" button just uses Javascript
    Code:
    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.
    Last edited by Stephen Philbin; 09-24-2007 at 05:32 AM.

  3. #3
    Join Date
    Sep 2007
    Posts
    21
    ok, can you tell me how I could write this so I can use it in my webpage? thank you loads!
    Last edited by culturecreature; 09-24-2007 at 05:40 AM.

  4. #4
    Join Date
    Mar 2004
    Posts
    3,056
    Well the most basic way of doing it would be to put an image element inside an anchor element.

    HTML Code:
    <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
    Code:
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles