troubles out, not in !!!

liunx

Guest
hi, i just uploaded my homepage and already have problems with it...<br />
Just visit <!-- m --><a class="postlink" href="http://www.httpcity.com/blasa">http://www.httpcity.com/blasa</a><!-- m --> to see "the code that wasn't supposed to appear in the top of the screen" and instead of that it was supposed to appear a green bar with a menu, please help...<!--content-->just forgot to say that at my place "offline" of course it works perfectly<!--content-->you have some erros in your code. For example, you have 2 <head> tags and 1 </head> tag! thats the problem. Take 1 <head> tag out and try again.<!--content-->There is and error in the js file being linked in at line 300, that results in the text following being treated as literal. The menu does not come up because you get an error on the body tag because it cannot find the one of the functions being called which is either in the js file or in the text that follows. <br />
<br />
You can't expect a page to work until you fix the scripting errors.<!--content-->in fact it has a lot of errors. I will remodify the page for you.<!--content-->ok, Mark i eliminated the double tag <head> but it didn't worked also...<br />
<br />
As for COBOLdinosaur, i'm not much of a crack in html and even less in java script language, so what do you suggest?<br />
I don't understand the js file and line 300 have to do with the <body> tag. <br />
And why does it work in my home (offline of course)? <br />
<br />
(Obs: Of course you already noted that i copy/paste the script code from a site and why does it work on that site ?)<!--content-->if you do that Mark i would very, very thankfull...<!--content-->IThe menus are fixed now.<br />
<br />
I am attaching the modified file. All you have to do is change what you want in the menus and follow the directions in the script.<br />
<br />
I also put the rest of your page in.<br />
<br />
Good luck!<!--content-->Originally posted by blasa <br />
ok, Mark i eliminated the double tag <head> but it didn't worked also...<br />
<br />
As for COBOLdinosaur, i'm not much of a crack in html and even less in java script language, so what do you suggest?<br />
I don't understand the js file and line 300 have to do with the <body> tag. <br />
And why does it work in my home (offline of course)? <br />
<br />
(Obs: Of course you already noted that i copy/paste the script code from a site and why does it work on that site ?) it worked on the other site b/c they had all the lines. you must have missed a lne or so. I too copied it from the authors site and it works now.<!--content-->ok, thanks Mark, i copyed the entire code of your attachment and uploaded the file directly to my webpage and it's already working, thanks a lot. Now all i have to do is change the menu code in order to appear what ever i want. <br />
Just one more question: In the beggining of the script code the author suggests or you wrote (no mather) to copy the entire script to a .js file. That would be great to spare updating stuff. <br />
Now correct me if i'm wrong, all i have to is:<br />
.copy the entire <script></script> code and paste it on the .js file.<br />
And then all i have to do is put this line (<script language="JavaScript1.2" src=http://www.htmlforums.com/archive/index.php/"myfilename.js">) of code in the beggining of all .html files that use the menu in order to use that same menu. The .js file works for all .html files that i call for the inclusion of the script?<br />
<br />
Thanks one more time for your help....<!--content-->Yes. thats what you can do to cut the load time.<br />
<br />
1. copy the script from (<script> to </script>) <br />
2. paste in a simple text editor(like Notepad)<br />
3. then save it as a .js file (e.g. menu.js) <br />
4. put the code such as <script language="JavaScript1.2" src=http://www.htmlforums.com/archive/index.php/"menu.js"> in every page that you want the menu<br />
<br />
and thats basically it.<br />
<br />
REMEMBER that a script can only be saved in 1 file if it starts from <script> to </script>. What I mean is that if you have 2 <script> </script> tags, then you have to save them as 2 different files.<!--content-->hey, it's me again....<br />
Ok i copy/paste the entire code to a menu.js file and changed the necessary stuff for the menu, and then i puted the line of code to call the script, now it doesn't work... This is getting difficult...<br />
I'll send the .js file for you guys... or you can find it on <!-- m --><a class="postlink" href="http://www.httpcity.com/blasa/menu.js">http://www.httpcity.com/blasa/menu.js</a><!-- m --><!--content-->Wait, it's already working, i copy/paste the code in .js file and pasted again to the .html file, and it worked, but i really would like to know why it didn't worked in the first time?<br />
<br />
<script language="javascript1.2" src=http://www.htmlforums.com/archive/index.php/"menu.js"></script><br />
<br />
This was the code i used for calling the script code to the .html file<!--content-->Originally posted by blasa <br />
Wait, it's already working, i copy/paste the code in .js file and pasted again to the .html file, and it worked, but i really would like to know why it didn't worked in the first time?<br />
<br />
<script language="javascript1.2" src=http://www.htmlforums.com/archive/index.php/"menu.js"></script><br />
<br />
This was the code i used for calling the script code to the .html file you could have made a slight error such as misnaming the file.<br />
<br />
You know that you can also change the colours of the menubar so that it's more friendly with the colours of your site.<!--content-->
 
Back
Top