4 Replies - 1589 Views - Last Post: 21 April 2002 - 01:25 PM

#1 GumboUK  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 21-January 02

Help with Javascript Menu's

Posted 17 April 2002 - 02:41 AM

Hi i am designing a new page, and on that page i want two menus, one across the top and one down the side.

But i cant get both menu's to work at the same time.

if u go to http://www.meetmarke...ol/intranet.htm

you will see the page with the top menu.

if u go to http://www.meetmarke...l/intranet1.htm

you will see the page with the side menu.

All that is different is one tag has been removed so the side menu will show, the tag is ::

<script language="javascript1.2" src="menu.js"></script>

So how can i get them both to work at the same time??

Please help, im at a loss as im new to .js

Also you will notice that page is ment to load without a tool bar, scroll bar, status bar etc....well when i load it up, the page is about an inch down the screen. How can i get it to load so its at the top.

go to

http://www.meetmarke...ool/homepg3.htm and click where it says "click here Drew"

Anyone any ideas on that??

Thanks

Hope you can help me

SL


Is This A Good Question/Topic? 0
  • +

Replies To: Help with Javascript Menu's

#2 skrilla monkey  Icon User is offline

  • goat.face

Reputation: 0
  • View blog
  • Posts: 838
  • Joined: 14-January 02

Re: Help with Javascript Menu's

Posted 18 April 2002 - 08:17 PM

several things:

our (well, at least my) biggest thing is: 'did you write the code or at least FULLY UNDERSTAND IT?' if not, then try to avoid it, because, as in this case, it might need help and then it is harder for us to help you. also, there are external JS files, which make it harder to debug the script.
something that might be wrong: same variable names etc, thus showing only one.

to fix the HTML:
<body topmargin=0 leftmargin=0>

if you have tables, you need this: <table cellpadding=0 cellspacing=0> or there will be gaps there.

once again on the popups: i dont see any code for them so its kinda hard to debug it :)

-pete

Was This Post Helpful? 0
  • +
  • -

#3 GumboUK  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 21-January 02

Re: Help with Javascript Menu's

Posted 19 April 2002 - 12:44 AM

I didnt write the scripts, i downloaded them.

the script for the top menu are :::

http://www.meetmarke.../school/menu.js
http://www.meetmarke...hool/menu_ie.js
http://www.meetmarke...ool/menu_ns4.js
http://www.meetmarke...ool/menu_ns6.js
http://www.meetmarke...ool/menu_op5.js
http://www.meetmarke...hool/sniffer.js
http://www.meetmarke...school/style.js

and for the page with the menu down the side :::

http://www.meetmarke...ool/menu_com.js
http://www.meetmarke...xmplmenu_var.js

Hope thats some help.

sL

Was This Post Helpful? 0
  • +
  • -

#4 skrilla monkey  Icon User is offline

  • goat.face

Reputation: 0
  • View blog
  • Posts: 838
  • Joined: 14-January 02

Re: Help with Javascript Menu's

Posted 21 April 2002 - 12:59 PM

hmm. lots of script for something so simple. if you want to use those kind of things, first off put them all together. two sets of popup menus on two different axes (as in the y axis and the x axis, as in horizontal and vertical popups) looks pretty pukey. sorry. second, learn a bit of JS. i can do that same thing you're trying to achieve with about 10-20% of the code its using. use hidden/visible <div>s and javascript to create a time 'lag' so they dont dissapear on rolloff immediately. :) a good place to learn JS is www.webmonkey.com, buy a book (i reccomend Peachpit Press' Javascript for the WorldWideWeb, see about it here. excellent book. then follow up with some advanced JS books). :) hope i helped.
Was This Post Helpful? 0
  • +
  • -

#5 MarkoDaGeek  Icon User is offline

  • Dirty Technophile
  • member icon

Reputation: 11
  • View blog
  • Posts: 11,158
  • Joined: 13-October 01

Re: Help with Javascript Menu's

Posted 21 April 2002 - 01:25 PM

do you Really need the two menus ? like whay pete said , web monkey is a great place to learn Java otherwise look around http://www.guistuff.com for some navagation stuff or maybe concider flash or having the side menu in html ? just some thoughts , Good luck
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1