Sublime directory Surf the web anonymous Pagerank Monitor


dynamic javascript url

olaf
Thu 14 September 2006, 12:53 am GMT +0300
Hi,

I like to use this dynamic image:

Code:
<a href="http://www.free-pagerank-checker.com.com/" title="Free PageRank checking tool" target="_blank">
<script type="text/javascript">
document.write("<img src=\"http://www.free-pagerank-checker.com/pr.php?url="+document.URL+"\" border=\"0\" alt=\"PageRank\" />");
</script>
</a>

I think this link must be OK to get counted from search engines, right?

Nikolas
Thu 14 September 2006, 10:03 am GMT +0300
I think it is. But may I ask why you are using this javascript to display the image?

olaf
Thu 14 September 2006, 10:58 am GMT +0300
I think it is. But may I ask why you are using this javascript to display the image?

I think about to offer a dynamic link for newbie webmaster or people having an account without php.

Nikolas
Thu 14 September 2006, 11:18 am GMT +0300
Then it would be easier to do it with a full javascript solution.

You know like <script src=....

olaf
Thu 14 September 2006, 11:21 am GMT +0300
Then it would be easier to do it with a full javascript solution.

You know like <script src=....

but then the link is not recognized by search engines...

Nikolas
Thu 14 September 2006, 11:22 am GMT +0300
Yeah but this kind of link can be counted as spam (I just guess, I don't really know)

olaf
Thu 14 September 2006, 12:06 pm GMT +0300
Yeah but this kind of link can be counted as spam (I just guess, I don't really know)

that's why I'm asking, what if I do it this way:
Code:
...
<script type="text/javascript">
myImage = new Image()
myImage.src = "http://www.free-pagerank-checker.com/pr.php?url="+document.URL;
</script>
</head>
<body onload="javascript:void(document.prbutton.src = myImage.src);">
<a href="http://www.free-pagerank-checker.com/" title="Free PageRank checking tool" target="_blank">
<img name="prbutton" src="" border="0" alt="PageRank" /></a>
...

Nikolas
Thu 14 September 2006, 12:36 pm GMT +0300
That's much better. I don't think a SE could ever had a problem with that.

olaf
Thu 14 September 2006, 12:39 pm GMT +0300
That's much better. I don't think a SE could ever had a problem with that.
yes but this is more complicated to use....

Nikolas
Thu 14 September 2006, 12:46 pm GMT +0300
That's true too, but there is no other way to achive this....

olaf
Thu 14 September 2006, 01:35 pm GMT +0300
That's true too, but there is no other way to achive this....

yes, the user has the choice to use simple server side code

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional