All pastes #900560 Raw Edit

JScript Halp

public javascript v1 · immutable
·published 2008-02-12 00:09 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>	<meta http-equiv="content-type" content="text/html; charset=utf-8" />	<link rel="stylesheet" type="text/css" media="screen" href="css/load.css" />	<title>ZS-OS</title>	<script language="JavaScript1.1">	function Size() {  var myHeight = 0;  if (typeof (window.innerWidth) == 'number') {    //Non-IE    myHeight = window.innerHeight;  } else if (document.documentElement && document.documentElement.clientHeight) {    //IE 6+ in 'standards compliant mode'    myHeight = document.documentElement.clientHeight;  } else if (document.body && document.body.clientHeight) {    myHeight = document.body.clientHeight;  }	set_cookie ( "height", myHeight );	var exdate=new Date();exdate.setDate(exdate.getDate()+1);document.cookie="height=" +escape(myHeight)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString());  }	</script>	<script language="JavaScript1.1">	<!-- begin hiding		var locationAfterPreload = "login.php"		var lengthOfPreloadBar = 200		var heightOfPreloadBar = 15		var yourImages = new Array("img/1600.png","img/1280.png","img/logo copy.png","7_3-4_300.png","desktop.gif")	if (document.images) {		var dots = new Array() 		dots[0] = new Image(1,1)		dots[0].src = "img/black.gif"		dots[1] = new Image(1,1)		dots[1].src = "img/green.gif"		var preImages = new Array(),coverage = Math.floor(lengthOfPreloadBar/yourImages.length),currCount = 0		var loaded = new Array(),i,covered,timerID		var leftOverWidth = lengthOfPreloadBar%coverage	}	function loadImages() { 		for (i = 0; i < yourImages.length; i++) { 			preImages[i] = new Image()			preImages[i].src = yourImages[i]		}		for (i = 0; i < preImages.length; i++) { 			loaded[i] = false		}		checkLoad()	}	function checkLoad() {		if (currCount == preImages.length) { 			location.replace(locationAfterPreload)		return	}		for (i = 0; i <= preImages.length; i++) {			if (loaded[i] == false && preImages[i].complete) {				loaded[i] = true				eval("document.img" + currCount + ".src=dots[1].src")				currCount++			}		}		timerID = setTimeout("checkLoad()",10) 	}	// end hiding -->	</script></head><body><div id="title">	<h1>Loading, please wait</h1></div><div id="container"><script language="JavaScript1.1">	function Size()</script><script language="JavaScript1.1"><!-- begin hidingif (document.images) {	var preloadBar = ''	for (i = 0; i < yourImages.length-1; i++) {		preloadBar += '<img src="' + dots[0].src + '" width="' + coverage + '" height="' + heightOfPreloadBar + '" name="img' + i + '" align="absmiddle">'	}	preloadBar += '<img src="' + dots[0].src + '" width="' + (leftOverWidth+coverage) + '" height="' + heightOfPreloadBar + '" name="img' + (yourImages.length-1) + '" align="absmiddle">'	document.write(preloadBar)	loadImages()}// end hiding --></script></div><div id="note">	<p>Please note that this webpage requires Javascript to be enabled to work properly.</p></div></body></html>