View Full Version : Javascripting links?


mattmdesign
11-08-2004, 07:39 PM
Hi,
does anyone know of a good tutorial or any site (or the code would be fine ) that tells you how to put javascript in your links so that no PR is passed? note: I'm not going to use this on my link partners' links, I'll only be using it on links coming from my portfolio page into sites that I've designed. Since I have my links on some of them I want them to be seen as one ways instead of recips. Any help will be very much appreciated!
Thanks, Matt

ResaleBroker
11-08-2004, 09:01 PM
Does that still work? :confused:

complainer
11-09-2004, 04:32 AM
[QUOTE=mattmdesign]Hi,
does anyone know of a good tutorial or any site (or the code would be fine ) that tells you how to put javascript in your links so that no PR is passed? [/QUOTE]
I won't comment on whether or not it will or will not pass PR, but here's some simple code:

In the header of your html page:

<script src="mycode.js" type="text/javascript"></script>


Where you want the link in your html page:

<script type="text/javascript">link()</script>


In your external javasript file (e.g. mycode.js):

function link()
{
link='<a href="http://www.mylinkspot.com/page.html">My Link Spot</a>';
document.write(a);
}