javascript browser detection script

August 11, 2009 at 7:04 am Leave a comment

// <![CDATA[
var browser=navigator.appName;
var b_version=navigator.appVersion;
var version=parseFloat(b_version);
var objId=document.getElementById("StageArea");
if ((browser=="Microsoft Internet Explorer") && (version

<script>
var browser=navigator.appName;
var b_version=navigator.appVersion;
var version=parseFloat(b_version);
var objId=document.getElementById(“StageArea”);
if ((browser==”Microsoft Internet Explorer”) && (version<7)) {
if ((screen.width==1024) && (screen.height==768)){

objId.style.height=”472px”;
objId.style.overflow=”visible”;

}
else{
objId.style.height=”725px”;
objId.style.overflow=”visible”;
}

}
else  {
if ((screen.width==1024) && (screen.height==768)){
objId.style.minHeight=”472px”;
}
else{
objId.style.minHeight=”695px”;
}

}

</script>

Entry filed under: Javascript. Tags: .

iframe change src | javascript Umar Akmal Next sachin in making

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Flickr Photos

The firsts lights

Lago di Braies

Survivor Mode

More Photos

Blog Stats

  • 705,780 hits

%d bloggers like this: