You can refer to the previous version of http://www.jb51.net/article/33555.htm, which is a little bad, that is, if you want to change the style, you may have to replace it with search.
Therefore, Insus. NET writes another method for implementation, which can be changed to an application.
First, write a Style:
Copy codeThe Code is as follows:
<Style type = "text/css">
. OverStyle
{
Border-color: # 3599ff;
}
. OutStyle
{
Border-color: # fff;
}
</Style>
Javascript should also be changed:
Copy codeThe Code is as follows:
<Script type = "text/javascript">
Function onOver (Id ){
Id. className = 'overstyle ';
}
Function onOut (Id ){
Id. className = 'outstyle ';
}
</Script>
Finally, it is a dynamic html application.
Copy codeThe Code is as follows:
<Fieldset id = "fs1" style = "margin: 10px; padding: 10px; width: 170px; text-align: center ;"
Onmouseover = "onOver (this)" onmouseout = "onOut (this)">
ERP <a href = "http://xxx.xxx.com/erp" target = "_ blank"> http://xxx.xxx.com/erp </a>
</Fieldset>