Re: javascript clashes with DHTML

by "David Rapp" <david(at)rappd.freeserve.co.uk>

 Date:  Tue, 13 Jun 2000 09:52:37 +0100
 To:  <mkdesai(at)powersurfer.net>,
"list" <hwg-basics(at)hwg.org>
 References:  whizchip
  todo: View Thread, Original
Hello

> THIS  <body onLoad="initAnimation()" onLoad="makesnake()"
> style="width:100%;overflow-x:hidden;overflow-y:scroll">  DOESNT WORK.

Close though. You can only have one onload attribute in the body tag itself
(like most of the others) so you need to join them together. Try,

<body onLoad="initAnimation(); makesnake();"
style="width:100%;overflow-x:hidden;overflow-y:scroll">

Both of the onloads are located in the same attribute so the browser doesn't
get too confused.

Only just woke up so please tell me if I got this right or not.

HTH

David

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA