how do i make text bold on mouse over?![]()
how do i make text bold on mouse over?![]()
Hi. Using Frontpage... you can right click on the page and select "Page properties".
- from there, go to "background tab"
- highlight "Enable hyperlink rollover effects"
- pick a style... "Rollover styles"
- Choose your style.
- select the colors you want to use for your rollover
Hope this helps.
Master_Elf
Err... No. That's not good. FrontPage tends to use functions that are already embedded functions in JavaScript.
Example:
For a mouseover frontpage might have:
which in reality could be a simple event handler.Code:function MouseOver() {...
So. If you want to make text bold onmouseover, use event handlers.
Example:
Code:<p onmouseover="style.fontWeight = 'bold'" onmouseout="style.fontWeight = 'normal'">This is some text</p>
- Mike
It should be noted, however, that this is rarely a good idea, since it will make your text move.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Yes. Bolding isn't an efficient hover idea. Don't try changing the font size either, it'll make it look messy on different browsers (not necessarily browsers, as much as it is the user's browser settings).
- Mike
what about strikethrough, underlined, and italisized?
Underlining is fine. Italics are probably OK. I'd guess that strikethrough has no effect on the text width, but I can't be sure because I've never tried it (since it may make the text unreadable to some people, I don't consider it a very good idea).
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Changing the background color is a good way to do hovers too.
- Mike
i mean i want to strikethrough, underlined, and italisized but how?
Here's strike-through:
Underline:Code:<span onmouseover="style.textDecoration = 'line-through'" onmouseout="style.textDecoration = 'none'">test</span>
Italisized:Code:<span onmouseover="style.textDecoration = 'underline'" onmouseout="style.textDecoration = 'none'">test</span>
Code:<span onmouseover="style.fontStyle = 'italic'" onmouseout="style.fontStyle = 'none'">test</span>
- Mike
Bookmarks