 |
Results from the most recent live auction are here.
22 members in the live chat room. Join Chat!
| |
01-27-2004, 05:49 AM
|
· #1 | | New Member | 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!!
Thanks in advance for the advice! |
| |
01-27-2004, 10:35 AM
|
· #2 | | RyanPrice.ca - Developer Name: Ryan Price Join Date: Dec 2003
Posts: 1,331
NP$: 34.00 ( Donate)
| 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. |
| |
01-27-2004, 10:47 AM
|
· #3 | | NamePros Member Name: Bryan Louis Location: GB, WI Join Date: Dec 2003
Posts: 69
NP$: 117.00 ( Donate)
| 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
|
| |
01-27-2004, 11:51 AM
|
· #4 | | New Member | blouis,
I am assuming you mean to copy all my java script and put it in a folder named "java.js" then put that snippet in and it will load everything as it does now? |
| |
01-27-2004, 01:21 PM
|
· #5 | | RyanPrice.ca - Developer Name: Ryan Price Join Date: Dec 2003
Posts: 1,331
NP$: 34.00 ( Donate)
| yup |
| |
01-27-2004, 01:21 PM
|
· #6 | | NamePros Member Name: Bryan Louis Location: GB, WI Join Date: Dec 2003
Posts: 69
NP$: 117.00 ( Donate)
| 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
|
| |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |