H I O X INDIA
FREE Javascript
Google
Web hscripts.com
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Directories 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)   Bookmarks :-)  
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

Java Script Source
List All
Date & Time
Calendar
Stop Watch script
Slide Show
Image Effect
Mouse Effects
Color Picker Tool
Dynamic Color
Random Generator
Select All
Form Validation
Textbox Counter
Dynamic Form select
Bookmark
Window / User Info
Security / Authenticate
Status Bar
Title Bar
Cursor Position
Country List
Calculators
Delete Repeated Values
Alphanumeric
Free Games





Page Screen Resolution


About
This java script function helps you to find the screen resolution. It helps you to know the color quality of your web page.


Features
a)The javascript function will help you to find your screen resolution.
b)This screen resolution script helps you to know the color quality of your web page.
c)Just copy the code in to your page and use it.


Preview
You can see the scroll position of the scroll bar on the bottom left corner of this page.


Code
<!--        Script by hscripts.com          -->
<!--        copyright of HIOX INDIA         -->
<!-- more scripts @ http://www.hscripts.com -->
<script language="JavaScript">

var corner = "bottomleft";
document.write("<div id=ddd style=\"position: absolute; background-color:#454545; text-align:center; visibility: visible; top: 5px; left:5px; color:white; font-family:arial,verdhana;  font-size:11; font-weight:bold; width:145px;\">Your current scroll bar positions :<br><input id=dur disabled type=text style=\" border:0px; background-color:#454545; text-align:center;  color:white; font-family:arial,verdhana;  font-size:11; font-weight:bold\"></div>");
var os;
if(document.layers)
 os = "n4";
else if(document.getElementById&&!document.all)
 os = "n6";
else if(document.all)
 os = "ie";
var top_pos;
var left_pos;

function scrollDetect(){
	if (navigator.appName == "Microsoft Internet Explorer")
	{
		pwidth = window.document.body.offsetWidth;
		pheight = window.document.body.offsetHeight;
		top_pos = document.body.scrollTop;
		left_pos = document.body.scrollLeft;
		ele = document.getElementById('dur');
		ele.value = top_pos + " X " + left_pos;	
	}
	else{
		pwidth = window.innerWidth;
		pheight = window.innerHeight;
		top_pos = window.pageYOffset;
		left_pos = window.pageXOffset;
		ele = document.getElementById('dur');
		ele.value = top_pos + " X " + left_pos;
	}
	 var dda = document.getElementById('ddd');
	  if(corner == "topleft"){
	    dda.style.top = (top_pos+15)+"px";
	    dda.style.left = (left_pos+15)+"px";  
	  }else if(corner == "topright"){
	    dda.style.top = (top_pos)+"px";
	    dda.style.left = (left_pos+pwidth-70)+"px";  
	  }else if(corner == "bottomleft"){
	    dda.style.top = (top_pos+pheight-60)+"px";
	    dda.style.left = (left_pos+15)+"px";  
	  }else if(corner == "bottomright"){
	    dda.style.top = (top_pos+pheight-60)+"px";
	    dda.style.left = (left_pos+pwidth-110)+"px";  
	  }
}
setInterval('scrollDetect()',5);
document.onload = scrollDetect();
</script>
<!-- Script by hscripts.com -->
Release Date - 02-01-2007

Get free version without ©copyright link for just 5



Usage
a) Copy the code in to your page.
b) You can place the scroll bar position javascript at topright/topleft/bottomright/bottomleft corner of the page just by changing the variable "corner".(eg: var corner = "topright";)
Note: Use only the keywords specified above.
c) This free bookmarking JavaScript is tested in windows IE, firefox and opera.





License
- This javascript (misspelled as java script)/HTML code is given under GPL License
- i.e. Free use for those who use it as it is.
- Free, if your modification does not remove our copyright information and links.
- Detailed License information can be found here
- You can purchase the script if your requirements does not meet GPL License terms.


privacy policy     license     sitemap
© 2004-2005 HIOX INDIA - hioxindia.com

Others