View Full Version : Channeling pagerank


sward
03-30-2004, 06:13 AM
Hi all, I am thrilled to find the great quality site and forum. I've been a fan of seochat for about 2 years off and on and needed to expand. That may have been where I found you in the first place with a link to the article Channeling pagerank. I am self taught old school (no flash CCS etc on my sites ) I do use Dream Weaver to build most of my pages with of course HTML corrections. Learned enough javascript and cold fusion to get by. Okay with that in mind on your http://www.seo-guy.com/pagerank-articles/channeling-pagerank.html (http://www.seo-guy.com/pagerank-articles/channeling-pagerank.html)
gives what I thought would be a simple script

<SCRIPT java function nofollow(n) { document.location.href=n; }
</script>
And then, call links like this:
<A HREF="java script:nofollow('another-page.html')"></a>

But when I tried it by placing the first part in my header and 2nd where the link was located it erases my whole page. I'm sure I am just doing something wrong.
I did place my pages like this

<SCRIPT java function nofollow(n){community/community.htm.href=n;}</SCRIPT>

<a href="java script:nofollow('community/community.htm')<a>

which obviously is wrong. If anyone can clarify my problem I would be thrilled. All I need is to understand how the script is written once and I can figure out the rest. A site example that has visible source code would also be helpful.

Which leads to a different question how do you hide source code from showing up? I am one of the highest ranking sites for my keywords( a very local type site in real estate) But a new guy has come to town and is signing up all the local realtors promising the world for a very high fee, then I see he is just coping my code and methods without knowing why I do well. in otherwords he is not getting the results he promises and I am not looking to expand my business so I don't care Just think he ought to do the legwork ! :rolleyes: opps sorry for the tangent
Sward :)

Pyrrhonist
03-31-2004, 03:17 AM
Hey sward,

Let me just start by welcoming you to the forum. I see this is your new post.

I had to read over your post 3 or 4 times before figuring out what I think is wrong with your script...

I tried it out, and I seemed to get this to work:
In <head>
<script language="javascript">
function noFollow(n) {
document.location.href=n;
}
</script>
And then where I have my links, I placed:
<a href="javascript.noFollow('http://www.mylink.com')">My Anchor Text</a>And that seems to work as well.

Hopefully this will help you.

SEO Bob

Pyrrhonist
03-31-2004, 03:21 AM
Oh yeah, I forgot about your second part...
You can create a javascript function that would disable right clicking on the page, but all you have to do to bypass that is use a real browser like Firebird and it doesn't work anymore. I believe the function that disables right click is actually an ActiveX control, which is why it's browser specific. I might be wrong though, so Digitalpoint, are you there???

The best thing you can do is export evertyhing you can to a different folder, and then hide that folder. You can easily export your javascript functions, as well as your css files. Just make sure that you place them ina secure place, and you can use a mod_rewrite redirect to make sure that no one can get stuff from there. Your on-page source is pretty much public domain, and can be seen by anyone. I don't know any way to remove that.

Hopefully this will help,

SEO Bob

sward
03-31-2004, 06:30 AM
Thank you Bob and yes it is very helpful. I don't have time to try your methods today. But will get right on it tonight or tomorrow and let you know if it works.
I have used another folder for JavaScript before to move my rollover scripts off my pages but I don't know how to make it secure. This might not be the place to ask that. I know my server has two folder Database and Html when I FTP to it. but I only learned what I needed to get by I'm afraid. Could anyone guide me to a good tutorial on such things?
Thanks after the 1st I'll try and linger around a bit.
:)

sward
04-22-2004, 06:40 AM
Help! I still can't seem to get this right This is what I tried and I still get "action not approved"
I had to change my site back cause I need a working link ... any suggestions?

In the head:

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


In the body:

<a href="JavaScript.noFollow('http://www.greatcarolinaproperty.com/form/query.htm')">Property
Inquiry</a>

also tried which I prefer for internal links if I can get the proper code:

<a href="JavaScript.noFollow(/form/query.htm')">Property
Inquiry</a>

I feel so out ouf the loop, I know this is basic Javascript!
Susan :)

relaxzoolander
04-23-2004, 12:53 AM
[QUOTE=sward]Which leads to a different question how do you hide source code from showing up?[/QUOTE]
this is simply not possible.
theres lots of techniques for discouraging the novice...but someone with skills who is adamant about getting your code...will get it.

sward
04-23-2004, 04:56 AM
Well then I won't bother hiding it. It's not like I'm some SEO god. I only do well thanks to the advise of all you guru's on these boards. And of course Content is King!.

I still would love for someone to explain what is wrong with this code. Is it ?{document.location.href=n;} I took that as literal. Are you suppose to put the actual document location or is it as you see it? If someone could use my example and help me I can adapt it to all the links I need. Course knowing me a period is out of place or something, stuff like that always effects me. Here is the code again.
In the head:

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


In the body:

<a href="JavaScript.noFollow('http://www.greatcarolinaproperty.com/form/query.htm')">Property
Inquiry</a>

also I prefer for internal links if I can get the proper code:

<a href="JavaScript.noFollow(/form/query.htm')">Property
Inquiry</a>

web site is www.GreatCarolinaProperty.com
Thanks Susan

sward
04-27-2004, 05:06 AM
Hey to anyone who have been having this same problem. Since I didn't get an answer here I did a search for JavaScript.noFollow and of course the top of ranking was this site, but I found another site with my answer. The problem with this script a href="JavaScript.noFollow(/form/query.htm')">Property
Inquiry</a> was JavaScript.noFollow I needed a ":" instead of a "." In other words JavaScript:noFollow hope this helps anybody else with this problem. Now lets see if it really works to keep PR from spilling over to those pages.
Susan :)