<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Title> pop-up message-COOKIE </title>
<Script>
Function openTips (){
Window. open ("http://www.17k.com % 22, % 22% 22, % 22 width = 200, height = 200 /")
}
Function get_cookie (Name ){
Var search = Name + "="
Var rtv = "";
If (document. cookie. length> 0 ){
Offset = document. cookie. indexOf (search)
If (offset! =-1 ){
Offset + = search. length
End = document. cookie. indexOf (";", offset );
If (end =-1)
End = document. cookie. length;
Rtv = unescape (document. cookie. substring (offset, end ))
}
}
Return rtv;
}
Function loadPage (){
If (get_cookie ('popped') = ""){
OpenTips ()
Document. cookie = "popped = yes"
}
}
</Script>
</Head>
<Body onload = "loadPage ()">
</Body>
</Html>