All pastes #538560 Raw Edit

fearphage

public javascript v1 · immutable
·published 2007-06-05 01:47 UTC
rendered paste body
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>SUPERGALLERIETWEB20ZETABETAALFAROMEO</title><script type="text/javascript"><!-- function doPreload() {  var the_images = new Array(  'loading.png',  'select.png',  '1.jpg',  '2.jpg',  '3.jpg',  '4.jpg');   preloadImages(the_images);}function preloadImages(the_images_array) {   for(var loop = 0; loop < the_images_array.length; loop++) { 	var an_image = new Image();	an_image.src = the_images_array[loop];   }} function hashCheck() {  var hash = location.hash;  if (hash.length)    changeImage(hash.substr(1));} document.write("<style type='text/css'>#hei {visibility:hidden;}</style>"); function initImage() {	imageId = 'hei';	imagea = document.getElementById(imageId);	setOpacity(imagea, 0);	imagea.style.visibility = "visible"; 	// make sure the fading doesnt start before the image is completly loaded	if (imagea.complete != true) {		window.setTimeout("initImage()", 50);	} else {		fadeIn(imageId,0);	}}function fadeIn(objId,opacity) {	if (document.getElementById) {		obj = document.getElementById(objId);		if (Math.min(100, opacity) <= 100) {			setOpacity(obj, opacity);			opacity += 15;			if (opacity < 115) window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 20);		}	}}function setOpacity(obj, opacity) {	opacity = (opacity == 100)?99.999:opacity;	// IE/Win	obj.style.filter = "alpha(opacity:"+opacity+")";	// Safari<1.2, Konqueror	obj.style.KHTMLOpacity = opacity/100;	// Older Mozilla and Firefox	obj.style.MozOpacity = opacity/100;	// Safari 1.2, newer Firefox and Mozilla, CSS3	obj.style.opacity = opacity/100;} window.onload = function() { initImage(); doPreload(); hashCheck(); }