Click to See Complete Forum and Search --> : onMouseOver dropdown menu


Atrox
02-12-2003, 11:02 AM
I'm looking for a script that will drop down a nice javascript menu when you mouseover some text. Now, I've found a few menus that do that, but they drop down from the mouse, I want it to drop down directly under the text, as if it was an actual menu. Anyone know whereI could get a pre-written menu or how I can do this?

Pixelchik
02-12-2003, 11:29 AM
Here's a drop down javascript menu that is easily edited..Cascading Menu. Hope this is what you're looking for.

http://javascript.internet.com/navigation/cascade-menu.html

khaki
02-12-2003, 11:45 AM
Hi Atrox,

The menu that Pixelchik referenced unfortunatly does not work in Netscape.

There is a cross-browser version here:
http://javascript.internet.com/navigation/toolbar-menu.html
(you need to look to the top of the page to see the example).

I found it to be fairly easy to customize once you play around with it a little.

There are more menu types at that site, so if this one doesn't do it for you, snoop around until one catches your eye.
k

khaki
02-12-2003, 11:49 AM
OHMYGOD!
I just realized that I stepped on your very first post Pixelchik.
I am SOOOO sorry!!!
.. and your from (in)san(e) Diego too (I lived there for a while too).. how horrible am I?!

Please forgive me.
k

Pixelchik
02-12-2003, 11:52 AM
That's okay Kahki,
I should've remembered that it was an IE script only. I'm very Microsoft eccentric here! I never bother with Netscape cause most of the users of my sites are IE users. Sorry Atrox.

khaki
02-12-2003, 12:22 PM
I really am so sorry (it was your first post - which should be kinda special. And then I went and messed it up. I want you to know that 'll always be sorry for that).

But what I also wanted to tell you is that I remember how I used to develop everything for IE too, and then I got stuck at a job where they were contractually obligated to Netscape as a vendor.

I went from rock star to blockhead overnight (lol). (well, maybe the rock star part is stretching it a bit, but hey, it's my story and I'll tell it like I want. lol)

Anyway, I loaded Netscape and IE and I test everything both ways now. And it's better to start developing for both early-on (even though IE has the sweetest learning curve) because I am STILL trying to unlearn a lot of IE-only habits.

Hopefully that doesn't sound like a lecture. I just wish someone would have warned me about that back when I thought I was a hot -shot developer. Needless to say, I've been humbled beyond imagination.

So anyway, I lived all over San Diego, but most of that time was in PB. How bout 'you?

*HINT - if your gonna chat about anything else other than web stuff in here... make sure you wrap it around web stuff. My own first post turned disaterous for me when I got reprimanded to take my jabbering off-line. So I for one, speak with experience when it comes to devestating first posts! (lol)

Glad your here.
Keep posting...
k

Pixelchik
02-12-2003, 12:33 PM
Well thanks for the advice. I guess I should download Netscape. I'm not really a web developer even though I am responsible for maintaining 3 of my companies corporate sites. I'm primarily a graphic designer/with animation and Digital video tendancies. The webmaster thang is just something my employers have thrown at me. UGH. So I spend lots of time surfing the web looking for help and copying code! But so far they think I know what I'm doing. Yes I have lived in the PB area most of my time here. I'm a surfer and scuba diver, hence I must be near the water. Glad to chat with you and thanks...I need all the advice I can get!

Atrox
02-12-2003, 04:58 PM
lol, actually I only make stuff for IE as well, I don't like Netscape, nor will I support it.

Does that script allow you to reference the point that the menu popsup on? If so, then that's EXACTLY what I want, if it's pre-determined and I can't make it popup on a specific link, then it's the same as the others... :)

Pixelchik
02-12-2003, 05:07 PM
I would imagine if you are familiar with Javascripting, that you could edit the .js file to change those parameters. I, however, can't bother with that. I'm not a programmer in any fashion. I only changed the colours, fonts, links and then placed it in a table on my web page.

