Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell driver drivers email error ethernet excel firefox firefox 3 freeze game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition password problem router slow software sound trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
javascript help


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
dbimen's Avatar
Senior Member with 118 posts.
 
Join Date: Jul 2006
14-Feb-2007, 08:59 PM #1
javascript help
I am having trouble with a javascript menu dropdown that I got off the internet. I've altered it a little to fit my needs but I would like to do something that after taking many javascript classes, I can't figure out how.

I want to make the drop down menu item's font color green by default, and then on mouseover have the font turn YELLOW and the backgroun turn GREEN.

I've attached the code that I am developing the menu bars on.

Please help.
Attached Files
File Type: txt code.txt (9.6 KB, 60 views)
MMJ's Avatar
MMJ MMJ is offline
Distinguished Member with 3,248 posts.
 
Join Date: Oct 2006
14-Feb-2007, 11:23 PM #2
I am not very good at js but why can't you just use fontcolor(green), onmouseover="fontcolor(yellow)" and onmouseover="bgcolor(green)"

http://www.w3schools.com/jsref/jsref_fontcolor.asp
http://www.w3schools.com/myfirst/js07.asp

not sure if bgcolor is the right element in js

Last edited by MMJ : 14-Feb-2007 11:32 PM.
MMJ's Avatar
MMJ MMJ is offline
Distinguished Member with 3,248 posts.
 
Join Date: Oct 2006
14-Feb-2007, 11:33 PM #3
I assume you are designing that site from the ground up...

If so than I would use float instead of the tables as they are usually harder to work with.

Also you can make drop down menues with css let me find out how...
dbimen's Avatar
Senior Member with 118 posts.
 
Join Date: Jul 2006
15-Feb-2007, 12:07 AM #4
That doesnt work.... I tried it. These are javascript menus with arrays for each menu's values.
dbimen's Avatar
Senior Member with 118 posts.
 
Join Date: Jul 2006
15-Feb-2007, 12:08 AM #5
Quote:
Originally Posted by MMJ
I assume you are designing that site from the ground up...

If so than I would use float instead of the tables as they are usually harder to work with.

Also you can make drop down menues with css let me find out how...

I would like to do it the way that i have it.... I want to do it with javascript. I've already got the site designed.... any idea on the javascript?
MMJ's Avatar
MMJ MMJ is offline
Distinguished Member with 3,248 posts.
 
Join Date: Oct 2006
15-Feb-2007, 12:11 AM #6
can you give me the code you tried
dbimen's Avatar
Senior Member with 118 posts.
 
Join Date: Jul 2006
15-Feb-2007, 12:14 AM #7
my code is posted here already.... i tried to insert: fontcolor(green) onmouseover="fontcolor(yellow)" onmouseover="bgcolor(green)" and it didnt work.... can you look at my code and see where it would work?
MMJ's Avatar
MMJ MMJ is offline
Distinguished Member with 3,248 posts.
 
Join Date: Oct 2006
15-Feb-2007, 12:19 AM #8
of course that wouldn't work, I told you I don't think that was the right element for bg color...

wait i'll take another look...
dbimen's Avatar
Senior Member with 118 posts.
 
Join Date: Jul 2006
16-Feb-2007, 11:06 PM #9
have you had any luck? I've been messing with this for a while now. Do you know any advanced java programmers that could help me solve this?
dbimen's Avatar
Senior Member with 118 posts.
 
Join Date: Jul 2006
16-Feb-2007, 11:23 PM #10
can we move this thread to development? I need a javascript programmer to help.
Gibbs's Avatar
Senior Member with 638 posts.
 
Join Date: Feb 2005
Location: England
Experience: Intermediate
17-Feb-2007, 05:42 AM #11
I have replied to this question over here > http://forums.techguy.org/developmen...menu-help.html

Javascript isn't a programming language, it's a script language. This IS the right section
MMJ's Avatar
MMJ MMJ is offline
Distinguished Member with 3,248 posts.
 
Join Date: Oct 2006
17-Feb-2007, 09:57 AM #12
Quote:
Originally Posted by Gibbs
Javascript isn't a programming language, it's a script language. This IS the right section
I agree that this is the right section as it IS web dev and nothing else but under the dev forum it says For Javascript...

as for your fix, how about changing the back ground?

Gibbs's Avatar
Senior Member with 638 posts.
 
Join Date: Feb 2005
Location: England
Experience: Intermediate
17-Feb-2007, 10:20 AM #13
Quote:
Originally Posted by MMJ
I agree that this is the right section as it IS web dev and nothing else but under the dev forum it says For Javascript...
Oh yeah never noticed that... Nevertheless this is till the right forum

Quote:
Originally Posted by MMJ
as for your fix, how about changing the back ground?

The background colour goes green for me on both Internet Explorer and Firefox. Changing it can be done here:
HTML Code:
#dropmenudiv a:hover{ /*hover background color*/

background-color: green;

}
MMJ's Avatar
MMJ MMJ is offline
Distinguished Member with 3,248 posts.
 
Join Date: Oct 2006
17-Feb-2007, 12:22 PM #14
Quote:
Originally Posted by Gibbs
Oh yeah never noticed that... Nevertheless this is till the right forum
Yeah as I said.

Quote:
Originally Posted by Gibbs
The background colour goes green for me on both Internet Explorer and Firefox. Changing it can be done here:
HTML Code:
#dropmenudiv a:hover{ /*hover background color*/

background-color: green;

}
Never thought of that, you're pretty good.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:04 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.