dynamic changes in Netscape

by "Keith Parker" <diades(at)diades.screaming.net>

 Date:  Sun, 11 Jun 2000 11:25:27 +0100
 To:  "hwg Languages" <hwg-languages(at)hwg.org>
  todo: View Thread, Original
Hi,

I am trying to work out how to dynamically change the border-style for a div
in Netscape 4+ versions.  This is for a mouse action.  I can get the
document to acknowledge that the border style has ben changed via an alert()
but it doesn't physically show it. Can any one help?

This is what I have:

<style etc>
div.btn{width:150px;height:20px;border-width:2px;border-style:solid;border-c
olor:royalblue;cursor:hand}
a:link.btnanch{color:aliceblue;font-family:verdana;font-size:8pt;font-weight
:bold;text-decoration:none}
</style>

<table width="150px">
<tr>
<td width="150px">
<div id="b0" class="btn">
<center>
<a href="#" class="btnanch"
onmouseover="document.ids.b0.borderStyle='outset';document.ids.b0.borderColo
r='lightblue'"
onmouseout="document.ids.b0.borderStyle='solid';document.ids.b0.borderColor=
'royalblue'">Link 0</a></center></div></td></tr></table>

If an alert() is used to discover the BorderStyle when the event is
activated, it states that a change has taken place however it does not
actually carry out that change.

Thanks,

Keith

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA