[thelist] javascript poser

ALBIE ATTIAS ALBIE at eurosimm.com
Tue Jul 24 05:20:03 CDT 2001


Thanks Chris

Once again, you've solved the problem. Thanks! There was nothing else
outstanding - as far as I know, the avatar now works perfectly. Thanks again
for all your help.

Regards 



Albie Attias 

IT Manager 

Eurosimm specialise in Memory and Hard Drive
Solutions for Major Branded Systems
E-Mail: albie at eurosimm.com
Web : http://www.eurosimm.com
Tel : +44 (0) 1706 360000
Fax : +44 (0) 1706 620000

AOL IM : AAEUROSIMM



-----Original Message-----
From: The Optimizer [mailto:chrism at puffofsmoke.net]
Sent: 24 July 2001 10:26
To: thelist at lists.evolt.org
Subject: RE: [thelist] javascript poser


Albie

> I've created a rather nifty virtual web assistant which would be
> perfect if
> I didn't have the following glitch:
>
> Every time enter is pressed twice in a row or the 'talk to me' button is
> clicked twice, I get duplication of the image besides the text box.
>
> Can anyone suggest how I can amend my code to stop this happening?

I /think/ that the following is to blame:

function reply(){

document.face.src="anna_pics/anna"+(Math.round(Math.random()*33)+1)+".jpg";
   document.talker.src = "anna_pics/annasays.gif";
   phraseentered = document.chatform.speechbox.value.toLowerCase();
   if (phraseentered==""){
      document.talker.src = "anna_pics/anna18.jpg";
               ^^^^^^
//-- I think this should be 'face'..?
      document.chatform.speechbox.value="Pardon?";
      return;
   }
//-- Rest of function snipped
}

Sorry, it's only a quick scan so I could be wrong; but it's something along
those lines. BTW, did I promise to do anything that I didn't? Things got
really busy really fast around here.

Regards

Chris Marsh


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt ! 




More information about the thelist mailing list