33行: p1.className="one";
37行: p2.className="two";
就这么简单
37行: p2.className="two";
就这么简单
2016-07-02
var cher=document.getElementById("txt");function out1() { cher.style.color="red";} function out2(){cher.style.height="200";cher.style.width="300"; }
var mymessage=confirm("打开?");
if(mymessage==true)
{
var myname=prompt("输入你要的网站:");
if(myname!=null)
{window.open(myname,'_blank','width=400,height=500,menubar=no,toolbar=no')}
else{ alert("重新输入"); }
}
else {document.write("不打开");}
虽然麻烦点,不过前面知识点都有了。
if(mymessage==true)
{
var myname=prompt("输入你要的网站:");
if(myname!=null)
{window.open(myname,'_blank','width=400,height=500,menubar=no,toolbar=no')}
else{ alert("重新输入"); }
}
else {document.write("不打开");}
虽然麻烦点,不过前面知识点都有了。
最赞回答 / 慕工程8714263
document.write("<font color='blue'>hello</font>")document.write("<a style='color:blue'>hello</a>")
2016-07-01
已采纳回答 / 慕莱坞6095675
function openWindow(){ var open=confirm("是否打开新窗口?" );// 新窗口打开时弹出确认框,是否打开 if(open==true) {var win=prompt(" 通过输入对话框,确定打开的网址","http://www.imooc.com");//逗号都要在英文输入法状态下输入 if(win!=null) {window.open("http://www.imooc.com","_blank","width=400,heigh...
2016-07-01
我发现这么一回事,点击验证代码后发现,说我错了,看了下发现document.write('hello');单引号虽然能实现效果,但是验证过不去,必须双引号
2016-07-01