JavaScript Scripts





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
Free Java Script Codes
Javascript List All
Slide Show Slide Show
Ad Display Ad Display
Image Effect Image Effect
Animated Image Effects Animated Image Effects
Form Validation Form Validation
Color Picker Tool Color Picker Tool
Formatting Forms Formatting Forms
Select All Select All
Dynamic Form Select Dynamic Form select
Dynamic Color Dynamic Color
Calendar Script Calendar
Textbox Counter Textbox Counter
Alphanumeric Alphanumeric
Date Time Script Date & Time
Stop Watch Script Stop Watch script
Delete Repeated Values Delete Repeated Values
Pagination Pagination
Random Generator Random Generator
Animated Text Animated Text
Cursor Position Cursor Position
User Info Window / User Info
Security Security / Authenticate
Bookmark Bookmark
Mouse Effects Mouse Effects
Title Bar Title Bar
Status Bar Status Bar
Country List Country List
Free Games Free Games
Calculators Calculators
 




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 type="text/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 price

For customization of this script or any script development, contact us at support@hscripts.com


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
- The javascript (misspelled as java script) is given under GPL License
- i.e. Free use for those who use the codes as it is.
- Free, if your modification does not remove our copyright information and links.
- Click Here for detailed license information.
- You can purchase the script if your requirements does not meet our GPL License terms.
Other Links

web hosting