Jump to content

Sparky's Affiliate link code


Recommended Posts

Hi, I thought I'd share this with everyone who wants it. It's a fix for the textareain a textarea problem.

Also the highlight text java function works in both IE and FF

Obvoiusly change the links to your own. (don't forget to make them https)

<div align="center">
<script type="text/javascript">
function doSelectAll(d) { 
   var textC=document.getElementById(d);
if (document.selection)
{
//Portion for IE
var div = document.body.createTextRange();
div.moveToElementText(textC);
div.select();
}
else
{
//Portion for FF
var div = document.createRange();
div.setStartBefore(textC);
div.setEndAfter(textC);
window.getSelection().addRange(div);

} 
}
</script>
   <div style="border:1px solid #ccc;padding:10px;">
   <div style="text-align:left;"><strong>Banner Size:</strong> 120 x 37</div>
   <br />
   <a href="[AffiliateLinkCode]"><img src="https://tshosting.com.au/images/logo.png" style="height:37px;width:120px;" alt="tshosting.com.au" border="0" /></a>
   <br /><br />
   <strong>Source Code - Copy and Paste Into Your Website:</strong>
   <div style="width:90%;height:40px;background-color:#fff;color:#000;border:2px solid #ccc;padding:3px;text-align:left;" id="120x37" onclick="doSelectAll('120x37');" ><(a href="[AffiliateLinkCode]")><(img src="http://tshosting.com.au/images/logo.png" style="height:37px;width:120px;"  border="0" alt="tshosting.com.au" /)><(/a)></div>
   </div><br /><br /> <div style="border:1px solid #ccc;padding:10px;">
   <div style="text-align:left;"><strong>Banner Size:</strong> 195 x 60</div>
   <br />
   <a href="[AffiliateLinkCode]"><img src="https://tshosting.com.au/images/logo.png" style="height:60px;width:195px;" alt="tshosting.com.au" border="0" /></a>
   <br /><br />
   <strong>Source Code - Copy and Paste Into Your Website:</strong>
   <div style="width:90%;height:40px;background-color:#fff;color:#000;border:2px solid #ccc;padding:3px;text-align:left;" id="195x60" onclick="doSelectAll('195x60');" ><(a href="[AffiliateLinkCode]")><(img src="https://tshosting.com.au/images/logo.png" style="height:60px;width:195px;" border="0" alt="tshosting.com.au" /)><(/a)></div>
</div></div>

Link to comment
Share on other sites

Thanks!!!

 

Works perfetly!

 

 

Hi, I thought I'd share this with everyone who wants it. It's a fix for the textareain a textarea problem.

Also the highlight text java function works in both IE and FF

Obvoiusly change the links to your own. (don't forget to make them https)

<div align="center">
<script type="text/javascript">
function doSelectAll(d) { 
   var textC=document.getElementById(d);
if (document.selection)
{
//Portion for IE
var div = document.body.createTextRange();
div.moveToElementText(textC);
div.select();
}
else
{
//Portion for FF
var div = document.createRange();
div.setStartBefore(textC);
div.setEndAfter(textC);
window.getSelection().addRange(div);

} 
}
</script>
   <div style="border:1px solid #ccc;padding:10px;">
   <div style="text-align:left;"><strong>Banner Size:</strong> 120 x 37</div>
   <br />
   <a href="[AffiliateLinkCode]"><img src="https://tshosting.com.au/images/logo.png" style="height:37px;width:120px;" alt="tshosting.com.au" border="0" /></a>
   <br /><br />
   <strong>Source Code - Copy and Paste Into Your Website:</strong>
   <div style="width:90%;height:40px;background-color:#fff;color:#000;border:2px solid #ccc;padding:3px;text-align:left;" id="120x37" onclick="doSelectAll('120x37');" ><(a href="[AffiliateLinkCode]")><(img src="http://tshosting.com.au/images/logo.png" style="height:37px;width:120px;"  border="0" alt="tshosting.com.au" /)><(/a)></div>
   </div><br /><br /> <div style="border:1px solid #ccc;padding:10px;">
   <div style="text-align:left;"><strong>Banner Size:</strong> 195 x 60</div>
   <br />
   <a href="[AffiliateLinkCode]"><img src="https://tshosting.com.au/images/logo.png" style="height:60px;width:195px;" alt="tshosting.com.au" border="0" /></a>
   <br /><br />
   <strong>Source Code - Copy and Paste Into Your Website:</strong>
   <div style="width:90%;height:40px;background-color:#fff;color:#000;border:2px solid #ccc;padding:3px;text-align:left;" id="195x60" onclick="doSelectAll('195x60');" ><(a href="[AffiliateLinkCode]")><(img src="https://tshosting.com.au/images/logo.png" style="height:60px;width:195px;" border="0" alt="tshosting.com.au" /)><(/a)></div>
</div></div>

Link to comment
Share on other sites

wow lol =D thanks sparky!!! :)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

:)

Link to comment
Share on other sites

Are you in a bad mood? I am so happy I found this custom affiliate code that I got excited and posted what I felt in a public forum. If you don't like my posts I believe there is a block feature that allows you to block my posts so I wont bother you.

 

Is it the happy faces that bother you?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

:) thanks sparky!

Link to comment
Share on other sites

Are you in a bad mood? I am so happy I found this custom affiliate code that I got excited and posted what I felt in a public forum. If you don't like my posts I believe there is a block feature that allows you to block my posts so I wont bother you.

 

Is it the happy faces that bother you?

 

:) thanks sparky!

 

@ clothingsavers. Nobody's in a bad mood. Your last two posts in this thread have a problem. Suggest you take another look. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated