Java script rollover text

Status
Not open for further replies.
I'm kinda of a newbie at java and css so don't laugh at my site but heres alink
You can see on the left, when you open the menus, there is a description above. I used rollovers to display different gifs at the top, could I use css to display text up there instead of gifs?
Also, I manage to kill the stupid popup, then they moved the script to the top of my page, and I'm not sure how to get rid of it there.
Any suggestions on that?
 

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.
 
Plasdom
Border=0 is a nice touch, I changed it and it looks a lot nicer. The rollovers are on the left in the links section, when you go over a link it displays a description, it isn't really necessary but I was just playing.

Silent Fade
I kinda like the table, it seems quicker than selcting the option and then searching, plus I don't have anything else useful to fill the page.

Wlly
Where do I input the text that should me displayed when I mouseover a link?

Thanks to everyone for the help
 

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
Not open for further replies.