Forum Moderators: martinibuster

Message Too Old, No Replies

Need A Code For My "Link Bait"

need the cut and paste java script code

         

tshirtdeal

12:15 am on Feb 4, 2007 (gmt 0)

10+ Year Member



Hi guys and gals,

I just created a link bait article for my site (my first with this technique)

I want to put the article on my site and try to draw some liunks to it...

I also want to put that "cut and paste the html code to put on your website" box...I believe it is a javascript which keeps the html code from going "live" and creating the link...

Does anyone know the code or have it? i want to be able to put a cut and past link code at the bottom of my link bait article...

also, i would like the "send this page to a friend" thing there also...

Thanks for any and all help!

Whoa

3:17 am on Feb 4, 2007 (gmt 0)

10+ Year Member



No need to use Javascript...just use something like this in your HTML:

<p> <strong>Link to This Page</strong><br />
<br />
You can link to this page from your site by copying the following code and adding it to a page on your website: </p>
<P>
<TEXTAREA dir=ltr style="BORDER-RIGHT: #ff0000 1px solid; BORDER-TOP: #ff0000 1px solid; BORDER-LEFT: #ff0000 1px solid; WIDTH: 437px; BORDER-BOTTOM: #ff0000 1px solid; HEIGHT: 97px" name=S1 rows=4 wrap=VIRTUAL cols=80>
<!-- Begin Description of Page Link -->
<b><a href="http://www.domain.com/pagename.htm" title="More Keyphrases">Description of Page Here</a></b><br>
<br>
<!-- End Description of Page Link -->
</TEXTAREA>
</P>

vincevincevince

3:39 am on Feb 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think this will work:
<xmp><a href="blah">Your link</a></xmp>

tshirtdeal

10:48 pm on Feb 4, 2007 (gmt 0)

10+ Year Member



Great! Thanks, just what I needed!

I really appreciate it!

Status_203

11:24 am on Feb 5, 2007 (gmt 0)

10+ Year Member



XMP related thread

[webmasterworld.com...] (from 2004)

vincevincevince

1:53 pm on Feb 5, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Status_203, I should have mentioned it - however - the fact remains that it works fine in all mainstream browsers, including Opera, Firefox and IE - and that it's the only thing that actually does the job.

Status_203

10:12 am on Feb 6, 2007 (gmt 0)

10+ Year Member



it's the only thing that actually does the job.

Makes me very nervous to disagree with you Vince but... I disagree.

Convert the awkward characters to the relevant html entities, e.g. %lt; for < and %gt; for >, and away you go.

Tedious and error prone to do manually but a search for "text to html entity converter" provides several tools to do it for you. Test first because some of them don't work:

<a href="blah">Your link</a>

should come out as

&lt;a href=&quot;blah&quot;&gt;Your link&lt;/a&gt;

vincevincevince

11:49 am on Feb 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you use firefox, select the text, and right-click -> view source ... you will get very confused! <xmp> shows you the same in source and on the page - to me - it's easier. It's a prime example of a tag which was wrongly depreciated and needs to be reintroduced.