Author |
Message |
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 23/01/2006 10:48:47
|
dexter_evil
Beginner
![[Avatar]](/forum/images/avatar/175175520946b89320860df.jpg)
Joined: 17/11/2005 17:59:38
Messages: 15
Location: Poland
Offline
|
Does anybody know, how to make underline when mouse is over??
I made something like that, but it hasn't worked...
- <SCRIPT>
- <!--
- ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
- function over()
- { if (ie4) {
- event.srcElement.style.cursor="hand";
- event.srcElement.textDecoration="underline"; } }
- function out(){
- if (ie4)
- { event.srcElement.style.cursor = "auto";
- event.srcElement.textDecoration="none";
- } }
- function rozwijanie( object )
- { if (ie4) {
- roller= document.all(object);
- if (roller.style.display == "none")
- { roller.style.display = ""; }
- else
- { roller.style.display = "none"; } }}
-
- </SCRIPT>
I've heard about function ondecoration but I don't know how to put that in code...
|
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 23/01/2006 11:42:16
|
Carbonize
Master
![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg)
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
If we are taslking about for links then it is just CSS.
a { text-decoration: none; }
a:hover { text-decoration: underline; }
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 23/01/2006 11:54:57
|
dexter_evil
Beginner
![[Avatar]](/forum/images/avatar/175175520946b89320860df.jpg)
Joined: 17/11/2005 17:59:38
Messages: 15
Location: Poland
Offline
|
No it isn't link, so it's impossible to do that by CSS. I have to make it on js. I know that is possible, but I can't find information about it anywhere...
|
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 23/01/2006 16:45:30
|
Carbonize
Master
![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg)
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Hmm I see what you mean.
onMouseOver="this.style.text-decoration='underline'"
doesn't do anything.
Ah it's worded differently
onMouseOver="this.style.textDecoration='underline'" onMouseOut="this.style.textDecoration='none'"
that works. Google is your friend
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
|