function JsmInfo_JSMsg() { this.Title = new Array(); this.Desc = new Array(); this.Link = new Array(); this.Cat = new Array(); this.DateN = new Array(); this.MetaKeys = new Array(); this.MetaVals = new Array(); this.ShortListSize = 6; this.BeenLoaded = 0; this.dispNumb; this.Msg = function(msgPart, msgOffset) { document.write( this.Get(msgPart, msgOffset) ); } this.MsgDay = function(msgPart) { document.write( this.GetDay(msgPart) ); } this.MsgN = function(msgPart, msgNumber) { document.write( this.GetN(msgPart, msgNumber) ); } this.Get = function(msgPart, msgOffset) { if(!msgOffset) { msgOffset = 0; } if(!this.BeenLoaded) { this.BeenLoaded = 1; dispNumb = this.getRandInt(this.ShortListSize); } return( this.GetN(msgPart, (dispNumb + msgOffset)) ); } this.GetDay = function(msgPart) { var d = new Date(); var x = d.getDate(); return( this.GetN(msgPart, x) ); } this.GetN = function(msgPart, msgNumber) { var myTmp; if(!msgPart) { msgPart = "Body"; } if(!msgNumber) { msgNumber = 0; } if(msgNumber >= this.ShortListSize) { msgNumber = msgNumber % this.ShortListSize; } if( this.ok(msgPart,"Type") ) { return(this.Type[msgNumber]); } if( this.ok(msgPart,"Title") ) { return(this.Title[msgNumber]); } if( this.ok(msgPart, "Desc Description Content") ) { return(this.Desc[msgNumber]); } if( this.ok(msgPart,"Body") ) { return(this.Body[msgNumber]); } if( this.ok(msgPart, "Attrib Attribute Source") ) { return(this.Attrib[msgNumber]); } if( this.ok(msgPart, "Author") ) { if(!this.Author[msgNumber]) { return(this.Attrib[msgNumber]); } return(this.Author[msgNumber]); } if( this.ok(msgPart,"DayN Day2N Day") ) { myTmp = this.DateN[msgNumber]; if(myTmp.length) { myTmp = myTmp.substr(6,2); if( this.ok(msgPart,"Day2N") ) { return(myTmp); } if(myTmp.charAt(0) == "0") { return(myTmp.substr(1,1)) } return(myTmp); } } if( this.ok(msgPart, "MonthN Month2N") ) { myTmp = this.DateN[msgNumber]; if(myTmp.length) { myTmp = myTmp.substr(4,2) if( this.ok(msgPart,"Month2N") ) { return(myTmp); } if(myTmp.charAt(0) == "0") { return(myTmp.substr(1,1)) } return(myTmp); } } if( this.ok(msgPart, "Year2N Year4N YearN Year") ) { if(this.DateN[msgNumber].length) { if( this.ok(msgPart,"Year4N") ) { return(this.DateN[msgNumber].substr(0,4)); } return(this.DateN[msgNumber].substr(0,4)); } } if( this.ok(msgPart,"Link") ) { return(this.Link[msgNumber]); } if( this.ok(msgPart,"LinkTitle") ) { if(this.MetaMsg(msgPart,"Link") && this.MetaMsg(msgPart,"Title") ) { if( !this.Link[msgNumber] ) { return(this.Title[msgNumber]); } if( !this.Title[msgNumber] ) { this.Title[msgNumber] = this.Link[msgNumber]; } myTmp = '\n'; myTmp = myTmp + this.Title[msgNumber] + '\n'; return(myTmp); } if( this.MetaMsg(msgPart,"Title") ) { return(this.Title[msgNumber]); } if( this.MetaMsg(msgPart,"Link") ) { if( this.Link[msgNumber] ) { myTmp = "\n"; myTmp = myTmp + this.Link[msgNumber] + "\n"; return(myTmp); } } return(""); } if( this.ok(msgPart,"Cat Category Subject") ) { return(this.Cat[msgNumber]); } if( this.ok(msgPart,"Thumb") ) { return(this.Thumb[msgNumber]); } if( this.ok(msgPart,"Alt") ) { return(this.Alt[msgNumber]); } return(""); } this.getRandInt = function(RandSz) { var t, t2, t3; t = 0; while(t < .000001) { t = Math.random(); t = Math.abs(t); } t2 = t * 1000000; t2 = Math.round(t2); t3 = t2 % RandSz; return(t3); } this.ok = function(a, b) { var t, t2; if(!this.is(a,b)) { return(0); } return(this.MetaMsg(a)); } this.is = function(a, b) { var t, t2; t = a + " "; t2 = b + " "; t2 = t2.toUpperCase(); t = t.toUpperCase(); if(t2.indexOf(t) == -1) { return(0); } return(1); } this.MetaMsg = function(msgCmd) { var i,l; if( this.is(msgCmd, "Title LinkTitle Desc Description Link LinkTitle Cat Category SubjectDayN Day2N MonthN Month2N Year2N Year4N YearN Year ") ) { return(1); } else if( this.is(msgCmd, "MetaCount") ) { return(20); } else { if(this.MetaKeys) { l = this.MetaKeys.length; for(i = 0;i < l;i++) { if(this.MetaKeys[i] == msgCmd) { return(this.MetaVals[i]); } } } return(0); } } } JsmInfo = new JsmInfo_JSMsg(); /* how slow is the with statement */ with( JsmInfo ) { /* Meta values */ /* content vaues: */ Title[0] = '
SW-i2.1 1100 (Black)

Model: SW-i2.1 1100 (Black)

Brand: Genius

Click here For Detail

'; Desc[0] = "A page listing JavaScript scrollers and faders that interface to JSMSg feeds"; Link[0] = ""; Cat[0] = "READING JSMsg feeds"; DateN[0] = "20040112"; Title[1] = '
SP-S110

Model: SP-S110

Brand: Genius

Click here For Detail

'; Desc[1] = "A page listing JavaScript scrollers and faders that interface to JSMSg feeds"; Link[1] = ""; Cat[1] = "READING JSMsg feeds"; DateN[1] = "20040112"; Title[2] = '
WRT-415 (54Mbps AP/Router With Bridging Option)

Model: WRT-415 (54Mbps AP/Router With Bridging Option)

Brand: PLANET

Click here For Detail

'; Desc[2] = "A page listing JavaScript scrollers and faders that interface to JSMSg feeds"; Link[2] = ""; Cat[2] = "READING JSMsg feeds"; DateN[2] = "20040112"; Title[3] = '
iTempo 800

Model: iTempo 800

Brand: Genius

Click here For Detail

'; Desc[3] = "A page listing JavaScript scrollers and faders that interface to JSMSg feeds"; Link[3] = ""; Cat[3] = "READING JSMsg feeds"; DateN[3] = "20040112"; Title[4] = '
WRT54GL (54Mbps Wireless Router)

Model: WRT54GL (54Mbps Wireless Router)

Brand: Linksys

Click here For Detail

'; Desc[4] = "A page listing JavaScript scrollers and faders that interface to JSMSg feeds"; Link[4] = ""; Cat[4] = "READING JSMsg feeds"; DateN[4] = "20040112"; Title[5] = '
GHT-S200

Model: GHT-S200

Brand: GENIUS

Click here For Detail

'; Desc[5] = "A page listing JavaScript scrollers and faders that interface to JSMSg feeds"; Link[5] = ""; Cat[5] = "READING JSMsg feeds"; DateN[5] = "20040112"; } // end with block function JSMezBtnResponse() { var m; m = ''; m += '

\n'; m += '\n'; m += '
\n'; m += '

\n'; // m += '