corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » JavaScript help Drop down menus??? eek!


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author JavaScript help Drop down menus??? eek!
RS6
Member

Registered: 5th Nov 03
Location: with MJ
User status: Offline
13th Apr 05 at 20:39   View User's Profile U2U Member Reply With Quote

Long shot anybody know how its done

i've got an image of a button i want to use just need the menu coming down from it?

i know how to code a drop down just don't know how to get the button i want working with it
ChazSXi
Member

Registered: 26th Jan 03
User status: Offline
13th Apr 05 at 21:11   View User's Profile U2U Member Reply With Quote

RS6
Member

Registered: 5th Nov 03
Location: with MJ
User status: Offline
13th Apr 05 at 22:19   View User's Profile U2U Member Reply With Quote

not helping ^
Dom
Member

Registered: 13th Sep 03
User status: Offline
13th Apr 05 at 22:22   View User's Profile U2U Member Reply With Quote

so you've got a graphica button that when the mouse goes over it, causes a drop down menu?

surely you put a mouseover in the img tag to call the menu routine to drop down at x and y etc

[Edited on 13-04-2005 by Dom]
James_DT
Member

Registered: 9th Apr 04
Location: Cambridgeshire
User status: Offline
13th Apr 05 at 22:45   View User's Profile U2U Member Reply With Quote

That's exactly how you do it.
For clicking the image, you'd use onClick="java shit here();" inside the <img> tag and for mouse over its onMouseOver="java shit here();". Don't forget to use onMouseOut to clear the menu afterwards.
RS6
Member

Registered: 5th Nov 03
Location: with MJ
User status: Offline
14th Apr 05 at 00:42   View User's Profile U2U Member Reply With Quote

thanks guys seems to make sense now
RS6
Member

Registered: 5th Nov 03
Location: with MJ
User status: Offline
14th Apr 05 at 10:24   View User's Profile U2U Member Reply With Quote

what am i doing wrong?

</select></a></td>
<td width="142" height="35">
<img src="a:\team.jpg" onMouseOver= option value="Please Select Option
<option value="Latest News"
<option value="League News"; return true"
</select></td> ></A>
Tim
Site Administrator

Avatar

Registered: 21st Apr 00
User status: Offline
14th Apr 05 at 10:46   View Garage View User's Profile U2U Member Reply With Quote

Lots!

DHTML drop-down menus (like on the 'message board' menu on thie site) are not the same as an HTML form SELECT drop-down menu...

I suggest you do a google for DHTML menus and download a ready-written version

Plus why are you loading an image from a:\ drive...

[Edited on 14-04-2005 by Tim]
Mather.16v
Member

Registered: 1st Nov 04
Location: Stockport
User status: Offline
14th Apr 05 at 11:07   View User's Profile U2U Member Reply With Quote

http://www.javascriptkit.com/cutpastejava.shtml

i use this for pritty much all simple java scripts

 
New Topic

New Poll

Corsa Sport » Message Board » Off Day » JavaScript help Drop down menus??? eek! 23 database queries in 0.0073581 seconds