html问题 求解各代码含义

<scripttype="text/javascript">window.onload=init;functioninit(){varnewLi=document.get... <script type="text/javascript">
window.onload=init;
function init(){
var newLi=document.getElementsByName("level1");
for(var i=0;i<newLi.length;i++){
newLi[i].onmouseover=function(){
this.style.backgroundColor="green";
}
newLi[i].onmouseout=function(){
this.style.backgroundColor="";
}
}
newLiInner=document.getElementsByName("level2");
for(var i=0;i<newLiInner.length;i++){
newLi[i].onmouseover=function(){
this.style.backgroundColor="green";
}
newLi[i].onmouseout=function(){
this.style.backgroundColor="";
}
}

var product=document.getElementById("productInfoLi");

var productInFo=document.getElementById("productInfo");
var setIntervalMoveUl;
var moveNum;
product.onmouseover=function(){
productInfo.style.display="inline";
this.style.backgroundColor="green";
}

product.onmouseout=function(){
document.getElementById("productInfo").style.display="none";
this,style.backgroundColor="";
}}
</script>
展开
 我来答
鸟总Raynal
2013-12-19 · TA获得超过2144个赞
知道小有建树答主
回答量:1334
采纳率:40%
帮助的人:735万
展开全部
等window代码载入完毕后会执行init函数,基本就是个鼠标经过的简单效果。html应该很简单
Prince____Yu
2013-12-18 · TA获得超过3718个赞
知道小有建树答主
回答量:864
采纳率:33%
帮助的人:978万
展开全部
你可以附上你的html结构,然后我来帮你分析一下!
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
2530830225
2013-12-18 · TA获得超过280个赞
知道小有建树答主
回答量:128
采纳率:0%
帮助的人:94.3万
展开全部
你这是javascript,你要了解什么?
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(1)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式