// * note about ROLLOVERS // Because of Netscape 4...must be included within each HTML file. // Cannot be used in a SRC file because NS4 errors out. // ** RANDOM CONTENT - Pop Quiz and 'High Score' footer graphics function makeArray( len ) { for (var i = 0; i < len; i++) this[i] = null; this.length = len; } popQuiz = new makeArray(5); popQuiz[0] = 'Can You Guess?
What game was the first to include an intermission?'; popQuiz[1] = 'Can You Guess?
Who says "@!#?@!" every time he is hit by something? '; popQuiz[2] = 'Can You Guess?
Which member of the Rat Pack appeared in a 1970s commercial for a game system? '; popQuiz[3] = 'Can You Guess?
In the Mario Brothers game, what was Mario\'s profession before he became a plumber?'; popQuiz[4] = 'Can You Guess?
In Atari\'s Missile Command, what is the name of the planet under attack?'; highScores = new makeArray(5); highScores[0] = ''; highScores[1] = ''; highScores[2] = ''; highScores[3] = ''; highScores[4] = ''; // randomizer. function rand(n) { seed = (0x015a4e35 * seed) % 0x7fffffff; return (seed >> 18) % n; } var now = new Date() var seed = now.getTime() % 0xffffffff // END RANDOM CONTENT // popup window used by /inside/stories.html function popWindow(url, name, intWidth, intHeight) { winParameters = "width=" + intWidth + ",height=" + intHeight + ",scrollbars=no"; popupWin = window.open(url, name, winParameters); popupWin.focus(); } // ** POP UP // usage: popuplink(['js-only url',] this[, w[, h[, scroll[, extras]]]]) // basic usage: new pop // advanced usage: new pop // site-wide defaults: POPUP_W = 700; POPUP_H = 550; POPUP_SCROLL = true; POPUP_EXTRAS = 'location=0,statusbar=0,menubar=0,resize=yes'; // POPUP_FANCY = 'location=yes,toolbar=yes,menubar=yes,directories=yes,status=yes,resize=yes'; function popuplink() { var undef, i=0, args=popuplink.arguments; var url = (typeof(args[i])=='string') ? args[i++] : args[i].getAttribute('href'); var target = args[i++].getAttribute('target') || '_blank'; var w = args[i++]; var h = args[i++]; var s = (args[i]===undef) ? POPUP_SCROLL : args[i++]; var features = 'width=' + (w || POPUP_W) + ',height=' + (h || POPUP_H) + ',scrollbars=' + (s ? 'yes,' : 'no,') + (args[i] || POPUP_EXTRAS); var win = window.open(url, target, features); win.focus(); return false; } // END POP UP