[ale] OT: Wordpress and javascript problem
joh6nn
joh6nn at joh6nn.com
Wed Oct 17 19:59:40 EDT 2007
Jim Seymour wrote:
> <body onload="webCamInit();">
you might try changing this to
<script> window.onload = webCamInit; </script>
and putting it somewhere in the head. i've found that to be a bit more
reliable than "body onload".
> <script type="text/javascript"><!-- webCamDraw(0); //--></script>
at a guess this is at least part of your problem. most javascript
parsers recognize <!-- as a comment. the whole "<!-- //-->" idiom is
specifically to hide JS from browsers so old that they don't understand
the <script> tag. unless you've got IE 3 popping up in your apache
logs, you can safely do away with it, and just put:
<script type="text/javascript"> webCamDraw(0); </script>
-joh6nn
More information about the Ale
mailing list