<p onMouseOver="window.open('url')">万恶的弹窗</p>
2016-03-23
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>隐藏的注释</title>
<script type="text/javascript">
document.write("神奇的JS,快把我们隐藏了!"); //快快把我变成单行注释
/* 知道吗
JS可以实现很多动态效果
快来学习吧!/*
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>隐藏的注释</title>
<script type="text/javascript">
document.write("神奇的JS,快把我们隐藏了!"); //快快把我变成单行注释
/* 知道吗
JS可以实现很多动态效果
快来学习吧!/*
</script>
</head>
<body>
</body>
</html>
2016-03-23
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>认识语句</title>
<script type="text/javascript">
alert("hello!");
document.write("I");
document.write("love");
document.write("you");
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>认识语句</title>
<script type="text/javascript">
alert("hello!");
document.write("I");
document.write("love");
document.write("you");
</script>
</head>
<body>
</body>
</html>
2016-03-23
<input type="button" value="改变颜色" onclick="co()">
<input type="button" value="改变宽高" onclick="wh()">
<input type="button" value="隐藏内容" onclick="no()">
<input type="button" value="显示内容" onclick="bl()">
<input type="button" value="取消设置" onclick="fi()">
<input type="button" value="改变宽高" onclick="wh()">
<input type="button" value="隐藏内容" onclick="no()">
<input type="button" value="显示内容" onclick="bl()">
<input type="button" value="取消设置" onclick="fi()">
function myconfirm(){
if(confirm("确定要取消设置嘛?")){
var mychar= document.getElementById("txt");
mychar.style.color="#000";
mychar.style.backgroundColor="#fff";
mychar.style.width="600px";
mychar.style.height="400px";
mychar.style.display="block";}}
if(confirm("确定要取消设置嘛?")){
var mychar= document.getElementById("txt");
mychar.style.color="#000";
mychar.style.backgroundColor="#fff";
mychar.style.width="600px";
mychar.style.height="400px";
mychar.style.display="block";}}
function mywidth(){var mychar= document.getElementById("txt");
mychar.style.width="500px";
mychar.style.height="250px";
function myd(){
var mychar= document.getElementById("txt");
mychar.style.display="none";
}function myb(){
var mychar= document.getElementById("txt");
mychar.style.display="block";}
mychar.style.width="500px";
mychar.style.height="250px";
function myd(){
var mychar= document.getElementById("txt");
mychar.style.display="none";
}function myb(){
var mychar= document.getElementById("txt");
mychar.style.display="block";}
1.function mycolor(){
var mychar= document.getElementById("txt");
mychar.style.color="red";
mychar.style.backgroundColor="#ccc";
}
var mychar= document.getElementById("txt");
mychar.style.color="red";
mychar.style.backgroundColor="#ccc";
}
function hi(){
t.style.display="none";
}//定义"隐藏内容"的函数
function sh(){
t.style.display="block";
}
//定义"显示内容"的函数
function qx(){
var con=confirm("确定取消吗?");
if(con==true){
t.removeattribute('style');
}
}//定义"取消设置"的函数
t.style.display="none";
}//定义"隐藏内容"的函数
function sh(){
t.style.display="block";
}
//定义"显示内容"的函数
function qx(){
var con=confirm("确定取消吗?");
if(con==true){
t.removeattribute('style');
}
}//定义"取消设置"的函数