What It Was Like (Scroll Way Down Due to Technical Difficulties)
Posted on July 8th, 2005 in Uncategorized | No Comments »
var totalImages = 19; var imageShowing = 1; var layerRef=””; var styleSwitch=””; function img(mode, imgName) { if (document.images) { document[imgName].src = eval(imgName + mode + “.src”); } } lefton = new Image(); lefton.src = “http://images.thetimes.co.uk/images/left_red.gif”; leftoff = new Image(); leftoff.src = “http://images.thetimes.co.uk/images/left_blue.gif”; righton = new Image(); righton.src = “http://images.thetimes.co.uk/images/right_red.gif”; rightoff = new Image(); rightoff.src = “http://images.thetimes.co.uk/images/right_blue.gif”; function init(){ if (navigator.appName == ‘Netscape’ && (navigator.userAgent).indexOf(“Firefox”)==-1){ layerRef = ‘document.layers'; styleSwitch = ”; Lshow = ‘show'; Lhide = ‘hide'; } else { layerRef = ‘document.all'; styleSwitch = ‘.style'; Lshow = ‘visible'; Lhide = ‘hidden'; } showLayer(‘image1′); } function showNextLayer(){ var showThisImage = imageShowing + 1; if (showThisImage > totalImages){ showThisImage = 1; } hideLayer(eval(‘”image’ + imageShowing + ‘”‘)); showLayer(eval(‘”image’ + showThisImage + ‘”‘)); imageShowing = showThisImage; } function showPreviousLayer(){ var showThisImage = imageShowing - 1; if (showThisImage < showthisimage =" totalImages;" imageshowing =" showThisImage;" visibility="' + Lhide + '" visibility="' + Lshow + '" imageshowing =" imageNo;">