 |
|

07-21-2004, 01:31 PM
|
 |
SEO
|
|
Join Date: Jun 2004
Location: uk
Posts: 578
|
|
|
changing link text?
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.
|

07-21-2004, 03: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.
__________________
SEO Tutorial
Bob's quote of the week:
SEO Bob: "world cup of hockey is starting isn't it [, Dilligaf]? Who are you cheering for dilli?"
Dilligaf: "Well... if you promise not to tell my neighbours... "Oh Canada... ""
|

07-21-2004, 03:20 PM
|
 |
SEO
|
|
Join Date: Jun 2004
Location: uk
Posts: 578
|
|
|
Whats the next best thing, Robots.txt?
|

07-24-2004, 05:27 AM
|
|
SEO Junior and a half
|
|
Join Date: Jun 2004
Posts: 39
|
|
|
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.
|

07-24-2004, 08:20 AM
|
 |
Moderator
|
|
Join Date: Mar 2004
Location: Montréal / Canada
|
|
I just use this and it works fine.
Code:
<script language = "javascript">
document.write('<a " target="_blank" hre' + 'f = "ht' + 'tp://ww' + 'w.abbotsfo' + 'rd.net/cribbage/">Abotsford Cribbage club</a>');
</script>
|

07-25-2004, 04:51 AM
|
|
SEO Junior and a half
|
|
Join Date: Jun 2004
Posts: 39
|
|
|
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.
|

07-25-2004, 05:59 AM
|
 |
Moderator
|
|
Join Date: Mar 2004
Location: Montréal / Canada
|
|
Quote:
|
Originally Posted by 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.
|
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...
|

07-31-2004, 03:16 AM
|
|
SEO Junior and a half
|
|
Join Date: Jun 2004
Posts: 39
|
|
Quote:
|
Originally Posted by 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...
|
Guess your right, But I'm still not sure about number 2.
|

07-31-2004, 06:04 AM
|
 |
Moderator
|
|
Join Date: Mar 2004
Location: Montréal / Canada
|
|
|
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.
|

08-23-2004, 02:41 AM
|
 |
Uber Uber Mod
|
|
|
|
|
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
__________________
Vote for your favorite SEO site and tell your visitors about this great place, please link to us http://www.seo-guy.com with the anchor text SEO and let them know how you feel
|
 |
|
| Thread Tools |
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|