Computing.Net > Forums > Programming > Web Page / Java Rollover Buttons

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Web Page / Java Rollover Buttons

Reply to Message Icon

Name: jef80000
Date: June 6, 2003 at 17:57:35 Pacific
OS: Windows Me
CPU/Ram: 733MHz /128 MB RAM
Comment:

I am making a web page but i am having problems with the rollover buttons i want to use. What i want to do is have five standard rollover buttons, but instead of just rolling over one image i want it to do two. E.G. i want to have a description image appear when the mose hovers over the home button, when there cursor is not hovering over any button i want to have a default image shown. How can I do this

Thanks for your help




Sponsored Link
Ads by Google

Response Number 1
Name: Don Arnett
Date: June 6, 2003 at 21:55:43 Pacific
Reply:

maybe it's just me, but I'm having trouble understanding what you want to do. First you mention five rollover buttons, then one rollover that "does two".

I suggest that you describe one button and what you want it to do.

Typically, there are four 'different' images that are defined for a button:

1 - the original image that is loaded when the page displays

2 - the image displayed when the mouse hovers over the button (set by onMouseOver)

3 - the image displayed when the button is clicked (I've never done this, but I suppose you could set a new image with onClick). I don't know that this is done.

4 - the image displayed when the mouse quits hovering over the image (set by onMouseOut)

Normally, the #4 image is the same as the #1 image, but (in theory) it doesn't have to be.

Also, normally, the (for example) #2 image is the same every time that you hover over the button, but although I've never done it, I'm sure that you could program it so that a different image appears each time you hover.

Maybe someone else will understand what you are trying to do, or if you can describe it differently, I might be able to help.


0

Response Number 2
Name: jef80000
Date: June 6, 2003 at 22:40:37 Pacific
Reply:

ok lets try it like this....
this is what i want to do:
Basically i want to have a description of each button appear when the mouse hovers over it. For example, say i have the hover button at the top of the page and a image shown at the bottom of the page. What i want to do is when the button at the top is hovered over i not only want the hover button image to change i want to change the image at the bottom as well. When the cursor is moved off the button at the top the image at the bottom will change back to the origional one.

I hope this is a little more clear, thanks for your input.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Web Page / Java Rollover Buttons

Web Page / java Rollover Buttons www.computing.net/answers/programming/web-page-java-rollover-buttons/6742.html

Charts on Web Page www.computing.net/answers/programming/charts-on-web-page/7426.html

Web Page Size.... www.computing.net/answers/programming/web-page-size/10550.html