|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
External Javascript Links
Hey everyone.
What I'm wanting to learn a little more about is a link in an external javascript file. The reason I'm asking is I created a form for a site of mine which allows users to rate (You can see it by going to http://www.accordingtobrad.com/ and looking on the right - the BlogCatalog rate box) a certain page. I spent lots of time going through how I wanted to do this, unfortunately I seemed to have totally overlooked the idea of external links in javascript. Basically a page would containe <script language="JavaScript" src="http://www.blogcatalog.com/rate-button.js.php?id=1"></script> http://www.blogcatalog.com/rate-button.js.php?id=1 as you can see contains quite a few lines of code My first question is do links in the external javascript file, IE: document.write('<a href="http://www.blogcatalog.com" style="font-size: 0;">'); document.write('<img src="http://www.blogcatalog.com/form-button.php?id=1" style="border: 0;" alt="BlogCatalog - The Ultimate Blog Directory" />'); document.write('</a>'); Count towards PR? In addition to PR would the other popular engines be able to crawl this? If not (I don't believe so but I've gotten mixed answers by looking at old posts on this board) what have other people done in situations like this. The reason why I don't want to just move the HTML onto the users actual page (I want to keep it external) is because - There are quite a few lines of code and I'm not sure people would want to paste all that into their site - If I keep it in an external JS file I can always update it as I need to I can't put it in a PHP file and have users file()/file_get_contents()/etc.. because not everyone has PHP available to them. Like I said I did do a search but most the posts I found were related to users wanting to keep PR from passing, I want to do the opposite. Any thoughts on the situation would really help. Thanks, Brad |
|
#2
|
|||
|
|||
|
What I ended up doing was using <noscript> tags. This seems to work fairly well.
|
|
#3
|
|||
|
|||
|
Quote:
Even if the javascript link was embedded in the html file it woudnt count ;-) Using the <noscript> tag is the way to go...
__________________
Search Engine Optimization Spider Simulator, Duplicate Content Checker Build Backlinks, 301 Redirect |
![]() |
| Viewing: SEO Chat Forums > Search Engine Strategies > Search Engine Optimization > External Javascript Links |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|