View Full Version : changing link text?


l234244
07-21-2004, 12:31 PM
Hello guys, newbie to javascript. Have started to implemented javascript links on pages I dont want to leak pagerank to, however need advice on how to alter the text, size and colour. Looking a bit ugly at the moment, below is the simple script I'm using:

<head>
<script language="javascript">
function noFollow(n) {
document.location.href=n;
}
</script>
</head>

<body>
<a href="javascript.noFollow('http:/www.mylink.com')">My Anchor Text</a>
</body>

All help greatly appreciated, thanks.

Pyrrhonist
07-21-2004, 02:14 PM
I don't think shrouding outbound links works anymore. I've seen plenty of examples of jumpscripts and javascript passing the information on lately.

l234244
07-21-2004, 02:20 PM
Whats the next best thing, Robots.txt?

xml
07-24-2004, 04:27 AM
You could complicate it to get the desired effect:

<script type="text/javascript">
document.write('<script type="text/javascript" src="/protected/scripts.js"></script>');
</script>

Robots.txt:

User-agent: *
Disallow: /protected/

It might work, I dunno, never used it myself.

jocelyn
07-24-2004, 07:20 AM
I just use this and it works fine.

<script language = "javascript">
document.write('<a " target="_blank" hre' + 'f = "ht' + 'tp://ww' + 'w.abbotsfo' + 'rd.net/cribbage/">Abotsford Cribbage club</a>');
</script>

xml
07-25-2004, 03:51 AM
I don't think thats future proof. I'm sure google will be able to parse that and construct the URL.

The method also looks a little spammy/unprofessional IMHO.

jocelyn
07-25-2004, 04:59 AM
[QUOTE=xml]1- I don't think thats future proof.
2- I'm sure google will be able to parse that and construct the URL.
3- The method also looks a little spammy/unprofessional IMHO.[/QUOTE]
1- What do you know about Google's future decisions...
2- Well for the moment it's not...
3- Yeah if you hide links you have to do it professionally and with style in a way that is not spammy... hiding links is hiding links buddy... there is nothing to be professional about it except the end result...

xml
07-31-2004, 02:16 AM
[QUOTE=jocelyn]1- What do you know about Google's future decisions...
2- Well for the moment it's not...
3- Yeah if you hide links you have to do it professionally and with style in a way that is not spammy... hiding links is hiding links buddy... there is nothing to be professional about it except the end result...[/QUOTE]

Guess your right, But I'm still not sure about number 2.

jocelyn
07-31-2004, 05:04 AM
Unless it changed a few weeks ago, they will not figure out the resulting URL.
I used it a lot when my site did not have enough PR strenth to make a flat link structure. I was told the same about this not working a year ago on an other forum and proved it then. I'm not going to fight this again, I know it works and don't care if people don't. I give the tip, you do how you feel about it.

seo guy
08-23-2004, 01:41 AM
You and your quebecoi or howver you spell that lol, use the robots.txt and be done with it, Java may or may not work now (Who cares) it will in the future guaranteed be parsable so using hte robots tag is safer

seo guy
08-23-2004, 01:54 AM
holy hell to much beer and to late, I need sleep lol cant speel corectlyyeretr afd

wyrickj
08-23-2004, 10:51 AM
lol you make me laugh seo guy. I notice you are up very very late. I drink Mountain Dew to keep me awake LOL. GET SOME SLEEP AND FEEL REFRESHED TO TAKE ON ANOTHER LARGE PROJECT.