You are here: DEVPPL Forum Programming JavaScript Forum
NOTIFICATIONS
54.124
MEMBERS
15.697
TOPICS
62.285
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

menus

0

Loading

menus

Postby Lil » Thu Apr 21, 2005 10:35 pm

Hi im making a website but ive come stuck because i dont know how to make a menu that has images and once som1 clicks it some links appear under it. my site is www.lil9.com

An example of what i mean, www.cncden.com there menu works how id like mine to.

Could any1 help me out on what i have to do?


thanks
lil9
Lil
 
Reputation: 0
Posts: 56
Joined: Wed Sep 08, 2004 10:31 am
Location: UK - England - Hull
Highscores: 0
Arcade winning challenges: 0

menus - Sponsored results

Sponsored results

Login to get rid of ads

 

0

Loading

Postby Phate » Fri Apr 22, 2005 2:01 am

well, i would check out the "menu" section of http://dynamicdrive.com
Web-Developing since '03
Image
Phate
 
Reputation: 0
Posts: 826
Joined: Sun Nov 21, 2004 5:12 am
Location: 127.0.0.1
Highscores: 0
Arcade winning challenges: 0
0

Loading

Postby Malcolm » Fri Apr 22, 2005 8:38 pm

Here's one, quick n' easy:
Code: Select all
<style type="text/css">
   #menu1 { border: 1px solid #000; width: 120px; }
   #items1 { overflow:hidden; height:0px; }
</style>

<div id="menu1" onmouseover="document.getElementById('items1').style.height='auto';" onmouseout="document.getElementById('items1').style.height='0px';">
   Menu Header
   <div id="items1">
      <a href="#">a blah</a><br />
      <a href="#">b blah</a><br />
      <a href="#">c blah</a><br />
   </div>
</div>

Works in Mozilla, IE and Opera :)

{Edit}
After playing around with the code for a bit Opera seems to like this:
Code: Select all
<style type="text/css">
   .menu { border: 1px solid #000; width: 120px; }
   .items { overflow:hidden; height:0px; }
   .menu:hover .items { height: auto; }
   
</style>

<div class="menu">
   Menu Header
   <div class="items">
      <a href="#">a blah</a><br />
      <a href="#">b blah</a><br />
      <a href="#">c blah</a><br />
   </div>
</div>

But non of the other browsers do :P
Image
Malcolm
 
Reputation: 0
Posts: 198
Joined: Thu Oct 07, 2004 10:53 pm
Location: Ontario, Canada
Highscores: 0
Arcade winning challenges: 0
0

Loading

Postby Lil » Sat Apr 23, 2005 8:21 pm

malcom is there any way to make ur code work so that the links dont apear until som1 clicks on the image? also without a border ?
Lil
 
Reputation: 0
Posts: 56
Joined: Wed Sep 08, 2004 10:31 am
Location: UK - England - Hull
Highscores: 0
Arcade winning challenges: 0
0

Loading

Postby Malcolm » Sun Apr 24, 2005 12:29 am

Not this way, you'd need to figure out something else.
Image
Malcolm
 
Reputation: 0
Posts: 198
Joined: Thu Oct 07, 2004 10:53 pm
Location: Ontario, Canada
Highscores: 0
Arcade winning challenges: 0
0

Loading

Postby Dafunkymunky » Sat Apr 30, 2005 12:55 pm

hi lil

if you could give apictorial representation of what exactly type of window you need i could code one for you
well but you will have to wait till 6 th till i login again
i will be busy next week with my exams

--DAFUNKYMUNKY
Dafunkymunky
 
Reputation: 0
Posts: 183
Joined: Fri Apr 08, 2005 8:32 am
Location: India
Highscores: 0
Arcade winning challenges: 0
^ Back to Top