Welcome, guest! Login
Close

Login to Your Account


  |  » Forgot your password?
Join

What's wrong with this code?

 
Tools Search
  #1  
Old
Newbie
Join Date: June 18th, 2010
Location: Greensboro, NC
Posts: 7
Send a message via Skype™ to allpurposeguru
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  
Old
ABW Ambassador
Join Date: January 17th, 2005
Location: Tropical Mountaintop
Posts: 5,549
<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  
Old
ABW Ambassador of Chocolate
Join Date: September 5th, 2008
Location: USA
Posts: 700
I went and looked how it's done on my site, they do it with CSS

style="margin:20px; margin-top:5px">
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
__________________
Skip/Owner CCBerries.com
True Chocolate Covered Strawberries Delivered Nationwide
Join ABW to remove this sponsored message.
  #4  
Old
Newbie
Join Date: June 18th, 2010
Location: Greensboro, NC
Posts: 7
Send a message via Skype™ to allpurposeguru
Thanks for your quick replies.
Reply

Tags
buttons , html , links , newbie question
 

Tools Search
Search:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What's wrong with this code? Ricardo Dacosta Programming / Datafeeds / Tools 10 June 21st, 2008 03:36 PM
Something else wrong at CJ! Grumpy Commission Junction - CJ 3 June 24th, 2006 06:07 PM
test purchase: wrong sale amount, therefore wrong commission hungirl Commission Junction - CJ 19 December 6th, 2004 03:07 AM
Anyone see anything wrong with this? Haiko de Poel, Jr. Midnight Cafe' 8 September 7th, 2001 05:34 PM

X

Welcome to ABestWeb.com

Create your username to jump into the discussion!

ABestWeb.com is the largest affiliate marketing community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?



Content Relevant URLs by vBSEO ©2011, Crawlability, Inc.