229、击链接后跳出说明窗口

229、击链接后跳出说明窗口

以下代码加入<head>区域

以下代码加入<body>区域

<SCRIPT LANGUAGE="JavaScript">

 

 

 

<!--

 

 

 

function PopIt(label, msg, URLE){ 

 

        // Set up Page Colors & Table 

 

        var DQUOTE = '\"'

 

        var s1 =     "<TITLE>" + label + "</TITLE>" +   

 

        "<BODY BGCOLOR='ffffff'><TABLE BORDER=0><TR>" +       

 

        "<TD WIDTH=90% HEIGHT=90 VALIGN=TOP ALIGN=LEFT>"+       

 

        "<FONT SIZE=4>"   

 

        var s2 = "<FONT COLOR='FF0000'><B>"+label+"</B></FONT><P>"  

 

        var s3 = "</TD><TD WIDTH=10%> </TD></TR><TR><TD> </TD>"+   

 

        "<TD VALIGN=TOP ALIGN=RIGHT>"+   

 

        "<FORM><INPUT TYPE='BUTTON' VALUE='Close'" +                  

 

        "onClick='self.close()'>"  +   

 

        "<INPUT TYPE='BUTTON' VALUE='Jump to!'" +                  

 

        "onClick='window.open("+DQUOTE+URLE+DQUOTE+")'"  +

 

        "</FORM></TD></TR></TABLE></BODY>"  

 

        popup = window.open("","popDialog","height=200,width=300,scrollbars=no") 

 

        popup.document.write(s1+s2+msg+s3) 

 

        popup.document.close()

 

}

 

 

 

// -->

 

 

 

</SCRIPT>

 

<A HREF="JavaScript:PopIt('链接一','网易!','../../../../www.163.com/default.htm')">网易</A>

 

<BR>

 

<A HREF="JavaScript:PopIt('链接二','哇哈特效站','网页特效')">哇哈特效站</A>

 

<BR>

 

<A HREF="JavaScript:PopIt('链接三','中央电视台!','../../../../www.cctv.com/default.htm')">中央电视台</A>

 

<BR>

 

<A HREF="JavaScript:PopIt('链接四','新浪!','../../../../www.sina.com.cn/default.htm')">新浪</A>

 

Write a comment

Comments: 0