腳本說明:
把如下代碼加入區(qū)域中
<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[0] = "#000000" // Pop Up Profile background color
pageAtr[1] = "#ffffff" // Pop Up Profile text color
// Please edit the names of the people in your profiles
var peepName = new Array(peepNum)
peepName[1] = "Jason" // First person's name
peepName[2] = "John" // Second person's name
peepName[3] = "Joe" // Etc...
peepName[4] = "Ryan"
peepName[5] = "Jessica"
peepName[6] = "Mrs. Jacobson"
// Please edit the people's positions
var peepPos = new Array(peepNum)
peepPos[1] = "Master programmer :P" // First person's position
peepPos[2] = "The Pascal Guy" // Second person's position
peepPos[3] = "Soccer guy and mudder" // Etc...
peepPos[4] = "Serves no useful function"
peepPos[5] = "She complains a lot"
peepPos[6] = "The *snicker snicker* teacher"
// Please edit the personal quote
var peepAd = new Array(peepNum)
peepAd[1] = "9th grade really bites" // First person's quote
peepAd[2] = "Graphix are easier" // Second person's quote
peepAd[3] = "I like to play muds" // Etc...
peepAd[4] = "Huh? What about what?"
peepAd[5] = "I don't understand..."
peepAd[6] = "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("\n\n
Profile for: " + peepName[num] + "");
PUP.document.write("\n\n");
PUP.document.write("\n
\n\n\nName | " + peepName[num] + " | ");
PUP.document.write("\n<\TR>\n
\nTitle: | " + peepPos[num] + " | ");
PUP.document.write("\n<\TR>\n
\nQuote: | " + peepAd[num] + " | ");
PUP.document.write("\n<\TR>\n
\n\n\n");
PUP.status=(peepName[num] + "'s Pop Up Profile");
PUP.document.close();
}
</script>