We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

help with html coding for affiliate...thanks

Deals_2
Deals_2 Posts: 2,410 Forumite
how do you put this code in around a word for an affiliate site I am not that conversant with Html anymore.

<script type="text/javascript">
var uri = 'http://impgb.tradedoubler.com/imp?type(js)g(16123208)a(1579869)' + new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
</script>

Comments

  • Hello - I'm not sure what you're trying to do. Do you want a word to hyperlink to another page/site?

    The stuff you've got here is javascript which would normally go between the <head> and </head> tags in your html doc (ie. they wouldn't be in the <body> bit that produces the stuff you actually see.

    You normally use the <a> tag to insert a link. eg: This page links to <a href="yoursite.com">Your site</a>

    Ben
    Hi, we’ve had to remove your signature. If you’re not sure why please read the forum rules or email the forum team if you’re still unsure
  • Deals_2
    Deals_2 Posts: 2,410 Forumite
    to take this back to an affiliate. a bit like on this site here with the odd word.
    Hello - I'm not sure what you're trying to do. Do you want a word to hyperlink to another page/site?

    The stuff you've got here is javascript which would normally go between the <head> and </head> tags in your html doc (ie. they wouldn't be in the <body> bit that produces the stuff you actually see.

    You normally use the <a> tag to insert a link. eg: This page links to <a href="yoursite.com">Your site</a>

    Ben
  • <a href="http://impgb.tradedoubler.com/imp?type(js)g(16123208)a(1579869)' + new String (Math.random()).substring (2, 11)"
    id = "_id_"
    onclick="document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');">Link 1 </a>

    change the Link 1 to what you want the link to show e.g. Shop at xx store
    Silenced by the Gestapo :rotfl:
  • kwikbreaks
    kwikbreaks Posts: 9,187 Forumite
    If you are serving affiliate links then she site will supply the code for the banner/text link/whatever and you would normally just copy'n'paste that code into your html.
  • Deals_2
    Deals_2 Posts: 2,410 Forumite
    apparently. will look at this again later. thanks everso so far.
    kwikbreaks wrote: »
    If you are serving affiliate links then she site will supply the code for the banner/text link/whatever and you would normally just copy'n'paste that code into your html.
  • jaydeeuk1
    jaydeeuk1 Posts: 7,714 Forumite
    Debt-free and Proud!
    Fae's method would work how you want it too.. assuming that is what you meant ;)
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 352.5K Banking & Borrowing
  • 253.7K Reduce Debt & Boost Income
  • 454.5K Spending & Discounts
  • 245.5K Work, Benefits & Business
  • 601.5K Mortgages, Homes & Bills
  • 177.6K Life & Family
  • 259.5K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.