Click to See Complete Forum and Search --> : a downloaded script that is missing an element
Nulrick
05-14-2003, 10:59 AM
Hi1
I copied a script at:
http://javascript.internet.com/navigation/slide-down-menu.html
but it's not working because it needs another file
(see line.. src="sliding_menu.js")
soo.. where/what is "sliding_menu.js"?
anybody??
Thanks!
http://javascript.internet.com/navigation/sliding_menu.js
Nulrick
05-14-2003, 12:01 PM
Ah!
Thanks!
So, I've copied all the code into simpletext and saved as sliding_menu.js
I also placed it in the same location as the HTML document, and nothing's happening.. is there anything else I need to do?
You should download that .js file and save it to the same directory. If you pasted it into simpletext, it probably saved it as a .html or .txt file (as it is ASCII). You only need to copy the HTML from the page and save it as a .html file, and download the .js file and save it to the same directory. Then it should work. If it doesn't, you're probably using NN4 or something... lol
Nulrick
05-14-2003, 12:57 PM
Thanks! Got it to work.. last question.. how/where can I adjust the speed of the dropdown menu motion?
Post the whole code so that I don't have to download the file. lol ;)
Nulrick
05-14-2003, 01:15 PM
http://newweb.rnktel.com/designdrafts/slidingmenu.html
http://newweb.rnktel.com/designdrafts/sliding_menu.js
thanks!
It looks like you need to change this:
var speed = 0;
Try changing it to var speed = 50; And if that doesn't work, try using var speed = -50; or something.
Nulrick
05-14-2003, 01:33 PM
yep.. played with that one.. both positive and negative #s.. no change..
any other elements you think might effect speed?
Nulrick
05-14-2003, 02:56 PM
is that element already in the code? can't seem to find it.. I see alot of "timer ID"
or would I need to add it in? Where would I need to add it in, if necessary (not too saavy at scripting yet)
thanks for your time ans patience..
No, it's already in the .js file. Just search for, "speed" and the first time you find it will be that line. Change it to -0
Nulrick
05-14-2003, 03:25 PM
I thought you said to use "timer" above..