function f5(){
var obj = document.getElementById("txt");
var myfive=confirm("change");
if(myfive){
obj.removeAttribute("style");
}
}
//定义"取消设置"的函数
var obj = document.getElementById("txt");
var myfive=confirm("change");
if(myfive){
obj.removeAttribute("style");
}
}
//定义"取消设置"的函数
function f3(){
mythree=document.getElementById("txt");
mythree.style.display="none";
}//定义"隐藏内容"的函数
function f4(){
myfour=document.getElementById("txt");
myfour.style.display="block";
}//定义"显示内容"的函数
mythree=document.getElementById("txt");
mythree.style.display="none";
}//定义"隐藏内容"的函数
function f4(){
myfour=document.getElementById("txt");
myfour.style.display="block";
}//定义"显示内容"的函数
function f1(){
myone=document.getElementById("txt");
myone.style.color="red";
//定义"改变颜色"的函
}
function f2(){
mytwo=document.getElementById("txt");
mytwo.style.height="500px";
}//定义"改变宽高"的函数
myone=document.getElementById("txt");
myone.style.color="red";
//定义"改变颜色"的函
}
function f2(){
mytwo=document.getElementById("txt");
mytwo.style.height="500px";
}//定义"改变宽高"的函数
var mychar= document.getElementById("con").innerHTML;
document.write("结果:"+mychar); //输出获取的P标签。
document.write("结果:"+mychar); //输出获取的P标签。
2016-07-19
function openWindow(){
var TC=confirm("是否要打开新的网页?");
if(TC==true){
var SR=prompt("请输入你要打开的网址:","http://www.imooc.com/");
window.open(SR,'_self','width=400,height=500,menubar=no,toolbar=no');
}
else
{
document.write("哦");
}
}
var TC=confirm("是否要打开新的网页?");
if(TC==true){
var SR=prompt("请输入你要打开的网址:","http://www.imooc.com/");
window.open(SR,'_self','width=400,height=500,menubar=no,toolbar=no');
}
else
{
document.write("哦");
}
}