Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setting style sheet property with JS

0 views
Skip to first unread message

Svetlin Dimitrov

unread,
Oct 24, 2001, 5:11:57 AM10/24/01
to
Hi
I'm trying to change a propety of style sheet onMouseOver-ing the link. This
works for IE but for Netscape 4.7 not.
This is the code:
<SCRIPT LANGUAGE="JavaScript">
function changeStyleSheet(){
if(document.all){
divN = eval('document.all.Zimi.style');
divN.color = '#FF0000';
}else{
document.ids.Zimi.color = '#FF0000';
}
}
</SCRIPT>
<A HREF="E_FES_MB.asp" onMouseOver="changeStyleSheet()">
<DIV ID="Zimi" Style="font-family: Arial; font-weight: bold; font-size:
12pt; color: #ffffff; text-decoration: none;">some text</DIV></A>
Thanks

Vidar Petursson

unread,
Oct 24, 2001, 7:38:50 AM10/24/01
to
Hi

NN 4.x is not very good a css...I would forget trying it if I where you
and go for the newer ones only unless you want to go for the layer thingy in NN
which is not worth the effort ( IMHO )


if( document.getElementById("bla") ) document.getElementById("bla").style......

More info
http://msdn.microsoft.com/workshop/
http://www.w3.org/

--
--
Best Regards
Vidar Petursson
==================================
Microsoft Internet Client and Controls MVP
==================================
http://www.icysoft.com
http://www.dna.is
The...@icysoft.com
vi...@dna.is
icy...@vortex.is
==================================
No matter where you go there you are
==================================

"Svetlin Dimitrov" <sve...@rambler.bg> wrote in message news:OB41POGXBHA.1848@tkmsftngp03...

TJS

unread,
Oct 24, 2001, 7:35:05 PM10/24/01
to
look here

http://wsabstract.com/dhtmltutors/nsevents4.shtml

"Svetlin Dimitrov" <sve...@rambler.bg> wrote in message
news:OB41POGXBHA.1848@tkmsftngp03...

0 new messages