sparky Posted May 3, 2009 Share Posted May 3, 2009 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> 0 Quote Link to comment Share on other sites More sharing options...
Stream101 Posted May 3, 2009 Share Posted May 3, 2009 Where does this go exactly? Thanks 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted May 3, 2009 Author Share Posted May 3, 2009 Where does this go exactly? Thanks Admin => General Settings => Affiliates => Affiliate Links textarea. 0 Quote Link to comment Share on other sites More sharing options...
redrat Posted May 3, 2009 Share Posted May 3, 2009 Works great right outa the box. Thanks Steve! 0 Quote Link to comment Share on other sites More sharing options...
Stream101 Posted May 4, 2009 Share Posted May 4, 2009 Thanks! Got it working! 0 Quote Link to comment Share on other sites More sharing options...
Zorro67 Posted May 4, 2009 Share Posted May 4, 2009 Nice hack, Steve. Well done, as usual 0 Quote Link to comment Share on other sites More sharing options...
R-n-R Posted May 4, 2009 Share Posted May 4, 2009 This is awesome Sparky, thank you sir. 0 Quote Link to comment Share on other sites More sharing options...
ES-Aizal Posted May 4, 2009 Share Posted May 4, 2009 Thank you for this. Really useful. 0 Quote Link to comment Share on other sites More sharing options...
Impact-John Posted May 8, 2009 Share Posted May 8, 2009 nice one sparky 0 Quote Link to comment Share on other sites More sharing options...
jmanuel Posted May 8, 2009 Share Posted May 8, 2009 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> 0 Quote Link to comment Share on other sites More sharing options...
clothingsavers Posted May 12, 2009 Share Posted May 12, 2009 wow lol =D thanks sparky!!! 0 Quote Link to comment Share on other sites More sharing options...
LemonBarley Posted May 12, 2009 Share Posted May 12, 2009 clothingsavers what are you trying to do? spam? 0 Quote Link to comment Share on other sites More sharing options...
clothingsavers Posted May 12, 2009 Share Posted May 12, 2009 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! 0 Quote Link to comment Share on other sites More sharing options...
striddy Posted May 12, 2009 Share Posted May 12, 2009 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. 0 Quote Link to comment Share on other sites More sharing options...
VicToMeyeZR Posted May 13, 2009 Share Posted May 13, 2009 @ clothingsavers We don't need to scroll down half a BLANK page just to see ONE smiley. If you want to post, then post like normal, otherwise DON'T post, and quit spamming the forums. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted May 13, 2009 Author Share Posted May 13, 2009 Come on guys, Thanks for the comments but please don't turn this thread into an argument. Bear could you please fix those 2 posts to stop any further arguments 0 Quote Link to comment Share on other sites More sharing options...
UnderHost Posted May 17, 2009 Share Posted May 17, 2009 Nice Jobs thanks. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.