qanglee 发表于 2007-4-27 10:55:30

***按钮特效***跳出说明窗口

把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件
脚本说明:
把如下代码加入<body>区域中
<script language="javascript">

// please enter the number of people in your database
var peepnum = 6

// please edit your page attributes here
var pageatr = new array(1)
pageatr = "#000000"                        // pop up profile background color
pageatr = "#ffffff"                        // pop up profile text color

// please edit the names of the people in your profiles
var peepname = new array(peepnum)
peepname = "jason"                         // first person's name
peepname = "john"                        // second person's name
peepname = "joe"                           // etc...
peepname = "ryan"
peepname = "jessica"
peepname = "mrs. jacobson"

// please edit the people's positions
var peeppos = new array(peepnum)
peeppos = "master programmer :p"         // first person's position
peeppos = "the pascal guy"               // second person's position
peeppos = "soccer guy and mudder"          // etc...
peeppos = "serves no useful function"
peeppos = "she complains a lot"
peeppos = "the *snicker snicker* teacher"

// please edit the personal quote
var peepad = new array(peepnum)
peepad = "9th grade really bites"          // first person's quote
peepad = "graphix are easier"            // second person's quote

peepad = "i like to play muds"             // etc...
peepad = "huh? what about what?"
peepad = "i don't understand..."
peepad = "there's too much screwing around here"

// *#)*#)*#)*#)*#)*#)*#)*#)*#)*#)*#)*#)*#)*#)*#)*#)*#)
// *#)      please stop editing at this point      *#)
// *#)*#)*#)*#)*#)*#)*#)*#)*#)*#)*#)*#)*#)*#)*#)*#)*#)

function makepupwin(){
pup = window.open('','pup','width=300,height=160,toolbar=0,directories=0,status=1,menu=0,scrollbars=no,resizable=no,copyhistory=no,location=0');
}

// this is a bit hard to edit if you don't do javascript.
// here you can edit the html of the profile window
// keep in mind you'll get errors if you use " without a slash (\")
function makepup(num){
makepupwin();
pup.document.write("<html>\n<head>\n<title>profile for: " + peepname + "</title>");
pup.document.write("\n</head>\n<body bgcolor=\"" + pageatr + "\" text=\"" + pageatr + "\">");
pup.document.write("\n<center>\n<table width=\"250\" border=\"1\" height=\"100\">\n<tr>\n<td>name</td><td><center>" + peepname + "</center></td>");
pup.document.write("\n<\tr>\n<tr>\n<td>title:</td><td><center>" + peeppos + "</center></td>");
pup.document.write("\n<\tr>\n<tr>\n<td>quote:</td><td><center>" + peepad + "</center></td>");
pup.document.write("\n<\tr>\n</table>\n<form>\n<input type=\"button\" value=\"close profile\" onclick=\"self.close();\">\n</form>\n</body>\n</html>");
pup.status=(peepname + "'s pop up profile");
pup.document.close();
}
</script>
<center>
<form>
<input type="button" value="jason's profile" onclick="makepup(1)"><p>
<input type="button" value="john's profile" onclick="makepup(2)"><p>
<input type="button" value="joe's profile" onclick="makepup(3)"><p>
<input type="button" value="ryan's profile" onclick="makepup(4)"><p>
<input type="button" value="jessica's profile" onclick="makepup(5)"><p>
<input type="button" value="mrs. jacobson's profile" onclick="makepup(6)"><p>
</form>
</center>

      










--------------------------------------

http://www.huoyue.com.cn 活跃网,活跃人群的论坛,访问活跃网,将给您带来意想不到的收获,还可以免费为您开论坛,让您免费拥有与朋友、网友交流的论坛。你是年轻人吗?你活跃你就上!
页: [1]
查看完整版本: ***按钮特效***跳出说明窗口