if(text=="")
{
Lists[i].setAttribute("title", "Web");
document.write(Lists[i].getAttribute("title")+"<br>");
}
{
Lists[i].setAttribute("title", "Web");
document.write(Lists[i].getAttribute("title")+"<br>");
}
2015-01-09
var a=30;
switch(变量a)
{
case n:(变量满足的条件)
break;
default:(前面变量都不符合的情况下)
}
switch(变量a)
{
case n:(变量满足的条件)
break;
default:(前面变量都不符合的情况下)
}
2015-01-08
@文盲 明显有区别,我的浏览器是 1366×768 使用 screen.availHeight得出的结果是728
明显是 有40像素被 WIN7下面的任务栏占用了。
明显是 有40像素被 WIN7下面的任务栏占用了。
2015-01-08
(u_agent.indexOf("Firefox")>-1 indexOf返回的某个字符串的值在字符串首次出现的位置 >-1干什么的?
2015-01-08
<script type="text/javascript">
var attime;
function clock(){
var time=new Date();
attime=time.getHours()+":"+time.getMinutes()+":"+time.getSeconds() ;
document.getElementById("clock").value = attime;
}
setInterval(clock);
var attime;
function clock(){
var time=new Date();
attime=time.getHours()+":"+time.getMinutes()+":"+time.getSeconds() ;
document.getElementById("clock").value = attime;
}
setInterval(clock);
2015-01-08
最赞回答 / 康振宁
window.function(){没有这个写法,正确写法是window.onload=function(){}解释一下,第一句是将oDivs索引位置为this.index的元素的class样式置空第二句话是将oLis中的第i个元素的索引设置为i
2015-01-08