| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| New Member Join Date: Jan 2004
Posts: 3
![]() | Java Problem I'm new to this forum but have come here hoping to get some needed help and then maybe I can help someone else in return. I am using Dreamweaver 2004 and am using a template. My problem is that the template uses java script for my drop down menus etc. and is in the main code. When I evaluate it for submitting it to search engines I get the warning that my java needs to be put into a separate folder so the bots can spider my site. My problem is how do I put all my java into a folder away from the other code and it all still work properly? I am totally mystified. My website is www.emilitarymanuals.com an any help or instruction to solving this problem will be greatly appreciated!! ????: NamePros.com http://www.namepros.com/programming/18682-java-problem.html Thanks in advance for the advice! |
| |
| | #2 (permalink) |
| RyanPrice.ca - Developer Join Date: Dec 2003
Posts: 1,328
![]() ![]() ![]() | well you could use shtml or php 'include' code to have it in a seperate folder an include it at run time but I'm not sure thats what your after here.
__________________ Ryan Price - Webmaster www.HostDurham.com - For Hosting | www.jeanco.ca - For Webdesign |
| |
| | #3 (permalink) |
| NamePros Member Join Date: Dec 2003 Location: GB, WI
Posts: 69
![]() | You can have this little snippit of code in your page structured like this Code: <html> <head> <title>TITLE OF YOUR PAGE</title> </head> <script language="JavaScript" src="/js/java.js"></script> rest of your html below
__________________ Bryan Louis -Xeplin Development- http://www.xeplindevelopment.com -Personal- http://www.bryanlouis.net |
| |
| | #5 (permalink) |
| RyanPrice.ca - Developer Join Date: Dec 2003
Posts: 1,328
![]() ![]() ![]() | yup
__________________ Ryan Price - Webmaster www.HostDurham.com - For Hosting | www.jeanco.ca - For Webdesign |
| |
| | #6 (permalink) |
| NamePros Member Join Date: Dec 2003 Location: GB, WI
Posts: 69
![]() | kinda, you have a folder called whatever you want we'll use "javascript" for example, then you have in there a file called "java.js" for example then in the like where it points to it you have the path to the .js file in my example it would be src="/javascript/java.js"> does that make more sense?? yea yea you take out all your java that you have in that page and paste it into the .js file.
__________________ Bryan Louis -Xeplin Development- http://www.xeplindevelopment.com -Personal- http://www.bryanlouis.net |
| |