欢迎访问百度网提供织梦免费模板!
预估游客人数: 1000人 1233人 1234人
您当前的位置:主页 > 景区资讯 >
var list = document.getElementById("list"); var divs = list.getElementsByTagName("div"); var t; for (var i = 0; i < divs.length; i++) { divs[i].onmouseover = function (e) { var tip = document.createElement("div"); var img = this.getElementsByTagName("img"); tip.innerHTML = img[0].getAttribute("alt"); var event = event||window.event; tip.setAttribute("class", "tip"); tip.setAttribute("className", "tip"); tip.style.left = "-100px"; this.appendChild(tip); t = setInterval(function(){showtip(tip);},10); } divs[i].onmouseout = function (e) { clearInterval(t); var tip = this.lastChild; if (tip.tagName == "DIV"){ this.removeChild(tip); } } } function showtip(obj) { var left = gs(obj, "left"); var value = left+10; if (value <= 0){ obj.style.left = value+"px"; } else clearInterval(t); } function gs(obj, a){ if (obj.currentStyle){ var curVal=obj.currentStyle[a] } else{ var curVal=document.defaultView.getComputedStyle(obj, null)[a] } return parseInt(curVal); }
景区介绍 | 景点简介 | 景区资讯 | 立即博v1bet | 人才招聘 | 商务合作 | 联系我们 |

版权所有:立即博在线官方 CopyRight(C) 2014 East All Right Reserved. Power by DeDe58

技术支持:织梦58 备案号:粤ICP备32654589号

咨询:0577-66889888
预订:0571-66889777
投诉:400-8888-886