stamp....................strip............ .. language="Javascript"var timeoutId;var max;var current;var picArray;var height;var width;function byid(id){ return document.getElementById(id);}function previous(lid) { var next = current - 1; if(current == 0) { next = max - 1; } var x = byid("slideshow" + current + "_row"); x.parentNode.replaceChild(picArray[next], x); current = next;}function next(lid){ var next = current + 1; if(current == max-1) { next = 0; } var x = byid("slideshow" + current + "_row"); x.parentNode.replaceChild(picArray[next], x); current = next;}function slideshow_stop(lid) { byid("pauseButtonDiv").style.display = 'none'; byid("playButtonDiv").style.display = 'block'; self.clearTimeout(timeoutId);}function slideshow_resume(lid) { byid("playButtonDiv").style.display = 'none'; byid("pauseButtonDiv").style.display = 'block'; timeoutId = self.setTimeout("slideshowPlay("+ lid + ")", 500);}function slideshow_start(lid, h, w, controls){ height = h; width = w; align_controls(lid); var table = byid("slideshow"+lid); current = 0; var children = table.getElementsByTagName("tr"); max = children.length; picArray = new Array(); picArray[0] = byid("slideshow" + 0 + "_row"); for(i = 1; i width) { var reductionMultiplier = width/imgWidth; img.setAttribute("width", width); imgWidth = width; var newHeight = Math.round(imgHeight * reductionMultiplier); img.setAttribute("height", newHeight); imgHeight = newHeight; } if(imgHeight height) { var redMultiplier = height/imgHeight; img.setAttribute("height", height); imgHeight = height; var newWidth = Math.round(imgWidth * redMultiplier); img.setAttribute("width", newWidth); imgWidth = newWidth; } if(navigator.appName == "Microsoft Internet Explorer") { var sideMargin = Math.round((width - imgWidth)/2); img.style.marginLeft = sideMargin + 'px'; var topMargin = Math.round((height - imgHeight)/2); img.style.marginTop = topMargin + 'px'; } else { var sideMargin = Math.round((width - imgWidth)/2); img.style.marginLeft = sideMargin + 'px'; }}function align_controls(lid) { if(navigator.appName == "Microsoft Internet Explorer") { byid("controls" + lid).style.textAlign = 'center'; }}function init() { var dummycell = byid("dummycell"); height = dummycell.height; width = dummycell.width; dummycell.parentNode.removeChild(dummycell); fixImages("slideshow101", width);}function fixImages(whichId, maxW) { var table = byid("slideshow101"); var children = table.getElementsByTagName("tr"); max = children.length; for(i=0; i
gansta
||
Loading....
..init();..
Photo b ucket