点击logo图片,弹出窗口
-----------------------js文件----------------------------
window.onload=function(){
var logo=document.getElementsByClassName("logo").getElementsByTagName("img");
function animate(){
alert("11");
}
logo.onclick=function(){
animate();
}
}
--------------------------------html引用语句--------------------------------------------
<script src="js/sony.js"></script>
---------------------------------html程序段------------------------------------------------
<div class="logo">
<img src="img/sonylogo.jpg">
</div>
newsudhc3634140
ahao430
速写素
随时随地看视频慕课网APP