<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>
function add(){
var p1 = document.getElementById("p1");
p1.className="one";
}
function modify(){
var p2 = document.getElementById("p2");
p2.className="two";
}
</script>
2016-05-28
<script type="text/javascript">
function hidetext()
{
var mychar = document.getElementById("con");
mychar.style.display="none";
}
function showtext()
{
var mychar = document.getElementById("con");
mychar.style.display="block";
}
</script>
function hidetext()
{
var mychar = document.getElementById("con");
mychar.style.display="none";
}
function showtext()
{
var mychar = document.getElementById("con");
mychar.style.display="block";
}
</script>
2016-05-28
//定義"隱藏內容"的函數
function neirong(){
num.style.display="none";
}
//定義"顯示內容"的函數
function xianshi(){
num.style.display="block";
}
//定義"取消設置"的函數
function quxiao(){
var qu = confirm("是否取消設置?")
if(qu==true){
num.style.cssText='';
num1.style.cssText='';
}
}
function neirong(){
num.style.display="none";
}
//定義"顯示內容"的函數
function xianshi(){
num.style.display="block";
}
//定義"取消設置"的函數
function quxiao(){
var qu = confirm("是否取消設置?")
if(qu==true){
num.style.cssText='';
num1.style.cssText='';
}
}
var num = document.getElementById("txt");
var num1 = document.getElementById("con");
//定義"改變顏色"的函數
function yanse(){
num1.style.color="red";
num.style.backgroundColor="blue";
}
//定義"改變寬高"的函數
function kuangao(){
num.style.width="200px";
num.style.height="200px";
}
var num1 = document.getElementById("con");
//定義"改變顏色"的函數
function yanse(){
num1.style.color="red";
num.style.backgroundColor="blue";
}
//定義"改變寬高"的函數
function kuangao(){
num.style.width="200px";
num.style.height="200px";
}
window.open('http://www.xianlaiwan.cn','_blank','width=600,height=400,margin-top=100,margin-left=0')
2016-05-28
function Wopen(){
alert("頁面會在原頁面打開");
var xxx=prompt("點擊取消返回原頁,或請輸入你想進入的網址:", "http://");
if (xxx == null){
window.open('http://www.xianlaiwan.cn/code/412','_self', 'scrolling=yes' )
}else{
window.open(xxx,'_self', 'scrolling=yes');
}
}
alert("頁面會在原頁面打開");
var xxx=prompt("點擊取消返回原頁,或請輸入你想進入的網址:", "http://");
if (xxx == null){
window.open('http://www.xianlaiwan.cn/code/412','_self', 'scrolling=yes' )
}else{
window.open(xxx,'_self', 'scrolling=yes');
}
}
2016-05-28
function openWindow()
{var new1;
var new2;
new1=confirm("是否打開本網頁");
if(new1==true)
{
new2=prompt("開這個?","http://www.xianlaiwan.cn/")
if(new2!=null)
{window.open(new2,"_blank",'width=400px,height=500px ,menubar=no,toolbar=no');
}
else
{alert("你再一次失去了本寶寶");
}
}
else{
alert("你將失去本寶寶");
}
}
{var new1;
var new2;
new1=confirm("是否打開本網頁");
if(new1==true)
{
new2=prompt("開這個?","http://www.xianlaiwan.cn/")
if(new2!=null)
{window.open(new2,"_blank",'width=400px,height=500px ,menubar=no,toolbar=no');
}
else
{alert("你再一次失去了本寶寶");
}
}
else{
alert("你將失去本寶寶");
}
}