Forum Moderators: open

Message Too Old, No Replies

Javascript Newbie Problem - please help!

can't get simple script working

         

martinrps

1:00 am on Feb 20, 2005 (gmt 0)

10+ Year Member



Hi there,

Apologies if I've missed something totally obvious here, I'm totally wet behind the ears when it comes to scripting. I've got this pretty cool looking script off Javascript Source:

[javascript.internet.com...]

It's an expandable menu installed by popping the code into the body of the html page, which I did. When I view the page in a browser, there's no menu. I only get the Javascript Source link message at the bottom of the script.

It's from a reliable source, and I just know I've done something dead obvious to mess it up... but can't figure out what for the life of me. The only thing that occurs to me is that it seems to reference another file or routine that isn't part of the script: <script language="JavaScript" src="sliding_menu.js"></script>

I could be way out with that though!

If anyone can offer their expertise, I would be well, well, well grateful. I really want to get it working!

Thanks!

Martin.

Ps. I put a copy of the page that isn't working here:

[theretropostershop.com...]

It's in it's simplest form, an html page with the script pasted in the body. A <body> tag was part of the script, creating a second on the page. (I tried removing it - it made no difference.) I left both tags in the uploaded page, which one should I use?

I also put the original script up in html in case anyone would be kind enough to check it:

[theretropostershop.com...]

orion_rus

7:30 pm on Feb 20, 2005 (gmt 0)

10+ Year Member



of cause it shouldn't work if u see in this script it has a line:

<script language="JavaScript" src="sliding_menu.js"></script>

this means what it uses an external javascript file what is necessary to have for well working menu. Copy this file from theirs locations and all would work
Good luck to you

martinrps

7:56 pm on Feb 20, 2005 (gmt 0)

10+ Year Member



Hi there,

A big cheers for your help. I thought that might be the case, but there was no JS file to download with it. I just presumed I had bodged something up.

Anyway, I searched the web and found the file linked to in a forum... so now I'm ultra happy to say that all is sorted!

It's so lucky that there are knowledgable folks around (and willing) to help us novices out of the holes we dig ourselves.

Thanks again. All the best,

Martin