Click to See Complete Forum and Search --> : Question about "Slide Down Menu"


Paula Waringa
03-25-2003, 05:31 AM
Hi,

Just recently discovered this JavaScript page and already put some very nice scripts on my homepage like a date & time, news scroller and countdown clock. But when I try to put the "Slide Down Menu" on my page it doesn't work. I copied the script into the body of the message, but when I check it out the page is empty except for the JavaScript credits line. And that while the "Pulldown Menu" does work. Can anybody tell me what I'm doing wrong? Do I need to download some extra things? I hope someone knows the answer, 'cause I like the "Slide Down Menu" better than the "Pulldown Menu". Thanx in advance.

Paula, from Holland

DaveSW
03-25-2003, 06:57 AM
Could you paste your code in here, or a link to it? it would probably help us to see what you mean.

Dave

Paula Waringa
03-25-2003, 08:20 AM
I've found this one on JavaScript Source and a similar one on another page. From that other page I'm able to see the menu, but it's extremely difficult to customize it. It just doesn't work for me. The code on your site goes like this....


<!-- ONE STEP TO INSTALL TOOLBAR MENU:

1. Copy the coding into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the BODY of your HTML document -->

<BODY>

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: Sharon Harber (sharon@harber.f9.co.uk) -->
<!-- Web Site: http://www.nwr.org -->
<script type='text/javascript' src='nwrmenu_var.js'></script>
<script type='text/javascript' src='menu_com.js'></script>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 0.63 KB -->

pyro
03-25-2003, 08:32 AM
You need to download the following files:

http://javascript.internet.com/navigation/nwrmenu_var.js
http://javascript.internet.com/navigation/menu_com.js

Paula Waringa
03-25-2003, 08:48 AM
Thanx, you helped me... a little ;) Of that other page I indeed downloaded those menu-files, but when I try to customize the data in the HTML the data stays unaltered when I check the result. Any idea what I'm doing wrong? I'll try to upload the zip-file with this message. I downloaded that one.

Paula

DaveSW
03-25-2003, 09:39 AM
It works ok for me. Are you editing the menu_array.js file? I opened it in notepad, and the menu options are right at the bottom, which works fine when you change them.

Dave

Paula Waringa
03-25-2003, 10:04 AM
Can you please tell me how you do that? I'm so new with this Java stuff, it's pretty complicated for me. I open the Menu page in FrontPage. And then copy and paste the menu_array.js and mmenu.js content in the body of the HTML code. Or isn't that the way to do it? :confused:

Paula

DaveSW
03-25-2003, 10:19 AM
I'm not absolutely certain if you're supposed to paste it in. I think you put the extra files you downloaded into the same folder. Then if you open the menu_array.js file in notepad, near at the bottom you see:

,"Home","http://www.dynamicdrive.com",,"Back to the home page",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"Sample&nbsp;sites&nbsp;&nbsp;","show-menu=news",,"",1
,"Webmaster&nbsp;&nbsp;","show-menu=webmaster",,"",1
,"Downloads&nbsp;&nbsp;","show-menu=downloads",,"",1
,"Search&nbsp;&nbsp;","show-menu=search",,"",1
,"Other&nbsp;&nbsp;","show-menu=other",,"",1

This is the main menu bar: changing "Home" changes the text displayed, and changing the web address next to it changes where it goes to.

After that in the code are the sub menus, which can be altered in the same way.

dave

DaveSW
03-25-2003, 10:25 AM
If you post up the menu options i'll try and change it for you. Don't forget to include where it's going ( the url )

dave

Paula Waringa
03-25-2003, 01:34 PM
Because I don't give up that quickly I started trying to change the text in the notepad. And yes, the menu-bar is changing! I want to put the menu-bar in a separate frame, which means I have to make the links directing to the frame below. Hope I'll manage. If not, I'll send another mail to this forum. Thanx so much for now!!

Paula

DaveSW
03-25-2003, 01:40 PM
Brill. No prob.

khaki
03-25-2003, 01:57 PM
Hi Paula...

If you resolve a way to get the links to open in a different frame P L E A S E be sure to share it with us!

When it comes to that menu (and other similar ones like it) that question is asked more than any other question. I have never seen an answer to it, and many of us would love to learn the answer.

Good luck.

