Mouseover display of information

G

Guest

I have regular old buttons

<INPUT ID="Button1" type="button" value="Hello" onClick="opn('var1', 'var2', 'var3')" name="B3183" style="width: 110; height:22"

When the user mouses over the button I want a little yellow box with information on it to appear. Sounds so simple
I see people do it all over the place. even here, when you mouse over the + sign of a thread "Expand/Collapse Thread" appears. But that appears to only be ascociated with pictures, not buttons

Can it be done with buttons that are not images?
 
C

chris leeds

I "think" you could use a title attribute:
<INPUT ID="Button1" type="button" value="Hello" title="click this and you'll
ruin your computer" onClick="opn('var1', 'var2', 'var3')" name="B3183"
style="width: 110; height:22">
--
The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
--


Mjohnson said:
I have regular old buttons:

<INPUT ID="Button1" type="button" value="Hello" onClick="opn('var1',
'var2', 'var3')" name="B3183" style="width: 110; height:22">
When the user mouses over the button I want a little yellow box with
information on it to appear. Sounds so simple.
I see people do it all over the place. even here, when you mouse over the
+ sign of a thread "Expand/Collapse Thread" appears. But that appears to
only be ascociated with pictures, not buttons.
 
S

Steve Easton

Add a title tag like this.

<INPUT ID="Button1" type="button" value="Hello" onClick="opn('var1', 'var2',
'var3')" name="B3183" style="width: 110; height:22" Title="this is the title">

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer

Mjohnson said:
I have regular old buttons:

<INPUT ID="Button1" type="button" value="Hello" onClick="opn('var1', 'var2',
'var3')" name="B3183" style="width: 110; height:22">
When the user mouses over the button I want a little yellow box with
information on it to appear. Sounds so simple.
I see people do it all over the place. even here, when you mouse over the +
sign of a thread "Expand/Collapse Thread" appears. But that appears to only be
ascociated with pictures, not buttons.
 
G

Guest

Never mind, I got it

document.getElementById("button1").title=Var3

Thanks Again

Mike
 
S

Steve Easton

Try adding
document.all.Button1.title.innerHTML = "File There";
and
document.all.Button1.title.innerHTML = "File Not There";

to the function.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
Mjohnson said:
GREAT!!! It works, I just did not know the right word.

So now my bigger problem is getting Javascript to control what goins into the "title".

I am using javascript.

Just for exaple of things I am doing:
Right now, using javascript, I check to see if the file that the button is
opening exists. If the file exists, then the button is green, if the file does
not exist then the button is red.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top