|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
External javascript
Hey, I could use a little help here. I am trying to put all my javascript on a separate page. The google adsense and search box for example. I am using the <script language="JavaScript" type="text/JavaScript" src="*.js"> command but cannot get it to work.
I know that having java on the page can hinder SEO so this is very important to me.. please help. Josh www.academylaw.com |
|
#2
|
|||
|
|||
|
Quote:
Sounds like it should work, are you closing the tag too? <script language="JavaScript" src="includes/nav.js" TYPE="text/javascript"></script> Javascript doesn't necessarilly hinder SEO, the bots will just ignore it, but it's preferred to keep Javascripts in an external file to keep your actual body copy as high in the html code as possible, not buried under umpteen lines of code. It's better to have your keywords on line 10 of the HTML file than line 110 under 100 lines of JavaScript. So, maybe post your html and javascript files so we can maybe see why they aren't working. |
|
#3
|
|||
|
|||
|
Your code is a mess. That is probably why your JS is not loading. This is how your home page code begins:
Code:
<head> <title>Credit Report Repair - Academy Law - Bad Credit Repair</title> <meta name="description" content="Credit Report Repair with Academy. Our law firm can fix your credit. Full warranty."> <meta name="keywords" content="credit repair,credit report repair,credit repair services,credit report repair services,credit repair service,credit repair company,repair bad credit,legal credit repair,credit repair help"> <meta name="robots" content="index,follow"> <META NAME="ColdFusionMXEdition" CONTENT="ColdFusion DevNet Edition - Not for Production Use."></head> <div align="center"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="2" valign="top"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head> <body You need to start with the DOCTYPE and then <html>. Then you have your first <body> tag nested in your second <head> tag plus several additional <body> and </body> tags through the document. Whatever you are using to code your pages isn't working. It looks like you pasted several pages, each built in a WYSIWYG editor together into one page. Generally not a good idea. Run your code through a html validator, fix the errors and then the JS call you describe above will work fine. Just make sure the scr reference is correct.
__________________
"Live never to be ashamed of what is written about you. Even if what is written is not true" -- Richard Bach Yahoo Store SEO |
|
#4
|
||||
|
||||
|
thanks
Thank you both, I will work on this and post my results. Thanks.
|
|
#5
|
||||
|
||||
|
Quote:
Are you trying to spam this forum by consistently posting unnecessary things here. |
|
#6
|
|||
|
|||
|
seems all his posts have now been deleted, you must have upset him or a mod get there first
|
|
#7
|
|||
|
|||
|
Quote:
|
![]() |
| Viewing: SEO Chat Forums > Other > HTML Coding > External javascript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|