1. 程式人生 > >按鈕背景圖片更換

按鈕背景圖片更換

<script language="javascript">

<!--

 

function mouseOver()

    {  

document.getElementById("LoginBtn").style.backgroundImage = "url(images/LoginOKed.png)"

    }   

    function mouseOut(){

document.getElementById("LoginBtn"

).style.backgroundImage = "url(images/LoginCa.PNG)"              

     }

 //-->

</script>

 

<input name="LoginBtn" type="submit" class="LoginBtn" id="LoginBtn"

 tabindex="3" onClick="btnLogin_Click()"  onmouseover="mouseOver()" onmouseout="mouseOut()" value="" />