Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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
Reply With Quote
  #2 (permalink)  
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

Reply With Quote
  #3 (permalink)  
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
Reply With Quote
  #4 (permalink)  
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

Reply With Quote
  #5 (permalink)  
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
Reply With Quote
  #6 (permalink)  
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
Reply With Quote
  #7 (permalink)  
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:06 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.