Results 1 to 4 of 4
  1. #1
    Newbie
    Join Date
    June 18th, 2010
    Location
    Greensboro, NC
    Posts
    7
    Question What's wrong with this code?
    I'm in the process of building my very first sales site, and I found some basic button-generating software I don't remember where. I noticed that it did not include any kind of link, so I tried to add it myself. Here's what I came up with:

    <button><a href="" target="_blank">Buy Me!</a></button>

    I put the URL to the particular product, with my affiliate information included, and voila! It turns up on the page. Alas, when I click on it, nothing happens, and no URL shows up at the bottom of the screen as it does when I mouse over a hot link. Surely I have the right link. Am I missing something else that ought to be there to make it work?

    Thanks.

  2. #2
    ABW Ambassador 2busy's Avatar
    Join Date
    January 17th, 2005
    Location
    Tropical Mountaintop
    Posts
    5,610
    <button> is not a valid html tag and would require a script to make it create a button. Often browsers ignore code they can't understand. The rest of it should work if you add a link to it like this for example:

    <a href="http://network.com/merchant=112233&afiliate=000000&product=101010" target="_blank">Buy Me!</a>

    where http://network.com/merchant=112233&afiliate=000000&product=101010 is the link you added.

  3. #3
    ABW Ambassador of Chocolate CCBerries's Avatar
    Join Date
    September 5th, 2008
    Location
    USA
    Posts
    702
    I went and looked how it's done on my site, they do it with CSS

    Code:
    <a class="buttonMore" href="mardi-gras-strawberry-gift-4dz-set.html?category_id=66"><span><b>read more...</b></span><img src="images/tr.gif" alt=""></a>
    with the css
    Code:
    a.buttonMore:link, a.buttonMore:visited {display: inline-block; cursor: pointer; color: #C7A50B; font: bold 11px/28px arial; text-decoration: none; white-space: nowrap;}
    a.buttonMore:hover, a.buttonMore:active {display: inline-block; cursor: pointer; color: #C7A50B; font: bold 11px/28px arial; text-decoration: none; white-space: nowrap;}
    
    a.buttonMore span 	{padding: 6px 10px 8px 10px; background: url(../images/convex/button-bgr.gif) repeat-x;}	/* read more... (special offers, etc.) */
    a.buttonMore img 		{display:none;}
    that should give you a starting point

  4. #4
    Newbie
    Join Date
    June 18th, 2010
    Location
    Greensboro, NC
    Posts
    7
    Thanks for your quick replies.

+ Reply to Thread

Similar Threads

  1. What's wrong with this code?
    By Ricardo Dacosta in forum Programming / Datafeeds / Tools
    Replies: 10
    Last Post: June 21st, 2008, 03:36 PM
  2. test purchase: wrong sale amount, therefore wrong commission
    By hungirl in forum Commission Junction - CJ
    Replies: 19
    Last Post: December 6th, 2004, 03:07 AM

Tags for this Thread

Posting Permissions

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