亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

JavaScript改變Div樣式-chageDivstyle

Original 2019-07-26 15:55:11 269
abstract:<!DOCTYPE html><html><head><meta charset="UTF-8"><title>chageDivstyle</title><style>*{margin:0px;padding:0px;}.box{width:366px;height:400px;margin:2

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>chageDivstyle</title>

<style>

*{margin:0px;padding:0px;}

.box{width:366px;height:400px;margin:220px 120px;float:left;border:0px;}

/*.main{width:100%;height:1080px;margin:0px auto;background:url(images/主菜單背景.png);}*/

.main{width:100%;height:1080px;margin:0px auto;background-color:#000915;}

</style>

</head>

<body>

<div>

<div id="study"><input type="image" id="ima1" src="images/學(xué)習(xí)模式(正常).png" onclick=" myfovus1(this)" onmouseover="myfovus2(this)"  onmouseout="myfovus7(this)"></div>

<div id="train"><input type="image" id="ima2"  src="images/訓(xùn)練模式(正常).png" onclick=" myfovus3(this)"  onmouseover="myfovus4(this)"  onmouseout="myfovus8(this)"></div>

<div id="examine"><input type="image" id="ima3"  src="images/考核模式(正常).png" onclick=" myfovus5(this)"  onmouseover="myfovus6(this)"  onmouseout="myfovus9(this)"></div>

</div>


<script type="text/javascript">

function myfovus1(x){

document.getElementById("ima1").src="images/學(xué)習(xí)模式(劃過(guò)).png";

}

function myfovus2(y){

document.getElementById("ima1").src="images/學(xué)習(xí)模式(點(diǎn)擊).png";

}


function myfovus3(m){

document.getElementById("ima2").src="images/訓(xùn)練模式(劃過(guò)).png";

}

function myfovus4(n){

document.getElementById("ima2").src="images/訓(xùn)練模式(點(diǎn)擊).png";

}


function myfovus5(a){

document.getElementById("ima3").src="images/考核模式(劃過(guò)).png";

}

function myfovus6(b){

document.getElementById("ima3").src="images/考核模式(點(diǎn)擊).png";

}



function myfovus7(c){

document.getElementById("ima1").src="images/學(xué)習(xí)模式(正常).png";

}

function myfovus8(d){

document.getElementById("ima2").src="images/訓(xùn)練模式(正常).png";

}

function myfovus9(e){

document.getElementById("ima3").src="images/考核模式(正常).png";

}

</script>

</body>

</html>

效果圖如下:[object Object]

Correcting teacher:查無(wú)此人Correction time:2019-07-27 11:21:31
Teacher's summary:完成的不錯(cuò)。js是終生學(xué)習(xí)語(yǔ)言,功能非常強(qiáng)大。繼續(xù)加油

Release Notes

Popular Entries