cms模板缓慢变色的按钮特效
2014-10-14来源:易贤网

<script language=javascript>

<!-- begin

hexcolor = [0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f];

function mover() {

for (i = 0; i < 13; i++) {

settimeout('document.myform.button.style.background =

#'+hexcolor[12-i]+'0'+hexcolor[12-i]+'000;', i * 40);

}

}

function mout() {

document.myform.button.value = javascript fairyland;

for (i = 0; i < 12; i++) {

settimeout('document.myform.button.style.background = #'+hexcolor[i]+'f'+hexcolor[i]+'000;', i

* 40);

}

}

// end -->

</script>

<form name=myform>

<div align=center>

<input type=button name=button value=come on! onmouseover='mover()''

onmousedown='document.myform.button.value= 呵呵 '

onclick='window.location=http://www.wangqi.com' onmouseout='mout()'>

</div>

</form>

更多信息请查看IT技术专栏

推荐信息