问一个关于快速输入的问题——<title></title> 输入完title标签后如何快速回到标签中间填写内容?
2016-04-11
延迟切换在有些细节还是有用的,如果你在页签上横向快速滑动过去,那每个页签和对应要展示的页面都会快速闪烁展示,如果只是用户不小心动了鼠标引起的,那会让用户体验不怎么好的。
2016-03-31
list[otherindex].className = 'on';
pic.style.top =otherindex*-170+"px";
index=otherindex;
}
}
pic.style.top =otherindex*-170+"px";
index=otherindex;
}
}
2016-03-23
wrap.onmouseout = function () {
timer = setInterval (js,2000)
}
function changeOption (otherindex){
for (var j=0;j<list.length;j++)
{list[j].className = "";}
timer = setInterval (js,2000)
}
function changeOption (otherindex){
for (var j=0;j<list.length;j++)
{list[j].className = "";}
2016-03-23
wrap.onmouseover = function () {
clearInterval (timer);
for (var i=0;i<list.length;i++) {
list[i].id=i;
list[i].onmouseover = function(){
changeOption(this.id);
}
}
}
clearInterval (timer);
for (var i=0;i<list.length;i++) {
list[i].id=i;
list[i].onmouseover = function(){
changeOption(this.id);
}
}
}
2016-03-23
研究了半天,自己发
timer = setInterval (js,2000);
function js() {
index++;
if(index>=list.length){
index=0;
}
changeOption(index);
}
timer = setInterval (js,2000);
function js() {
index++;
if(index>=list.length){
index=0;
}
changeOption(index);
}
2016-03-23