function hidetext()
{
var mychar = document.getElementById("con");
mychar.style.display='none';
}
function showtext()
{
var mychar = document.getElementById("con");
mychar.style.display='block';
}
{
var mychar = document.getElementById("con");
mychar.style.display='none';
}
function showtext()
{
var mychar = document.getElementById("con");
mychar.style.display='block';
}
2016-05-23
function openWindow()
{
if(confirm("是否打開窗口?"))
{
var open_url=prompt("請輸入要打開的網站","http://www.xianlaiwan.cn/");
window.open(open_url,'_blank','width=400,height=500,menubar=no,toolbar=no,scrollbars=yes');
}
}
{
if(confirm("是否打開窗口?"))
{
var open_url=prompt("請輸入要打開的網站","http://www.xianlaiwan.cn/");
window.open(open_url,'_blank','width=400,height=500,menubar=no,toolbar=no,scrollbars=yes');
}
}
function openWindow()
{
var chuangkou=confirm("是否打開新窗口?");
if(chuangkou==true)
{ window.open('http://www.xianlaiwan.cn/','_blank','width=400,hight=500,menubar=no,starus=on');
}
// 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/
else
//打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。
{ }
}
{
var chuangkou=confirm("是否打開新窗口?");
if(chuangkou==true)
{ window.open('http://www.xianlaiwan.cn/','_blank','width=400,hight=500,menubar=no,starus=on');
}
// 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/
else
//打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。
{ }
}
window.open('http://www.xianlaiwan.cn','-blank','width=600,height=400,top=100,left=0')
2016-05-23
function openWindow(){
var ask=confirm("確定打開http://wwww.xianlaiwan.cn嗎?");
if(ask==true){
window.open('http://wwww.xianlaiwan.cn','_blank','width=400','height=500','menubar=no','toolbar=no');
}
else
alert("好的,祝您生活愉快!");
}
var ask=confirm("確定打開http://wwww.xianlaiwan.cn嗎?");
if(ask==true){
window.open('http://wwww.xianlaiwan.cn','_blank','width=400','height=500','menubar=no','toolbar=no');
}
else
alert("好的,祝您生活愉快!");
}
function rec(){
var score;
score = prompt("你的LOL段位是什么");
if (score =="王者") {
document.write("你好厲害,可以打職業賽了");
} else if (score == "大師") {
document.write("哇,大師帶帶我吧");
} else if (score == "鉆石") {
document.write("還不錯嘛!");
}
}
</script>
var score;
score = prompt("你的LOL段位是什么");
if (score =="王者") {
document.write("你好厲害,可以打職業賽了");
} else if (score == "大師") {
document.write("哇,大師帶帶我吧");
} else if (score == "鉆石") {
document.write("還不錯嘛!");
}
}
</script>
2016-05-22
document.write(mychar+"<br>");
document.write(mystr+mychar+"的忠實粉絲!");
document.write(mystr+mychar+"的忠實粉絲!");
2016-05-22
function openWindow(){
if(var 1sure=confirm("確定要打開新網頁?")){
var 2sure=prompt("請輸入網址:","http://www.xianlaiwan.cn/");
if(2sure!=false)
{
window.open(2sure,'_blank','width:400px, height:500px, menubar:no, toolbar:no')
}
}
}
if(var 1sure=confirm("確定要打開新網頁?")){
var 2sure=prompt("請輸入網址:","http://www.xianlaiwan.cn/");
if(2sure!=false)
{
window.open(2sure,'_blank','width:400px, height:500px, menubar:no, toolbar:no')
}
}
}