最新回答 / 慕桂英8820456
<script type="text/javascript"> function add(){ var p1 = document.getElementById("p1"); p1.className = "one"; } function modify(){ var p2 = document.getElementById("p2"); p2.className = "two"; } </script>注意大小写!
2016-07-18
//定义"取消设置"的函数
function cleanTxt()
{
var obj = document.getElementById("txt");
obj.style.color = "";
obj.style.backgroundColor = "";
obj.style.width = "";
obj.style.height = "";
obj.style.display="block";
}
function cleanTxt()
{
var obj = document.getElementById("txt");
obj.style.color = "";
obj.style.backgroundColor = "";
obj.style.width = "";
obj.style.height = "";
obj.style.display="block";
}
function openWindow(){
var confirmOpen = confirm("是否打开");
if(confirmOpen ==true){
var isImooc= prompt('请输入需要打开的网址','http://www.imooc.com/')
if(isImooc){
window.open('http://www.imooc.com/','_blank',
'width=400,height=500,menubar=no,toolbar=no')
}
var confirmOpen = confirm("是否打开");
if(confirmOpen ==true){
var isImooc= prompt('请输入需要打开的网址','http://www.imooc.com/')
if(isImooc){
window.open('http://www.imooc.com/','_blank',
'width=400,height=500,menubar=no,toolbar=no')
}
function openWindow(){
var open=confirm("你要打开新窗口吗?")
if(open==true){
var net=prompt("请输入网址","http://www.imooc.com/")
window.open('net','_blank','width=400,height=500,left=0,top=100','menubar=no','toolbar=no')
}
}点击取消还是会打开慕课网。。
var open=confirm("你要打开新窗口吗?")
if(open==true){
var net=prompt("请输入网址","http://www.imooc.com/")
window.open('net','_blank','width=400,height=500,left=0,top=100','menubar=no','toolbar=no')
}
}点击取消还是会打开慕课网。。