🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: misc.forsale.computers.mac-specific.software
Article #177

Re:source code

#177
From: donno
Date: Wed, 03 Jun 1998 00:00
171 lines
3633 bytes
Just thought that If you get this; I am going to post the following to
all the news groups I can; want to stop
me??? then remove my name from your junk mail list!

I am not kidding, want to try me???


It goes public if I get this back, or you do not respond in the next 24
hours!


I got it back, address unknown! so, here; have fun!

<!--

//-THIS SCRIPT IS COPYRIGHTED!! I WILL SUE ANYONE WHO USES MY SCRIPT
WITHOUT MY PERMISSION! TEST ME!
function ExtraClick()

{

        off('channel3');

        off('channel4');

        off('channel5');

}



function checkPoint (numChannels)       // returns 0 if all channels
have been clicked or name of first unvisited channel encountered

{

        for (var i=1; i<=numChannels; i++)

        {

                if ( !(channelVisited[i]) )

                {

                        return ( "Visit Sponser " + (i+"") );

                }

        }

        return "";

}



function off (n)        // removes dot upon click of channel button and
checks to see if OK to light quiz dot

{

        channelVisited[ parseInt(n.substring(7,8)) ] = true;

        if (isOK)

        {

                document.images[n].src = blank.src;

                if ( checkPoint (numChannels) == "" ) {
document.images["quiz"].src = reddot.src; }

        }

}





function loadQuiz (quizURL)     // if all channels have been visited,
then goto quiz

{

        var result = checkPoint(numChannels);

        if ( result == "" ) { top.window.location = quizURL; } else {
alert(result); }

}





function over (n)

{

        if (isOK) { document.images[n].src = lighton.src; }

}



function out (n)

{

        if (isOK) { document.images[n].src = lightoff.src; }

}



function makeBooleanArray (length) {    // this function is an array
constructor

        this.size = length;

        for (var i=1; i<=length; i++) { this[i] = false; }

        return this;

}



function main ()        // main routine

{

        if (isOK)

        {

                blank = new Image(); blank.src =
"ac_button_left_blank.gif";

                reddot = new Image(); reddot.src =
"ac_button_left_reddot.gif";

                lighton = new Image(); lighton.src =
"ac_button_light_on.gif";

                lightoff = new Image(); lightoff.src =
"ac_button_light_off.gif";

        }

}



var numChannels = 5;    // global, number of channels on cruiser remote



var isOK = ( document.images ); //does this browser support image
replaces?

var channelVisited = new makeBooleanArray(numChannels); //makes boolean
array, with original elements all set to false main ();

//-THIS SCRIPT IS COPYRIGHTED!! I WILL SUE ANYONE WHO USES MY SCRIPT
WITHOUT MY PERMISSION! TEST ME!
// -->

</script>
Technical Details
Message-ID: <35758DE6.119C@somesort.org>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35725319.5EDD@dtstudio.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5851,516307cda58a6f6f
X-Google-Attributes: gidf5851,public
X-Google-Thread: 100acd,516307cda58a6f6f
X-Google-Attributes: gid100acd,public
X-Google-Thread: f8620,516307cda58a6f6f
X-Google-Attributes: gidf8620,public
From: donno <dono@somesort.org>
Subject: Re:source code
Date: 1998/06/03
Message-ID: <35758DE6.119C@somesort.org>
X-Deja-AN: 359210113
Content-Transfer-Encoding: 7bit
References: <35725319.5EDD@dtstudio.com>
Content-Type: text/plain; charset=us-ascii
Organization: http://extra.newsguy.com
Mime-Version: 1.0
Reply-To: yourself@wherever.net
Newsgroups: misc.forsale.computers.mac-specific.software,ba.market.computers.,sbay.forsale,ba.market.misc