Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 11th, 2005, 07:31 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default javascript menu DHTML? drop-down

I have a document called 'navframe.asp'.

I have this line of code in it:

<td width="129" align="center" style="border:1px solid #999999;cursor:hand;background-color:#003366;text-align:center" onclick="parent.main.location.href='/mackenzie/asp/ticketing/ticketing.asp';" onmouseover="fadeImgend2(3)" onmouseout="fadeImg2(3)">Ticketing</td>

I am looking for a way to have a drop-down menu appear when 'Ticketing' is clicked.

An example of this is in this URL:

http://www.dhtmlmedia.com/dhtmlmenu/index.html

Mouseover the 'Products' button in the bar at the top.

How do i have something like this?

Picco


www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old March 11th, 2005, 09:57 AM
Friend of Wrox
 
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Picco,

The coolmenus script should do what you want...
http://www.dhtmlcentral.com/projects/coolmenus/?m=10

HTH,

Chris

 
Old March 11th, 2005, 10:06 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

i dont want a full re-write of my table shown below, i just want a small piece of code that will create a drop down-menu when 'help' is clicked:

<table width="800" border="0" align="center">
  <tr>
    <td><div align="center"><img src="images/mack_demo_navframe.gif" width="515" height="33">
      <table border="1" width="515" align="center" cellpadding=0 cellspacing=0 bordercolor="#000000" bgcolor="#000000" id=link_table name=link_table>

        <tr bordercolor="#AEBDE5">
          <td width="128" align="center" style="border:1px solid #999999;cursor:hand;background-color:#003366;text-align:center" onclick="parent.main.location.href='airbook.asp';" onmouseover="fadeImgend2(0)" onmouseout="fadeImg2(0)">Flights</td>
          <td width="128" align="center" style="border:1px solid #999999;cursor:hand;background-color:#003366;text-align:center" onclick="parent.main.location.href='bookings.asp'; " onmouseover="fadeImgend2(1)" onmouseout="fadeImg2(1)">Bookings</td>
          <td width="128" align="center" style="border:1px solid #999999;cursor:hand;background-color:#003366;text-align:center" onclick="parent.main.location.href='admin_login_fo rm.asp';" onmouseover="fadeImgend2(2)" onmouseout="fadeImg2(2)">Admin</td>
          <td width="129" align="center" style="border:1px solid #999999;cursor:hand;background-color:#003366;text-align:center" onclick="parent.main.location.href='help.htm';" onmouseover="fadeImgend2(3)" onmouseout="fadeImg2(3)">Help</td>
          <td width="129" align="center" style="border:1px solid #999999;cursor:hand;background-color:#003366;text-align:center" onclick="parent.location.href='logout.asp?logOut=t rue';" onmouseover="fadeImgend2(4)" onmouseout="fadeImg2(4)">Logout</td>
        </tr>
      </table>
    </div></td>
  </tr>
</table>

www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt
 
Old March 11th, 2005, 10:13 AM
Friend of Wrox
 
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Try this one: http://www.dynamicdrive.com/dynamici...pmenuindex.htm

 
Old March 11th, 2005, 10:55 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

how would i add this to my existing <td>???

www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt
 
Old March 11th, 2005, 11:45 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

var menu2=new Array()
menu2[0]='<a href="help.htm#anchor1">Registration</a><br>'
menu2[1]='<a href="help.htm#anchor2">Agency Setup</a><br>'
menu2[2]='<a href="help.htm#anchor3">Staff User Names</a><br>'

this javascript is used inside a frame at the top of my page.

How can i make the page the links go to (help.htm) open in the main window and not the small frame at the top?

This code works for another button in the frame:

onclick="parent.main.location.href='airbook.asp';"

how can this be added into my javascript?

my whole code:
<script type="text/javascript">
var menu2=new Array()
menu2[0]='<a href="help.htm#anchor1">Registration</a><br>'
menu2[1]='<a href="help.htm#anchor2">Agency Setup</a><br>'
menu2[2]='<a href="help.htm#anchor3">Staff User Names</a><br>'
</script>

<tr bordercolor="#AEBDE5">
          <td width="128" align="center" style="border:1px solid #999999;cursor:hand;background-color:#003366;text-align:center" onclick="parent.main.location.href='airbook.asp';" onmouseover="fadeImgend2(0)" onmouseout="fadeImg2(0)">Flights</td>
          <td width="128" align="center" style="border:1px solid #999999;cursor:hand;background-color:#003366;text-align:center" onclick="parent.main.location.href='bookings.asp'; " onmouseover="fadeImgend2(1)" onmouseout="fadeImg2(1)">Bookings</td>
          <td width="128" align="center" style="border:1px solid #999999;cursor:hand;background-color:#003366;text-align:center" onclick="parent.main.location.href='admin_login_fo rm.asp';" onmouseover="fadeImgend2(2)" onmouseout="fadeImg2(2)">Admin</td>
          <td width="129" align="center" style="border:1px solid #999999;cursor:hand;background-color:#003366;text-align:center" onclick="return dropdownmenu(this, event, menu2, '200px');" onmouseover="fadeImgend2(3)" onmouseout="fadeImg2(3);delayhidemenu()">Help</td>
          <td width="129" align="center" style="border:1px solid #999999;cursor:hand;background-color:#003366;text-align:center" onclick="parent.location.href='logout.asp?logOut=t rue';" onmouseover="fadeImgend2(4)" onmouseout="fadeImg2(4)">Logout</td>
        </tr>

www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt
 
Old March 14th, 2005, 12:58 PM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

http://www.codingforums.com/showthre...786#post284786

www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt




Similar Threads
Thread Thread Starter Forum Replies Last Post
DHTML Menu... rupen HTML Code Clinic 3 January 17th, 2007 06:13 AM
reset a drop-down menu in javascript crmpicco Javascript How-To 4 September 29th, 2005 08:24 AM
DHTML Menu. rupen HTML Code Clinic 5 July 20th, 2005 05:01 AM
cross frames with javascript drop-down menu crmpicco Javascript How-To 1 March 14th, 2005 12:57 PM
javascript drop-down menu that can cross-frames! crmpicco Javascript How-To 1 March 14th, 2005 12:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.