function rec(){
var score;
score = prompt("what the fuck!!!");
if(score>=90)
{
document.write("你很棒!");
}
else if(score>=75)
{
document.write("不错吆!");
}
else if(score>=60)
{
document.write("要加油!");
}
else
{
document.write("要努力了!");
}
}
var score;
score = prompt("what the fuck!!!");
if(score>=90)
{
document.write("你很棒!");
}
else if(score>=75)
{
document.write("不错吆!");
}
else if(score>=60)
{
document.write("要加油!");
}
else
{
document.write("要努力了!");
}
}
2016-06-22
function rec(){
var score;
score =prompt("告诉我你的月工资");
if(score>=30000)
{
document.write("娶我可好?");
}
else if(score>=20000)
{
document.write("我娶你可好?");
}
else if(score>=10000)
{
document.write("做我男朋友吧!");
}
else
{
document.write("娶我,谁叫你长得帅呢!");
}
}
var score;
score =prompt("告诉我你的月工资");
if(score>=30000)
{
document.write("娶我可好?");
}
else if(score>=20000)
{
document.write("我娶你可好?");
}
else if(score>=10000)
{
document.write("做我男朋友吧!");
}
else
{
document.write("娶我,谁叫你长得帅呢!");
}
}
2016-06-22
function rec(){
var mymessage=confirm("你每月会固定时间痛一次吗?")
if(mymessage==true)
{
document.write("你是女士!");
}
else
{
document.write("你是男士!");
}
}
var mymessage=confirm("你每月会固定时间痛一次吗?")
if(mymessage==true)
{
document.write("你是女士!");
}
else
{
document.write("你是男士!");
}
}
2016-06-22
已采纳回答 / qq_蝶雨相思_0
window.open("my_url","_blank","height=400px,width=400px,location=no,tollbar=no,menubar=no")} }
2016-06-22
已采纳回答 / 恋雪3488820
自定义函数是不能自己执行,需要加括号才能自执行,这个题目里面你要在<input type="button" value="改变颜色" > 里面加一个onclick="changeColor()";<input type="button" value="改变颜色" onclick="changeColor()" >
2016-06-22
已采纳回答 / ass0
经测试,代码无问题,不出现跳转的原因可能是浏览器限制了弹框;chrome下,设置->高级设置->内容设置->弹出式窗口。另外,你的代码中没有提示框的代码,估计贴错了代码。<!DOCTYPE html><html> <head> <meta charset="utf-8"/> <title> new document </title> <meta http-equiv="Content-Type" co...
2016-06-21