khaki
02-12-2003, 05:40 PM
Atrox -

Why are you so ready to dismiss this script? There isn't going to be any script that looks, acts, and links to your exact pages (unless you write it yourself).

If you are going to use other peoples scripts, you are going to have to modify them, y'know. If your not willing to do that, your not going to find a lot of people willing to help you. So I'll try again (and I'm expecting some follow-up questions, so don't be afraid to ask again. As long as I know you are trying, I'll be happy to help you get rolling)

The script that I directed you to has 2 lines that position the menu on your page. They are lines 23 & 24 respectively.

var StartTop=75; // Menu offset x coordinate
var StartLeft=10; // Menu offset y coordinate

The x (top) number (set to 75 in my example) positions the menu 75 pixels from the top of the screen.
The y (left) number (set to 10 in my example) positions the menu 10 pixels from the left of the screen.

Change those numbers to the location where you want the menu to be positioned on your page and your all set.

This menu is a good one (for a Javascript dependent menu, that is). It has practically everything - so your more likely to eliminate the things that you don't need than to wish it could do more. But your going to have to get in there and work it for your own needs. Either that or write one yourself (or pay someone to do it for you). With all of the great free scripts out there (and in this forum), it pays to get your hands a little dirty.

Let me know if you need more help.
k

Atrox
02-12-2003, 10:38 PM
Khaki... I never dismissed the script, I only asked if I could have it popup from a specific link, which I don't know enough about javascript to do, yet. But with some guidance and help from those who do know I could learn. I checked out the cross-browser menu and I really like it, I just want the origins of each menu to be designated to a specific link on my page.

Atrox
02-13-2003, 12:16 AM
http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

There's a link to the menu I want to use, the only problem is, I can't seem to get the menu in a horizontal format. That is, I want it to show like I have it on my site (www.dementiasystems.com), and I can only get it to show vertically, how would I get it to show like on my site?

khaki
02-13-2003, 12:37 AM
Sorry if i seemed impatient with you (not intended).

I'll look at the script you referenced tomorrow (i mean in the daylight hours. lol). Too tired right now.

I can't guarantee anything. Tthe script that I referenced is familiar to me (enough so, anyway).

But i'll look at it in the morning (wait, i'm looking at it now. it's a menu builder. doesn't it already create horizontal menus? yes. it looks more complicated than the version i suggested. ugh).

OK, I'll look again in the morning.
till then...
k

Atrox
02-13-2003, 10:00 PM
lol, thx for looking at it.

All I want tho, is to have the menu look like this when it's on the site:

Menu1 Menu2 Menu3

That's what I meant by horizontal, if you go to my website you will see the menu I intend to use already there, just w/o the working dropdown menus :P

khaki
02-13-2003, 11:18 PM
ok atrox.
I (finally) looked at things for you.

Unfortunately, I have no idea what you want. I went to your site. The home page has no obvious value (to the visitor), but the forum link that you provided leads to a full-blown working site - a heck of a lot more complex than your "menu" question suggests.

What are you doing, playing with my head? You say you don't know how to line-up a basic horizontal menu bar and put in your own links, but you have a site with every bell and whistle that can be found on the web.

I really wouldn't mind helping you, but you have confused me with all of your links. One leads to a super-site. The other to a menu generator.

It's looks to me like you have a site that is complete and functional - including the menu. If you are looking to add drop-downs to that, you should contact the person who wrote the existing menu - especially since I don't beleive that the menu was created with that intention in mind.

If you want to learn how to create a menu, just let me know, and I'll try to find a good tutorial for you. Other than that, I don't think that a forum is going to provide you with what you ultimately want.

Try to explain what you are looking to do. If I can direct you to your answer I will.
k

Atrox
02-14-2003, 12:38 AM
Yea, the site has 0 value right now, but that's because I can't get a dropdown menu working. I have sub pages on each menu link and need a dropdown menu to incorporate them the way I want. The forum is PHP which is why it looks better than the site, another reason is that the site only took about 3 hours total to slap together, but it'll look and work much better when I complete it.

