javascript效果实现

来源:百度知道 编辑:UC知道 时间:2024/05/10 06:40:17
在这个页面上http://cn.yahoo.com/
当鼠标发在邮箱或者建站或者股票等那6个上面的效果怎么实现的,
回答正确的有高分

<!--直接拷贝就能用了,把超链接改成图片就可以了-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<script>
function chgW(str){
document.getElementById("bo").style.display = "";
document.getElementById("bo1").style.display = "none";
var u = "http://www.sina.com.cn";
if(str == "1"){
u = "http://www.sina.com.cn";
}
if(str == "2"){
u = "http://www.sohu.com";
}
if(str == "3"){
u = "http://www.163.com