Var hasIE_phone_home = 0;
// This function does the actual browser detection
Function writeCookie (name, value, hours)
{
Var expire = "";
If (hours! = Null)
{
Expire = new Date (). getTime () + hours * 360000000 );
Expire = "; expires =" + expire. toGMTString ();
}
Document. cookie = name + "=" + escape (value) + expire;
}
// Example:
// Alert (readCookie ("myCookie "));
Function readCookie (name)
{
Var cookieValue = "";
Var search = name + "= ";
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;
CookieValue = unescape (document. cookie. substring (offset, end ))
}
}
Return cookieValue;
}
Function hasIE_hasIE (){
Var ua = navigator. userAgent. toLowerCase ();
Return (ua. indexOf ('msie ')! =-1) & (ua. indexOf ('Opera ') =-1 )&&
(Ua. indexOf ('webtv') =-1 )&&
(Location. href. indexOf ('seeniepage') =-1 ));
}
Function hasIE_showOnlyLayer (whichLayer)
{
If (document. getElementById)
{
Var style2 = document. getElementById (whichLayer );
}
Else if (document. all)
{
Var style2 = document. all [whichLayer];
}
Else if (document. layers)
{
Var style2 = document. layers [whichLayer];
}
Var body = document. getElementsByTagName ('body ');
Body [0]. innerHTML = style2.innerHTML;
}
Function hasIE_showLayer (whichLayer)
{
If (document. getElementById)
{
Var style2 = document. getElementById (whichLayer). style;
Style2.display = "block ";
}
Else if (document. all)
{
Var style2 = document. all [whichLayer]. style;
Style2.display = "block ";
}
Else if (document. layers)
{
Var style2 = document. layers [whichLayer]. style;
Style2.display = "block ";
}
}
Function hasIE_moveAd (adid ){
If (document. getElementById)
{
Var ad = document. getElementById ('hasie _ ad ');
Var adloc = document. getElementById (adid );
}
Else if (document. all)
{
Var ad = document. all ['hasie _ ad'];
Var adloc = document. all [adid];
}
Else if (document. layers)
{
Var ad = document. layers ['hasie _ ad'];
Var adloc = document. layers [adid];
}
Adloc. innerHTML = ad. innerHTML;
}
// Hides and shows sections of the page based on whether or not it's
// Running in IE
Function hasIE_hideAndShow (){
If (hasIE_hasIE ()){
HasIE_showLayer ("hasIE_level1 ");
If (hasIE_phone_home = 1)
HasIE_phoneHome ('getie _ pingimage1 ');
} Else {
If (hasIE_phone_home = 1)
HasIE_phoneHome ('getie _ pingimage0 ');
}
}
Function hasIE_phoneHome (image ){
If (document. getElementById)
{
Var img = document. getElementById (image );
}
Else if (document. all)
{
Var img = document. all [image];
}
Else if (document. layers)
{
Var img = document. layers [image];
}
// Img. setAttribute ('src', 'HTTP: // getunder50.com/ping.php? Host = '+ location. host );
}
Function hasIE_ContinueWithoutFF (){
If (location. href. indexOf ('? ')! =-1)
Location. href + = '& seenIEPage = 1 ';
Else
Location. href + = '? SeenIEPage = 1 ';
}
Function closediv (I ){
WriteCookie ("status", "showed24", 240 );
Document. getElementById (I). style. display = 'none ';
}
Document. write ("<div id = \" hasIE_level1 \ "style = \" background: # FFFFBB; padding: 2px 0 3px; display: none; border-bottom: 1px solid # ffd532; position: absolute; top: 0; left: 0; width: 100%; z-index: 100 \ "> <div id = \" iewarning \ "style = \" width: 19px; float: left; \ "> </div> <div id = \" closeimg \" style = \ "width: 19px; float: right; \ "> < A href = \ "javascript: closediv ('hasie _ level1 '); \ "title = \" Close prompt \ "> </a> </div> <div style = \ "margin-top: 4px; marign-left: 4px; font-size: 12px; color: #092E20 \ "> system prompt: you are using IE browser, we strongly recommend that you use the safest browser in Windows: <a href = \ "http://www.jb51.net/adsense/adsense.htm\" title = \ "firefoxfirefox 2.0 Download \" target = \ "_ blank \"> <font color = \ "# ee0 000 \ "> firefoxfirefox 2.0, click to download </a> </font>! </Div> <div style = \ "clear: both \"> </div> ");
If (document. referrer. indexOf ("hao123") =-1 & document. referrer. indexOf ("hao222") =-1)
{
If (readCookie ("status ")! = "Showed24 ")
{
HasIE_hideAndShow ();
}
}