No no no, it wasn't that, it was giving me trouble aligning the links. I didn't notice the absolute positioning in the style tag.

I got that fixed, if you go to the site now, and click on the menu, you'll see the only thing I have left to fix, that and I can't make it do onmouseover.

And there never was a menu before, just some links in a table. Now it's a menu, it just doesn't work 100% yet. I thought I did a good job of explaining what I wanted, but I guess I wasn't detailed enough. Now, however, I don't need to explain anymore, when you see the menu you'll know what I mean. Hopefully :)

Thanks for trying so hard to help me.

khaki
02-14-2003, 09:01 AM
atrox -

...YIKES!
Let me try again...

You have offered 2 url links to your site:
A Home page link and a Forum page link.

The "Home" page does nothing except maybe add a bookmark (I don't know, I didn't click it). The "Dementia Systems" link that is on the top of that page appears to only provide a misleading mouseover description in the status bar - it does not link to anything. For the life of me, I cannot understand why you have included a linked reference to that page. You are only confusing me (and I need no additional help in that area. lol)
OK THAT part is out of the way - let's move to the main course...

The forum is PHP which is why it looks better than the site, another reason is that the site only took about 3 hours total to slap together, but it'll look and work much better when I complete it

I've heard much better fish stories, but if it took you only 3 hours to “slap” all of that together, good for you! (and if that's the case, you should be able to learn Javascript in about a minute and a half ... tops! lol). But anyway... the "Forum" link leads to the guts of the site: A full-blown working site. It looks NO DIFFERENT from the rest of the site (!?). The entire site is set up and styled uniformly. The fact that you keep tossing around these nonsense-ical statements makes it almost impossible to help you.

So let's cut to the chase:
The menu appears on every page of your site (with the exception of your home page. ?!?). From what I can tell, it works flawlessly. You say that YOU created it, but that you now want it to have mouse-over generated sub-menus.
My advice? Since you have the ability to do all that you have already done - why don't you head over to HTML Goodies, Javascript.com, or some other place where you can learn that piece as well?

