function openWindow(){
var message= confirm("是否打開窗口?");
if(message==true)
{
var UrlAd= prompt("地址","http://www.xianlaiwan.cn")
if(prompt!=null){
window.open(UrlAd,'_blank','width=400px,height=500px,menubar=no,toolbar=no')
}
}
}
var message= confirm("是否打開窗口?");
if(message==true)
{
var UrlAd= prompt("地址","http://www.xianlaiwan.cn")
if(prompt!=null){
window.open(UrlAd,'_blank','width=400px,height=500px,menubar=no,toolbar=no')
}
}
}
建議童鞋們在別的地方寫好mywin.close();后粘貼過來。。。
慕課的這個是即時運行的,你停一下自己就蹦窗口。。。神煩。。。
慕課的這個是即時運行的,你停一下自己就蹦窗口。。。神煩。。。
2015-05-05
//改變顏色
function color(){
con.style.color="red"
}
//改變寬高
function wh(){
txt.style.width="300px";
txt.style.height="300px";
}
//影藏內容
function display(){
txt.style.display="none";
}
//顯示內容
function show(){
txt.style.display="block";
}
function color(){
con.style.color="red"
}
//改變寬高
function wh(){
txt.style.width="300px";
txt.style.height="300px";
}
//影藏內容
function display(){
txt.style.display="none";
}
//顯示內容
function show(){
txt.style.display="block";
}
var mychar= document.getElementById("p id="con");
獲取id為con的p標簽
獲取id為con的p標簽
2015-05-04