FutureSpy
08-14-2005, 03:47 AM
Hi.
I'm trying to port a standalone GuestMap script to XOOPS (it's a PHP CMS). The problem comes when I try to run it into the page. The original script starts a function on body (<body onload=init()>), but since I'm running into XOOPS template page, I can't have 2 body tags.
Are there a way I can replace body onload?
I already tried <script type="text/javascript">init()</script> and <script type="text/javascript">onload=init()</script> but I'm unable to get the page to load properly. Can someone shed me some light?
Sorry if it's a too obvious question. I know absolutely -NO- JavaScript. :(
Thanks in advance,
-Yuji
I'm trying to port a standalone GuestMap script to XOOPS (it's a PHP CMS). The problem comes when I try to run it into the page. The original script starts a function on body (<body onload=init()>), but since I'm running into XOOPS template page, I can't have 2 body tags.
Are there a way I can replace body onload?
I already tried <script type="text/javascript">init()</script> and <script type="text/javascript">onload=init()</script> but I'm unable to get the page to load properly. Can someone shed me some light?
Sorry if it's a too obvious question. I know absolutely -NO- JavaScript. :(
Thanks in advance,
-Yuji