I would be happy to help you (everybody here would, I'm sure), but I suspect that you are not looking for help - but for some free labor. I may be wrong about that (and maybe someone else in the forum is understanding you better than I am), but I've given your question a very fair try. I just don't see how I can help you within the context of this forum.

Sorry, and good luck with getting everything as you want it.
k

Atrox
02-14-2003, 01:28 PM
No, 3 hours to put the site together, you obviously don't use IE4+ so here's the link that opens when you click Dementia Systems - www.dementiasystems.com/win.html That's the site that took 3 hours. Now I understand why you were so confused.

I'm not talking about the menu on my forum, I'm talking about the menu on my homepage. Well, the popup page.

I am looking for help, because I don't understand why the menu isn't positioning the way it should be...

Just forget about the forum, it's fine, 100% working, I don't need help with it, all I need help with is the menu at www.dementiasystems.com/win.html, right below the logo.

I THINK that you'll see what I mean now, just incase... here's a screenshot of what I'm trying to show you...

In the picture you'll see the dropdown menu when I clicked a link, the problem is, the link I clicked for that was about, and the menu dropsdown from the far left... that's the first problem.

The second problem is I can't get it to work with onmouseover.

khaki
02-14-2003, 02:36 PM
you obviously don't use IE4+ so here's the link that opens when you click Dementia Systems - www.dementiasystems.com/win.html That's the site that took 3 hours. Now I understand why you were so confused.
Well, actually I accessed the ORIGINAL links using both Netscape7 AND IE5.5. Both led to the same place.
However NOW you provide a completely different link and then make the statement that I am the one who is confused. Well... your correct. YOU have confused me to the point of annoyance. How am I supposed to understand and help you when you keep insisting that your problems are easily seen when viewing the link, but you haven't ever provided the correct link for me to view?

Secondly, your Home page (the one which you NOW refer to as your homepage - not the one which you referenced a few times prior as your homepage) did not "pop-up". It's a full-size page. But maybe I'm confused (and for the life of me, I cannot figure out what is causing my constant confusion).

Lastly (insert applause here), you will never cease to confuse me because you are very confused yourself. You are also very committed to excluding Netscape users (even the modern versions) - enough so to be arrogant about it.

The bottom-line is that we do not share enough common-ground to work together on your issues. I will always be confused, and you will always be confusing. But... at least I know that I gave it a try.

Good luck to you. I'm afraid that I must let someone else assist you from this point forward.
Regretably giving-in...
k

Nedals
02-14-2003, 03:11 PM
I could not get your drop-downs to work at all, but after a brief view of your code....
To position the menus you need to edit this (and the other menu divs) at around line 270+

<DIV id=dropmenu0 style="BACKGROUND-COLOR: lightyellow; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px; POSITION: absolute; TOP: 0px; VISIBILITY:hidden; WIDTH: 120px; layer-background-color: lightyellow">

simply set TOP:xxxpx; and LEFT:xxxpx; for each div

Hope that helps.

Atrox
02-15-2003, 03:16 AM
Dear lord!!! ERASE YOUR MEMORY, forget every bit of information you think that you got from me...

www.dementiasystems.com is my homepage, the link "Dementia Systems" opens a CHROMELESS window which uses www.dementiasystems.com/win.html (this is the true homepage) the first page is just a redirect page.

Now, once you get to win.html, there should be a logo, menu, news section (middle), forum stats on the left, and a paypal donate on the right.

If you can figure this much out, click on a menu link. DOWNLOADS, for example, and you'll see that the dropdown menu will appear to the far left, I want it to drop directly beneath the link, which it did in the beginning, and suddenly changed. I tried reverting but I couldn't figure out what I changed that screwed it up. Secondly, I want the menu to popup when you mouseover it and go away when mouseout is used. When I used onmouseover I got an error (that I don't remember) If you copy all the parts of the script into another document, and change the onclick values to onmouseover, you'll see what I mean.

I hope this clears everything up, and sorry for confusing you to the point of annoyance, I didn't realize that the popup didn't work for you :P

I'll try what you suggested Nedals, but in the beginning, it dropped down directly from the text link, I don't know why it isn't now. The origianl script I used is here: http://dynamicdrive.com/dynamicindex1/popit.htm, and I used 7 menus.

Thanks so much for helping, maybe now we can get somewhere :P

Also, I am not at all arrogant, my menu does support Netscape, you just lack the common sense and the browser support for my popup, which I will now add a moron-proof link the the page so that everyone can get to the main site.

Nedals
02-15-2003, 01:02 PM
I took a look at your code. The positioning is done dynamically in the 'dropit' function. If you use the method I suggested the positioning will be static (ie will not adjust for change in screen size/resolution). Your problem lies in this piece of code...

themenuoffsetX = (ie4 && opr == -1) ? document.body.scrollLeft : 0
themenuoffsetY = (ie4 && opr == -1) ? document.body.scrollTop : 0
themenuStyle.left = ns6 || ns4 ? e.pageX-e.layerX : themenuoffsetX + event.clientX - event.offsetX
themenuStyle.top = ns6 || ns4 ? e.pageY-e.layerY+19 : themenuoffsetY + event.clientY - event.offsetY+18

I replaced it with this and basic positioning worked in IE6. You will need to deal with the cross browser issues.

themenuStyle.left = e.clientX;
themenuStyle.top = e.clientY + 10;

Dropdown menues are not easy at best and you have made a lot of changes from the script that you based your code on. In addition, dynamic positioning is another a lesson unto itself.
Check out this site. I cannot remenber the exact page, but there's a tutorial on dynamic positioning.
http://www.webreference.com

As to the mouseover/mouseout code, I suggest you revisit that original script.
Hope this helps a little.

Atrox
02-16-2003, 03:43 PM
Got one last question, if you people will still answer. All I want to do now is have it so when you click in a different frame it will call hidemenu on the page with the menu, how would I reference it like that?

Nedals
02-16-2003, 06:19 PM
Do you mean something like this..

....onClick="top.framename_containing_menu.hidemenu()"

You may have to move your javascript in the HEAD portion of your document for this to work, but I'm not certain.

Atrox
02-17-2003, 12:09 PM
Yea, something like that... just need it so when you click inside another frame, the menu in the top frame (dsmain) gets hidden.

Nedals
02-17-2003, 05:14 PM
I would probably do this a different way.

Instead of using onClick in your page..
Try something like this:
<body........ onLoad="top.dsmain.hidemenu()">

Atrox
02-18-2003, 10:45 PM
onload wouldn't do what I want. I want it to hide the menu in frame 1 (dsmain) whenever onclick or onmouseover is called within another frame (dsleft for example)

Nedals
02-19-2003, 12:35 AM
Maybe I misunderstood, or I did not explain well.

The body tag goes in the page you put in the "dsleft" frame. and hides the menu on the page in the "dsmain" frame. Does that make sense.

If you want it to work with an onClick, then use my previous post! That also goes in the document in your "dsleft" fame

Atrox
02-20-2003, 12:33 PM
I tried that, it didn't work, I put the script in the head of both pages and changed the bottom of the script where it hides the menu to call it from the top frame like you said... maybe I did it wrong.

Nedals
02-20-2003, 09:08 PM
Originally posted by Atrox
....head of both pages...?????????
No.. (if I understood)
contentmain.html (assumed) goes in the frame named 'dsmain', just like you had it, and will contain the 'hidemenu()' function, just like you had it, if every thing is as it was. Make NO changes to this page.
NOW.
contentleft.html (assumed) will be in the frame named 'dsleft'. In the body tag of contentleft.html add...
<body ........ onLoad="top.dsmain.hidemenu()">
and that should work.
If I've confused you with all the naming stuff, post your frameset (not the pages) and I'll restate the above using the correct names. OR give me a link to the site.

Photobug63
02-20-2003, 09:27 PM
Originally posted by khaki
Hi Atrox,

The menu that Pixelchik referenced unfortunatly does not work in Netscape.

There is a cross-browser version here:
http://javascript.internet.com/navigation/toolbar-menu.html
(you need to look to the top of the page to see the example).

I found it to be fairly easy to customize once you play around with it a little.

There are more menu types at that site, so if this one doesn't do it for you, snoop around until one catches your eye.
k

*********************

I couldn't find the any info on the .js files.

Keith

khaki
02-21-2003, 08:45 AM
Hi Keith -

The two JS files can be accessed at the following:

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

http://javascript.internet.com/navigation/nwrmenu_var.js
(this is the one where you will need to make the changes to customize it for your particular needs)

Good luck with this one, it can look a bit daunting, but it's a good menu.
(and in my opinion, Atrox wouldn't still be confused - and continue to confuse everyone who attempts to help him - if he didn't dismiss this script so easily and decide to go off in an unecessary frames direction).

If you need help with this Keith, start a new thread and PM me to let me know where it is (I don't really want this menu to be tied to this thread, since the 2 approaches are not the same, and will only serve to confuse matters even more).

Have fun...
k

Pixelchik
02-21-2003, 12:39 PM
Thanks Photobug and Khaki for that cross-browser pull down menu. It works better than that I.E. only one I was using. AND it's actually easier to revise to fit my page! I will be using this one in my new website.

You guys are GREAT!:

khaki
02-21-2003, 01:24 PM
Good for you Pixelchik!!!

That is a good menu
(maybe a bit heavy, and javascript dependent, but still... I like it).

I'm glad you gave it a try and
I'm happy that it worked for you.

Thanks for sharing your success (and since we haven't heard anything from Keith yet, maybe he is on the path to success at this very moment).

This forum is the best!
k
(by the way, I check out the PB surf on a whole bunch of surf cams, so give me a big wave hello next time your in the water and I'll look for ya. lol)

Pixelchik
02-21-2003, 04:06 PM
Whilst I was able to revise the menu to contain all my links and colours etc. I cannot seem to get this menu inside of a table. I need it to be at the top of the page, but inside a table so it is in alignment with the next table contents. How can I do that? Hope you can help.

khaki
02-21-2003, 04:19 PM
hmmm...

That menu uses x/y coordinates for placement. I've never tried to use it within a structure like a table.

Can you use CSS positioning for both tables and just have the menu fall in place, or do you use table width percentages to account for resolution differences?

Pixelchik
02-21-2003, 04:48 PM
I'm not familiar with CSS either. Only used them once long time ago. But I gavethe JS file to my buddy that sits next to me and he's going to look through it see if he can find a way to make it do what I want. I'll let you know what he finds. Thanks!

Photobug63
02-21-2003, 10:49 PM
Thanks I have it figured out enough to use it. I am going to use for the entire bar menu instead of just the dopdown applet menu I needed for one function. I even created an arrow to add to the drop down. It is a wonderful script.

The only thing my drop downs don't have white border top and left and black on the bottom right. But I can live with it.


Originally posted by khaki
Hi Keith -

The two JS files can be accessed at the following:

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

http://javascript.internet.com/navigation/nwrmenu_var.js
(this is the one where you will need to make the changes to customize it for your particular needs)

Good luck with this one, it can look a bit daunting, but it's a good menu.
(and in my opinion, Atrox wouldn't still be confused - and continue to confuse everyone who attempts to help him - if he didn't dismiss this script so easily and decide to go off in an unecessary frames direction).

If you need help with this Keith, start a new thread and PM me to let me know where it is (I don't really want this menu to be tied to this thread, since the 2 approaches are not the same, and will only serve to confuse matters even more).

Have fun...
k

Photobug63
02-22-2003, 03:18 PM
I guess I messed something up. I can't get the
script to work on netscape. It works fine with explorer.

I got the menu bar to work in netscape. I had to upload it to my test directory on my host. It wouldn't work on the computer.

It doesn't matter much my copywrite update script doesn't work either. It gives me 103 instead of 2003.

Now I get to look for a copyright update script that works on both netscape and explorer

Atrox
02-23-2003, 10:26 PM
Originally posted by nedals
No.. (if I understood)
contentmain.html (assumed) goes in the frame named 'dsmain', just like you had it, and will contain the 'hidemenu()' function, just like you had it, if every thing is as it was. Make NO changes to this page.
NOW.
contentleft.html (assumed) will be in the frame named 'dsleft'. In the body tag of contentleft.html add...
<body ........ onLoad="top.dsmain.hidemenu()">
and that should work.
If I've confused you with all the naming stuff, post your frameset (not the pages) and I'll restate the above using the correct names. OR give me a link to the site.

Wow, I haven't checked this thread in a long time...

Nedals, I'm not too hot JavaScript, but wouldn't that make it hide the menu when the page is loaded? I want it to hide when you click on that page(left.php)

Nedals
02-24-2003, 01:38 PM
Nedals, I'm not too hot JavaScript, but wouldn't that make it hide the menu when the page is loaded? I want it to hide when you click on that page(left.php)
Yes, the menu on 'main.xxx' closes when 'left.php' loads. If you want to use a 'click' event, you will need an object to click on (an image maybe) and use...

<img src="name.gif" onClick="top.dsmain.hidemenu()">

I do not know of an onClick event that will work anywhere on the page. Someone else may.

Photobug63
03-06-2003, 02:48 PM
This is a wonderful script and I am going to use it. Just wondering if search engines can find my links. My links are in the file it uses. Or do they just believe I have a one page site?




Originally posted by khaki
Hi Keith -

The two JS files can be accessed at the following:

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

http://javascript.internet.com/navigation/nwrmenu_var.js
(this is the one where you will need to make the changes to customize it for your particular needs)

Good luck with this one, it can look a bit daunting, but it's a good menu.
(and in my opinion, Atrox wouldn't still be confused - and continue to confuse everyone who attempts to help him - if he didn't dismiss this script so easily and decide to go off in an unecessary frames direction).

If you need help with this Keith, start a new thread and PM me to let me know where it is (I don't really want this menu to be tied to this thread, since the 2 approaches are not the same, and will only serve to confuse matters even more).

Have fun...
k

cliffnote
03-25-2003, 01:41 AM
Hey Khaki, Wanted to thank you for all the wonderful posts. I learned a lot about this script from you and am going to try and use it. By the way, I live in San Diego in Pacific Beach area... love it. Eat at beach almost everyday.

I'm curious if you or anyone has good results in the menu working on IE, Netscape and AOl both PC and Mac? and if you have any info. about how old of versions of browsers it will probably work on. Current site I'm working on has variety of visitors that may have older versions and computers. However, this type of pulldown menu would work great because I don't want to use up a bunch of 'real estate' with their rather lengthy/wordy menu items.

cliffnote
03-27-2003, 02:49 PM
per Khaki original post:
"There is a cross-browser version here:
http://javascript.internet.com/navigation/toolbar-menu.html
(you need to look to the top of the page to see the example). "

I've started modifying this very nice script for my use and encountered a problem. Upon adding items, I cannot get the left-most menu to pulldown. Can anyone see the errors of my ways?
I just did a test of adding things to left-most menu and when I do, the whole menu bar disappears.

========Original code in nwrmenu_var.js:


Menu1=new Array("Home","index.html","",0,20,120);

Menu2=new Array("What is NWR?","","",4);
Menu2_1=new Array("Questions","http://javascript.internet.com/tutorials/","",0,20,120);
Menu2_2=new Array("Home","http://javascript.internet.com","",0);
Menu2_3=new Array("internet","http://www.internet.com","",0);
Menu2_4=new Array("Master List","http://javascript.internet.com/master-list/","",2);
Menu2_4_1=new Array("New","http://javascript.internet.com/new/","",0,20,120);
Menu2_4_2=new Array("New","http://javascript.internet.com/new/","",0);

==============My test code is:
Menu1=new Array("What is TEST?","","",4);
Menu1_1=new Array("Questions","http://javascript.internet.com/tutorials/","",0,20,120);
Menu1_2=new Array("Home","http://javascript.internet.com","",0);
Menu1_3=new Array("internet","http://www.internet.com","",0);
Menu1_4=new Array("Master List","http://javascript.internet.com/master-list/","",2);
Menu1_4_1=new Array("New","http://javascript.internet.com/new/","",0,20,120);
Menu1_4_2=new Array("New","http://javascript.internet.com/new/","",0);

Menu2=new Array("What is NWR?","","",4);
Menu2_1=new Array("Questions","http://javascript.internet.com/tutorials/","",0,20,120);
Menu2_2=new Array("Home","http://javascript.internet.com","",0);
Menu2_3=new Array("internet","http://www.internet.com","",0);
Menu2_4=new Array("Master List","http://javascript.internet.com/master-list/","",2);
Menu2_4_1=new Array("New","http://javascript.internet.com/new/","",0,20,120);
Menu2_4_2=new Array("New","http://javascript.internet.com/new/","",0);

====

khaki
03-27-2003, 04:18 PM
Hi cliffnote...

I'm sorry that I haven't responded sooner... I'm a bit busy and distracted at the moment (still am!).

I won't have a chance to give this a good look until later tonite, but if you want to try to find the error in the meantime, keep pasting-in each menu item 1 at a time into the working original until it causes that version to crap-out.
Then you will have at least located the problem area that you need to look at more closely.

Sorry... I really don't have time right now... but I'll get back to you later (I promise).

By the way, I lived on Chalcedony (on the corner of Jewel). Where are you in PB?
Does The West End still exist (between PB and Bird Rock)? It's been a long time since I crushed my opponents - guys! :eek: - on the pool table in that dive!

I'll catch up with you later.

now a Jersey Wahine...
;) k

cliffnote
03-27-2003, 07:19 PM
Thanks Khaki... I kept playing around with it and realized that the first line must define the height, width... it works fine with the following statement.

Menu1=new Array("What is TEST?","","",4, 20, 120);

So, that's solved, but like everything that just puts you up against the next thing. In this thread I had read in Pixelchik post of 2/21/03 of desire to have menu relative to cell in a table. I have two applications for this table, one in which my alignment can be precalculated because table is left justified. Unfortunately, the other application requires webpage to be centered and thus a function of client-side adjustment of window width. Pixelchik... did you buddy come up with something?

Guess the javascript would have to either make menu insert within a cell of a table, or, be able to calculate the x,y coordinates on the fly for the parameters found in file nwrmenu... .js hmmm, beyond me... would love to use this if could make it relative. Can you do it?
----
Also, had question in early post about tests on other browsers... and, am curious if this script is so large it may slow page loading very much... I can't tell with broadband & fast computer...
----


Khaki... on personal note. You won't believe this. Yes, I do live near intersection of Chalcedony and Jewell !!! that's my nearest cross-street 1/2 blk from me. What are the chances of that happening--what a co-incidence! I looked up The West End in phone book and didn't see a listing... don't know about them. I go to Kono's a lot... ever been there a foot of pier in P.B.?

khaki
03-27-2003, 11:16 PM
Hey cliffnote...

glad you figured it out.

As far as positioning... the script allows you to place it within a <div>.

I do mine with specific coordinates, but you can do it with % if that's your need.

I have no idea about Mac or AOL (just real computers and portals. lol)

Let me know if you still need help with this (maybe you should start a new thread too. Just be sure to tell me what you call it).

By the way...
it's called London's West End. It's on the Blvd (LaJolla Blvd. right at the bend before the Bird rock section).
Anyway... it's been a while... so it's probably changed since then (me too!).

Seriously though... start a new thread if you still need help.

how 'bout Cass Street Bar & Grill? You go there?...

just a multi-coastal beach girl reminiscing...
:) k

cliffnote
03-28-2003, 03:12 AM
Hi Khaki,
Hey, I figured out a nice relative way. I have a fixed width table but it is 'centered' ... so the fixed x,y coordinates stick the menu in one spot-- UNLESS you select the 'center' option on the variable MenuCentered then the menu moves around just like the table does. Cool. I've listed the variables below... I just kept fooling around with x,y until it landed where I wanted, and it follows the table well.

var MenuCentered='center'; // Menu horizontal position 'left', 'center' or 'right'

var StartTop=100; // Menu offset x coordinate
var StartLeft=180; // Menu offset y coordinate

By the way, you're right about this script. It has been well written!! :)
----
Yes, your two favorites spots are still in phone book. I don't go to either, but the one on Cass is still very popular and the corner now has a coffee shop '976' that is extremely popular. Ever go to Kono's?
Hey, you didn't say anything about the co-incidence I mentioned. Did you SEE THAT... it's amazing.

cliffnote
04-02-2003, 03:04 AM
I've been trying to verify if this script works on all browsers and platforms. Not sure, but it looks like it doesn't display the menu on:
Mac, OS8.6, AOL 5
I know some may say who cares, but I have clients that do. Anyone have experience with this script and can comment on it's function on various browsers and platforms, especially the one mentioned? If you have access to that combo, perhaps you can tell me if menu appears at top of page.

http://javascript.internet.com/navigation/toolbar-menu.html

It seems like an excellent script and I have prepared at least one website to use it... just doing final checks...