显示域与隐藏域
function hidetext(){
var mychar=document.getElementById("con").style.display="none";
}
function showtext(){
var mychar=document.getElementById("con").style.display="block";
}
function hidetext(){
var mychar=document.getElementById("con").style.display="none";
}
function showtext(){
var mychar=document.getElementById("con").style.display="block";
}
2015-10-10
function height(){
var score;
score = prompt("请输入你的成绩!");
if(score>=60){
document.write("你挂科了,该补考了。");
}else if(score>=70){
document.write("刚及格,继续努力啊");
}else
{
document.write("考得不错,赞一个");
}
}
var score;
score = prompt("请输入你的成绩!");
if(score>=60){
document.write("你挂科了,该补考了。");
}else if(score>=70){
document.write("刚及格,继续努力啊");
}else
{
document.write("考得不错,赞一个");
}
}
2015-10-10
已采纳回答 / ucas_sky
http://www.ziqiangxuetang.com/jsref/dom-obj-style.html有display属性,但className应该不是Style下的属性吧
2015-10-09
哈哈,看我的,试验过了~~~~~~~
function openWindow(){
var myweb=confirm("是否打开?");
if(myweb==true)
{
var mywin=prompt("请输入网址:","http://www.imooc.com");
if(mywin)
window.open(mywin,'_blank','width=400px,height=500px,menbar=no,toolbar=no');
else
null;
}
else
null;
}
function openWindow(){
var myweb=confirm("是否打开?");
if(myweb==true)
{
var mywin=prompt("请输入网址:","http://www.imooc.com");
if(mywin)
window.open(mywin,'_blank','width=400px,height=500px,menbar=no,toolbar=no');
else
null;
}
else
null;
}