Java script rollover text

Status
You're currently viewing only VVLLY's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

VVLLY

Smack-Fu Master, in training
98
<html>
<body>
<form name="form">
<input type="text" name="test" value="test" style="border:none;"></input>
</form>


Test
</body>
</html>

Is this something like this what you are looking for? There is probably a better way to do this, but it should work. You might also want to define css classes for your buttons and fields. So you can get rid of the plain white and gray ones. Changing the buttons and fields won't work in NS4.x though.
 

VVLLY

Smack-Fu Master, in training
98
Test

You put your description of the link in the onMouseOver part and what you want it to say when the mouse isn't over the link anymore, in your case it looks like it would be Description in the onMouseOut part. The default description goes in the input tag where it says value="YOUR DEFAULT DESCRIPTION GOES HERE" I don't know what you are using to make the page, but just make sure you've got the object names right. In my example I named the form "form" and the text box "test". You do this by having <tag name="NAME">. So if you change the names it would be onMouseOver/Out="document.FORM NAME.TEXT BOX NAME.value='TEXT GOES HERE';" . Sorry, I'm not sure how clear that is. Maybe someone else can explain this better.

BTW you can add this to the textbox tag to make it look similar yo what you have now.

style="border:none; color: white; background-color: black; text-align: center; width:200px;"
 
Status
You're currently viewing only VVLLY's posts. Click here to go back to viewing the entire thread.
Not open for further replies.