首 页健康生活新 闻留 言骗 子美女图片网络安全论 坛问吧注册码大全bt资源
张筱雨人体艺术   汤芳人体艺术  汤加丽人体艺术  石靖人体艺术   刘亦菲人体艺术   汤唯人体艺术  张柏芝人体艺术   人体艺术摄影
人体艺术摄影        BODY ART PHOTOGRAPHY
                                           Human essence of art, the human feelings of the perfect lens
首页
您当前的位置:地球村问吧电脑技术编程语言 → 问吧内容 设为首页   加入收藏   联系我们
看看这段网页代码!(javascript)
作者:meilibao  来源:地球村  发布时间:2007-8-20 9:59:17
Body art from the West, male body is mainly a reflection of the strength of the United States. While the female body is mainly a reflection of the kind of a female-specific negative of tender.
Body art is static human form, does not contain sexual intercourse is exposed genitals or other to tease of limb movements. Good photographs focus on the human body is the use of light and shadow. The body was naked from the arts, the human body art is not carnal desire , vulgar. Accurately speaking, and now, the "body art" is not very precise. Art classification is based on the auditory,
看看这段网页代码!(javascript)
悬赏分:5 - 解决时间:2007-8-18 06:39
if(name_main.length==0)
{
alert("输入有错误!用户名不能为空!");
}
else if(password_main.length<6)
{
alert("输入有错误!您输入的密码不能小于6位!");
}
else if(password_main.indexOf("*",0)==0)
{
alert("输入有错误!您输入的密码不能包含*!");
}
else if(password_main.indexOf("''",0)==0)
{
alert("输入有错误!您输入的密码不能包含''!");
}
else if(password_main2!=password_main)
{
alert("输入有错误!您输入的用户名不相等!");
}
else if(question_main.length==0)
{
alert("输入有错误!您输入的密码问题为空!");
}
else if(result_main.length==0)
{
alert("输入有错误!您输入的密码答案为空!");
}
else if(email_main.indexOf("@",0)==-1)
{
alert("输入有错误!您输入的邮箱地址必须包括@!");
}
else if(email_main.indexOf(".",0)==-1)
{
alert("输入有错误!您输入的邮箱地址必须包括.!");
}
else if(document.form1.sex[0].checked==1)
{
sex="男";
}
else if(document.form1.sex[1].checked==1)
{
sex="女";
}
else
{
document.write("<h1>恭喜您!您注册成功!一下是您的注册信息:</h1><br>用户名:"+name_main+"<br>"+"密码:"+password_main+"<br>"+"性别:"+sex+"<br>"+"密码问题:"+question_main+"<br>"+"密码答案:"+result_main+"<br>"+"email:"+email_main+"<br>");
}
----------------------------------------------------------------
为什么运行后
else
{
document.write("<h1>恭喜您!您注册成功!一下是您的注册信息:</h1><br>用户名:"+name_main+"<br>"+"密码:"+password_main+"<br>"+"性别:"+sex+"<br>"+"密码问题:"+question_main+"<br>"+"密码答案:"+result_main+"<br>"+"email:"+email_main+"<br>");
}这段显示不出来??????
是语法错误?
提问者:youtiantuo - 助理 二级
最佳答案
不允许这样写,
你可以在页面上加个<Div ID="cs"></DIV>,判断内容如下:

else
{
cs.innerHTML = "你要显示的内容";
}
或者直接
else
{
alert("你要显示的内容");
}
回答者:mantye - 试用期 一级 8-6 19:26
您觉得最佳答案好不好?目前有 0 个人评价

50% (0)

50% (0)
[ ] [返回上一页] [打 印]
Copyright © 2007 Diqiuc.Com. All Rights Reserved .豫ICP备07001840 Powered by Diqiuc.Com