var mychar= document.getElementById("con");
mychar.style.color="red";
mychar.style.backgroundColor="#ccc";
mychar.style.width="300px";
mychar.style.color="red";
mychar.style.backgroundColor="#ccc";
mychar.style.width="300px";
2015-07-23
@believeWJX , else if(score>=75)
{
document.write("不错吆!");
}
在>=90的条件下,if else 就是小于90并且大于等于75,输出不错呦
{
document.write("不错吆!");
}
在>=90的条件下,if else 就是小于90并且大于等于75,输出不错呦
2015-07-23
已采纳回答 / qq_落椛藏LU_0
if(hanb!=null){ window.open('hanb','_blank','width=400,height=500,menubar=no,toolbar=no') }这里改为 if(hanb!=null){ window.open(hanb,'_blank','width=400,height=500,menubar=no,toolbar=no') }打开的URL不用单引号‘’
2015-07-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("基佬滚远点!");
}
2015-07-22
function mystr()
{
var mychar=confirm("是否打开");
var as=prompt("请输入网址","http://www.imooc.com/");
if(as==trun)
window.open('http://www.imooc.com/','_blank','width=300,height=200,menubar=no,toolbar=no, status=no,scrollbars=yes')
}
{
var mychar=confirm("是否打开");
var as=prompt("请输入网址","http://www.imooc.com/");
if(as==trun)
window.open('http://www.imooc.com/','_blank','width=300,height=200,menubar=no,toolbar=no, status=no,scrollbars=yes')
}