(that's a cool menu, huh? I love that one!)
k

DaveSW
03-25-2003, 02:39 PM
In the documentation with this one it says:

To open a page in another frame add " target=yourframe" to the link text for example

,"Your Text", "yourlink.htm target=yourframe",,,1

You can also use _blank _new and _self etc. . . .

haven't tried it but you never know...

khaki
03-25-2003, 02:59 PM
Dave(SW) wrote:
In the documentation with this one it says:

To open a page in another frame add " target=yourframe" to the link text for example

,"Your Text", "yourlink.htm target=yourframe",,,1

You can also use _blank _new and _self etc. . . .

haven't tried it but you never know...You actually read the documentation? (hmmm... note to self: shut up and just read!).

Well... even though my current web devlopment tools consist of Notepad (as my editor) and Netscape (and my previewer), I'll test that out. right away.
Thanks for the clue Dave (but... you better be right! wink).
I'll report back in a moment.

still can't believe there was documentaion ... what an airhead!...
k

DaveSW
03-25-2003, 03:28 PM
a bloke who reads documentation?....There's a first for everything!!!!! Actually I read it...as I was deleting it in a test!!!! Just wanted to be sure it wasn't something vital!!!:D

dave

Paula Waringa
03-25-2003, 03:32 PM
I tried it in a frame set. It's possible with 'target etc.', but I stumbled upon another problem. I've got about 5 sections below the mainmenu and when you open it so it 'drops down' it disappears somewhat 'behind' the frame below. I know, I've explained it in very poor English, but you just have to see it before you know what I mean I guess. Does someone has a solution for that? And don't tell me to make the 'menu frame' bigger, 'cause then the 'target frame' gets way to small ;)

Paula

khaki
03-25-2003, 03:50 PM
Hey Paula...

Quite to my suprise... there is documentation that covers some of the issues that have been asked about this menu in the past.

I originally got my menu from Javascript .com (which I don't recall having any documentation - not that I would have read it anyway... but still! lol).
The one from DynamicDrive.com has a bunch of stuff that I never saw before (and it's pretty much the same menu! different links, though).

But it cover the ability to have the menu cross-over into another frame (gasp! How many time have I told people that this was impossible! Soooo sorry :rolleyes: ).

I don't have the time to create frames pages to test it right now (I don't use frames much anymore - and not with this menu), but I've attached the documentaion (hopefully... I never seem to get attachments to work here) that explains how.

Let me know if you have success (eventually I'll try it out for myself - but I still can't even get it to open in a new browser window. Ugh! I feel like an idiot!).

Well anyway... good luck.

DAVE: Good catch! I would never have even known. Thank you sooo much! ;)

airhead of the highest order...
k

khaki
03-25-2003, 04:31 PM
yup...

i'm an airhead.

here's the file (oops :rolleyes: )

edit: seriously.... i attached it that time.
what am i doing wrong!?!
i'll try again (hmph!)

khaki
03-25-2003, 04:35 PM
oh...

didn't read the valid file types :rolleyes:

yikes!
k

DaveSW
03-25-2003, 04:36 PM
Umm... Well... looks like you'll probably have to move away from frames... Try an iframe, but that will probably be the same...

The only other thing i can think of is a little css instead of a frame.


<div style="overflow: auto">
all content frame here
<div>

This would put all your text in an internal scrolling div, which wouldn't affect your menu.

don't think this will help you much but...

Hey Khaki - i thnk this menu is in a slightly different class to the rest of them lol.

dave

DaveSW
03-25-2003, 04:37 PM
Khaki - you'll have to try zipping those files :p

dave

khaki
03-25-2003, 05:11 PM
well... the documentation tells you how to use it with frames (even though I never use it with frames anyway... but Paula wants to).

Just because I can't seem to attach it (what am I doing wrong? I'm not an idiot. I know how to hit the attach button. The file is 9k and I saved it as TXT. What is it that keeps me from getting file attachments to actually attach? grrrrr. This is frustrating. I'll try again, but seriously... if it doesn't work... it's not me... it's gotta be something wrong with something other than me :confused: .

Here goes nuthin!

Edit: YAY! :)
(i replaced the dash with an underscore. could that be it?)

Paula Waringa
03-26-2003, 06:29 AM
Put the menu on my page and... it works!! Not using frames anymore, 'cause no frames is handier in my case. Reason is that some subpages of my page also are linked on some other sites, and this means people who enter my site through those links to subpages won't see the content-frame. So, no more frames for me. Anyhow, to all of you who helped me out here: THANX!!! In case you're curious of what my page is about and looks like, here's the link...
My Faves (http://www.rjwaringa.demon.nl/My_Faves.htm)

Paula

DaveSW
03-26-2003, 06:48 AM
Looks good!

You may want to go through your source code and cut out the <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> lines you've left in

Nice to see someone happy to move from frames!! :D

Dave

Paula Waringa
03-26-2003, 07:00 AM
Thanx! About that source code Step One etc. removing. Is that necessary? Or is that code visible while browsing? 'Cause I didn't see it when checking my page. I've got quite some javascripts on my page now and if I have to remove them all... also a bit scary, 'cause I might accidently remove parts of the codes themselves. Sorry for this question, but I'm a rookie in this you know ;) Have my page online for over 3 years now, but just recently started experimenting with java and stuff.

Paula

DaveSW
03-26-2003, 07:57 AM
It doesn't make any difference to your page, just the source code. actually there are some quite funny things in other peoples source code - bbc had a comment in the code 'index uses weird grid thingy' which i thought very funny.

You are quite safe leaving them in, it just shortens the code to remove them.

dave

Paula Waringa
03-26-2003, 08:17 AM
Yeah, that indeed is funny. Anyhow, maybe when I'm pretty sure of myself, I will remove the 'step one etc.' stuff. But first I have to focus on some site updates ;)

Paula