changing css class when onmouseover (mark)

來源:互聯網
上載者:User

 

CSS:

 

Code
<style type="text/css">
BODY{   font-family: verdana, arial, helvetica, sans-serif;
        font-size: 10pt;
        font-weight: bold;
        background-color:#CECECE;
        color:#000000;;
        margin-top: 0pt;
        margin-bottom: 0pt;
        margin-right: 0pt;
        margin-left: 0pt;}

.top{   font-family: verdana, arial, helvetica, sans-serif;
        font-size: 20pt;
        font-weight: bold;
        background:#EEEEEE;
        border: 1px dashed #000000;
        height: 5%;
        width: 100%;}

.top2{   font-family: verdana, arial, helvetica, sans-serif;
        font-size: 20pt;
        font-weight: bold;
        background:#FFFFFF;
        border: 1px solidd #000000;
        height: 5%;
        width: 100%;}
</style>

 

HTML:

Code
<div class="top" onmouseover="this.className='top1'" onmouseout="this.className='top'">Here</div>

 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.