Interactive Brower Sniffer

[Total: 0    Average: 0/5]

Give your Clients a Animated message about Their Brower.

Head Code:

<Script> 
/*
 * Modified by JSX
 *  * streamlined logic
 *  * removed setTimeout from recursion call - used setInterval
 */
var flag =0; /* alternates in value between 1 and 0 */
function hider()
{ 
  document.getElementById("message").style.visibility = (flag?"hidden":"visible");
  flag=(flag+1)%2;
} 
function Myinit()
{
  if(!document.getElementById){alert("You do not have the latest web browsers.");return;}
  setInterval("hider()",1000);
}
</script> 

Body Code:

<pre><b>Browser Type :</b> 
<div ID= "message"> 
<Script> 
document.write(navigator.appVersion);
</Script> 
</div> 
</pre> 
<script>Myinit()</script>

Times Viewed: 4

Leave a Reply

Your email address will not be published. Required fields are marked *