JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old January 5th, 2005, 06:50 PM
Patto Patto is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 1 Patto User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Drop down menus

Hi, I've been looking around for quite some time now for a javascript script to create dropdown menus. I need something like a bar on my screen that when the mouse is hovered over one part, the menu pops up for that section...and when the mouse off it, the pop up disappears after a second or so. I don't need any pictures, and I already have a css that changes colours and sets text (though different text size in the menu would probably be a good idea).
I'm primarily a PHP programmer, and as far as I know, there's nothing in PHP that does anything remotely like this, and I've never understood javascript, but from what I've found around on the net, what I'm trying to do seems complicated.
I've found some stuff that I can flounder around with at the very least, but I haven't been able to work out how to make the menus go away when the mouse is elsewhere, so if nothing else, could someone solve my dilema of that. Explaining to me how to do the whole thing would be more appreciated though (I've got no idea how big this would be...it's probably impractical).

Thanks for any help that you can give me.

Reply With Quote
  #2  
Old January 5th, 2005, 07:32 PM
MrSnrub MrSnrub is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 3 MrSnrub User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 56 sec
Reputation Power: 0
I can recommend a JavaScript menu that I used when developing a web site some years ago. It was developed by Andy Woolley and is available on DynamicDrive (http://www.dynamicdrive.com/dynamicindex1/topmen4/index.htm).
I found this menu to be highly modifiable for my purposes and you don't need to have an extensive knowledge of JavaScript to use it.
To check out a sample, download and extract the zip file, and run the .htm file.

Hope this helps.

Reply With Quote
  #3  
Old February 9th, 2005, 01:21 PM
dark_shadow dark_shadow is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 1 dark_shadow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 47 sec
Reputation Power: 0
Angry I need some help

I was wondering if anybody could help me. My problem is that I am trying to create a drop-down menu with all of the names of fonts. I need a table that has every character and the bold of that character, and i want to be able to select a specific font and have only the bold objects change to it. For example, if I were to click on Broadway, I want the bold characters to be shown in Broadway, with all the normal characters staying as the default text. Could you possibly show me the code? Thanks.

Reply With Quote
  #4  
Old February 9th, 2005, 03:29 PM
Anibal Anibal is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 176 Anibal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 48 sec
Reputation Power: 4
Hey dark_shadow! Look, I have an idea for you:

Code:
 
<HTML><HEAD> 
<script type="text/javascript">
function chgFont(div, font){
document.getElementByID(div).style.fontFamily = font;
}
</script>
</HEAD><BODY>
 
<select name=.....onChange="chgFont('boldchars', this[this.selectedIndex].value);">
<option value="arial"> Arial </option>
................
.............
</select>
 
abcdefghijk........
<div ID="boldchars"><b>abcdefghijk</b></div>
 
</body></html>


Good Luck

Anibal.


PS: It can also be done, simply modifying a style sheet....both are similar solutions

Reply With Quote
  #5  
Old February 10th, 2005, 10:08 AM
chloe1 chloe1 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 1 chloe1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 16 sec
Reputation Power: 0
Help

Hi I wonder if anyone could help with what is hopefully a straightforward question. I have created a dropdown box. The code used is shown below:



<script language="JavaScript" type="text/javascript">

function changeMe()

{

if(document.form1.site.value != "")

{

location.href=document.form1.site.value;

}

}

</script>



<form action="" method="post" name="form1" id="form1">

<select name="site" onchange="changeMe();">

<option value="">Select</option>

<option value="bet.html">Bet365 Poker</option>

<option value="red_poker.html">32 Red Poker</option>

<option value="empire_poker.html">Empire Poker</option>

<option value="littlewoods_poker.html">Littlewoods</option>

<option value="pacific_poker.html">Pacific Poker</option>

<option value="party_poker.html">Party Poker</option>

<option value="victor_chandler_poker.html">Victor Chandler</option>

<option value="william_hill_poker.html">William Hill</option>

</select>

</form>





The first time the dropdown box is used, it works perfectly and a new page is loaded. This new page has identical dropdown box code, however when you then select from the dropdown box on the new page nothing happens. I’ve tried everything I know, any ideas anybody?

Reply With Quote
  #6  
Old February 10th, 2005, 03:41 PM
Anibal Anibal is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 176 Anibal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 48 sec
Reputation Power: 4
This will sound quite obvious, but...is the form in the other pages also called form1? If not...it's impossible to go anywhere from there!!

Anibal.

PS: I wouldn't put the "action" part on the form, since it's never submited.

Reply With Quote
  #7  
Old February 28th, 2005, 02:19 AM
Sothink Sothink is offline
Permanently Banned
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 5 Sothink User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 25 sec
Warnings Level: 20
Number of bans: 1
Reputation Power: 0
There is a cross browser dhtml menu solution at sothink.

http://www.sothink.com/webtools/dhtmlmenu/index.htm

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Drop down menus


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway