Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Collector's Corner.Unusal Ebay Special Effectd..

Author: pavel

Date: 05:34:26 04/06/05

Go up one level in this thread


On April 06, 2005 at 00:41:10, William H Rogers wrote:

>I would love to find out just how he did that. I think that it is a really nice
>idea. Not just the character but the voice and sound effects too.
>Bill :)


Javasript.
In Windows Explorer: View -> Source
------------------------------------------------------------------

</html>

<object id="wolfi" height="32" width="32"
classid="CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F">
></object>
<script language="JavaScript" type="text/javascript">
function LoadLocalAgent(CharID, CharACS) {
LoadReq = wolfi.Characters.Load(CharID, CharACS);
return(true);
}


function MoveMerlin(x,y)
{

var ScreenWidth = window.screen.width;
var ScreenHeight = window.screen.height;

if ((ScreenWidth == 0) || (ScreenHeight == 0)) {
ScreenWidth = 800;
ScreenHeight = 600;
}

var xpos = (parseInt(ScreenWidth / 100 * x) - parseInt(Merlin.Width / 2));;
var ypos = (parseInt(ScreenHeight / 100 * y) - parseInt(Merlin.Height / 2));
Merlin.MoveTo(xpos,ypos);
}


var MerlinID;
var MerlinACS;
wolfi.Connected = true;
MerlinLoaded = LoadLocalAgent(MerlinID, MerlinACS);
Merlin = wolfi.Characters.Character(MerlinID);
MoveMerlin (7,24)
Merlin.Show();
Merlin.Play("Surprised");
Merlin.Play("GetAttention");
Merlin.Play("GetAttentionContinued");
Merlin.Play("GetAttentionContinued");
Merlin.Play("GetAttentionReturn");
Merlin.Play("Blink");
Merlin.speak("E-Mail me for ANY information on the product");
Merlin.Play("Blink");
Merlin.Play("Confused");
MoveMerlin (89,83);
Merlin.Play('DoMAgic1');
Merlin.Play('DoMAgic2');
Merlin.Play("GetAttention");
Merlin.Play("GetAttentionContinued");
Merlin.Play("GetAttentionReturn");;
Merlin.Play('GestureLeft');
Merlin.Play('GestureRight');
Merlin.speak("Bid Bid Bid!");
MoveMerlin (22,80);
Merlin.Play("GetAttention");
Merlin.Play("GetAttentionContinued");
Merlin.Play("GetAttentionReturn");
Merlin.Play('DoMAgic1');
Merlin.Play('DoMAgic2');
Merlin.Play('GestureRight');
Merlin.Play("Blink");
Merlin.speak("Be sure to ask before bidding for postage prices outside the UK");
MoveMerlin (92,25);
Merlin.Play("GetAttention");
Merlin.Play("GetAttentionContinued");
Merlin.Play("GetAttentionReturn");
Merlin.Play('DoMAgic1');
Merlin.Play('DoMAgic2');
Merlin.Play('GestureLeft');
Merlin.speak("Postal Insurance is One Pound");
MoveMerlin (26,44);
Merlin.Play("GetAttention");
Merlin.Play("GetAttentionContinued");
Merlin.Play("GetAttentionReturn");
Merlin.Play('DoMAgic1');
Merlin.Play('DoMAgic2');
Merlin.Play('GestureRight');
Merlin.speak("Paypal is Prefered");
MoveMerlin (69,86);
Merlin.Play("GetAttention");
Merlin.Play("GetAttentionContinued");
Merlin.Play("GetAttentionReturn");
Merlin.Play('GestureLeft');
Merlin.speak("Right click: HIDE to hide me")
Merlin.Play('DoMAgic1');
Merlin.Play('DoMAgic2');
Merlin.Play("Blink");
Merlin.speak("CYA!");
Merlin.Hide();
</script>

<script>

//Time of day message script- by javascriptkit.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use

var Digital=new Date()
var hours=Digital.getHours()

//Configure message below to your own.
if (hours>=5&&hours<=11) //MESSAGE FOR MORNING
document.write('<b>Welcome my e-bay Good morning!</b>')
else if (hours==12) //MESSAGE FOR NOON
document.write('<b>It is high noon. Thanks for dropping by!</b>')
else if (hours>=13&&hours<=17) //MESSAGE FOR AFTERNOON
document.write('<b>Good afternoon, Matrixcaps values your visit</b>')
else if (hours>=18&&hours<=20) //MESSAGE FOR EVENING (6pm-8pm)
document.write('<b>Good evening.Hope you win the auction</b>')
else if (hours>=21&&hours<=11) //MESSAGE FOR NIGHT (9pm-11pm)
document.write('<b>Glad to see you this time of the night.Hope you bid for this
item</b>')
else //MESSAGE FOR LATE NIGHT, EARLY MORNING (12pm-4am)
document.write('<b>Wow, thanks for choosing to visit my e-bay item over
sleep!</b>')

</script>

-------------------------------------------------------------------------------



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.