15、跳出说明窗口

15、跳出说明窗口

<html>

<head>

<title>网页特效|Linkweb.cn/Js|---跳出说明窗口</title>

<style type="text/css">

<!--

body {  font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 0px; margin-right: 0px}

A { COLOR: black; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: none }

 A:hover { COLOR: red; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: underline }

a:active     { font: 9pt "宋体"; cursor: hand; color: #FF0033 }

-->

</style>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

</head>

 

<body>

<br>

<br>

<center><font color=red face="隶书" size=6>跳出说明窗口</font></center>

<br>

<br><center>

<table border=0 bordercolor=blue borderlight=green style="border-collapse: collapse" cellpadding="0" cellspacing="0">

<tr><td align=center><font size=5 color=red face="Arial, Helvetica, sans-serif"><strong>下面框中为脚本显示区</strong></font></td></tr>

<tr><td align=center><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] = "网页特效代码"                         // 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] = "提供网页制作代码"           // 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] = "你有什么意见"          // 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("<HTML>\n<HEAD>\n<TITLE>Profile for: " + peepName[num] + "</TITLE>");

  PUP.document.write("\n</HEAD>\n<BODY BGCOLOR=\"" + pageAtr[0] + "\" TEXT=\"" + pageAtr[1] + "\">");

  PUP.document.write("\n<CENTER>\n<TABLE WIDTH=\"250\" BORDER=\"1\" HEIGHT=\"100\">\n<TR>\n<TD>Name</TD><TD><CENTER>" + peepName[num] + "</CENTER></TD>");

  PUP.document.write("\n<\TR>\n<TR>\n<TD>Title:</TD><TD><CENTER>" + peepPos[num] + "</CENTER></TD>");

  PUP.document.write("\n<\TR>\n<TR>\n<TD>Quote:</TD><TD><CENTER>" + peepAd[num] + "</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[num] + "'s Pop Up Profile");

  PUP.document.close();

}

  </SCRIPT>

<CENTER>

<FORM>

<INPUT TYPE="button" VALUE="网页特效" 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>

</td></tr></table></center>

<br>

<br>

<center>

 <SCRIPT LANGUAGE="JavaScript">

 

<!-- hide

 

function goHist(a)

 

{

 

   history.go(a);

 

}

 

//-->

 

</script></center>

<br>

<br>

</body>

</html>

Write a comment

Comments: 0