22, November 2008

dynamic javascript url - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  JavaScript
Topic: dynamic javascript url
« previous next »
Pages: [1] Print

Author Topic: dynamic javascript url  (Read 1641 times)
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« on: Sep 14, 2006, 12:53:16 AM »

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?


Last blog : Just a better Internet portal provided by Google
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8249
42481 credits
Members referred : 3



« Reply #1 on: Sep 14, 2006, 10:03:27 AM »

I think it is. But may I ask why you are using this javascript to display the image?

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Sep 14, 2006, 10:58:47 AM »

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.


Last blog : Just a better Internet portal provided by Google
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8249
42481 credits
Members referred : 3



« Reply #3 on: Sep 14, 2006, 11:18:42 AM »

Then it would be easier to do it with a full javascript solution.

You know like <script src=....

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Sep 14, 2006, 11:21:53 AM »

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...


Last blog : Just a better Internet portal provided by Google
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8249
42481 credits
Members referred : 3



« Reply #5 on: Sep 14, 2006, 11:22:45 AM »

Yeah but this kind of link can be counted as spam (I just guess, I don't really know)

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Sep 14, 2006, 12:06:18 PM »

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>
...


Last blog : Just a better Internet portal provided by Google
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8249
42481 credits
Members referred : 3



« Reply #7 on: Sep 14, 2006, 12:36:05 PM »

That's much better. I don't think a SE could ever had a problem with that.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Sep 14, 2006, 12:39:30 PM »

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....


Last blog : Just a better Internet portal provided by Google
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8249
42481 credits
Members referred : 3



« Reply #9 on: Sep 14, 2006, 12:46:01 PM »

That's true too, but there is no other way to achive this....

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #10 on: Sep 14, 2006, 01:35:43 PM »

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


Last blog : Just a better Internet portal provided by Google
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4087
Tags : php javascript pagerank spam search engines Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  JavaScript
Topic: dynamic javascript url
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Nov 22, 2008, 01:27:45 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.736
Total Topics: 7.650
Total Members: 4.396
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: thomas09

29 Guests, 4 Users online :

12 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.