//javascript.txt ancs = new Array() ancs [1] = "COLORS" ancs [2] = "FORMS" ancs [3] = "IMAGES" ancs [4] = "LINKS" ancs [5] = "LISTS" ancs [6] = "TABLES" ancs [7] = "TEXT_TAGS" var max=ancs.length-1 files = new Array() files [1] = "html.html" files [2] = "form.html" files [3] = "imag.html" files [4] = "html.html" files [5] = "html.html" files [6] = "html.html" files [7] = "html.html" function ix(ux){for(var i=1; ancs[i]!=null; i++){if(ux==ancs[i]) return i;}} function ia(ux) {if(ix(ux)==1) return max+1; else return ix(ux);} function ib(ux) {if(ix(ux)==max) return 0; else return ix(ux);} function getRandom() {return Math.random()} function ir() {myrand=Math.round(getRandom()*(max)); if (myrand==0) myrand=max; return myrand; } function nxtsta(ux){stabar(files[ib(ux) + 1] + "#" + ancs[ib(ux) + 1]);} function next(ux){location = files[ib(ux) + 1] + "#" + ancs[ib(ux) + 1];} function presta(ux){stabar(files[ia(ux) - 1] + "#" + ancs[ia(ux) - 1]);} function previous(ux){location = files[ia(ux) - 1] + "#" + ancs[ia(ux) - 1];} function ransta(ux){stabar(files[ir()] + "#" + ancs[ir()]);} function random(ux){location = files[ir()] + "#" + ancs[ir()];} var nul = "''" function anchor(u0) { var u1 ="'" + u0 +"'"; document.write('' + '') } frameSrcs = new Array() frameSrcs[0] = "scro.html" frameSrcs[1] = "menu.html" frameSrcs[2] = "surv.html" frameSrcs[3] = "imag.html" pics = new Array(); var inframe = "[]" var outframe = "_" var objCount = 0 //no of images on page increments by preload var scrtxt = "Visit my site www.geocities.com/tanch48/chess.html..." + "E-mail me tanch48@hotmail.com..." + "Call me 603-7332324(off) 603-33728226(hse)..." + "More HTML features coming soon...Please come again..." + "Have a nice day !"; var length = scrtxt.length; var width = 120; var pos = -(width + 2); function age(dd,mm,yy) { thedate = new Date() mm2 = thedate.getMonth() + 1 dd2 = thedate.getDate() yy2 = thedate.getYear() if (yy2 < 100) {yy2 = yy2 + 1900 } yourage = yy2 - yy if (mm2 < mm) {yourage = yourage - 1;} if (mm2 == mm) { if (dd2 < dd) {yourage = yourage - 1;} } agestring = yourage + " years " document.write(agestring) } function breakframe(){ // if (top.location != location){top.location.href = document.location.href} if(self != top){top.location = self.location} else {frameSrcs[3]=document.location.href; top.location="index.html"} } function flipAll() { for(i=0; i12) ? hours - 12 : hours) timeValue += ((minutes < 10) ? ":0" : ":") + minutes timeValue += ((seconds < 10) ? ":0" : ":") + seconds timeValue += (hours >= 12) ? " PM" : " AM" document.frm9.time.value = timeValue // if(timeValue == set) {alert(message);} timerID = setTimeout("showtime()",1000) // timerRunning = true } function scroll(){ pos++ var scroller = ""; if(pos == length) {pos = -(width + 2);} if(pos < 0) { for(var i = 1; i<=Math.abs(pos); i++) {scroller = scroller + " ";} scroller = scroller + scrtxt.substring(0, width - i + 1); } else { scroller = scroller + scrtxt.substring(pos, width + pos); } document.frm9.txt9.value = scroller; setTimeout("scroll()",100); } function setfocus(element){element.focus();} function stabar(msg){window.status=msg;} function testA(element){ if(element.value=="" || element.value.indexOf('@',0)==-1) alert('"' + element.value + '"' + " invalid e-mail address") }