[Typo3-dev] add bodytag-params through own ext
René Fritz
r.fritz at colorcube.de
Tue Jan 11 16:56:20 CET 2005
> i want to add an onload-javascript to a page's bodytag - through my
> extension-code.
>
> i'm aware of the fact that one can influence the bodytag via TS and
> templates, but how does it work in php?
>
> i found something like:
> $GLOBALS['TSFE']->JSeventFuncCalls["onload"]
> but couldn't figure out how to use it.
$GLOBALS["TSFE"]->JSeventFuncCalls["onload"][$this->prefixId] =
'callMyJSFunc();';
That way several extensions can register a onload function.
For an example you can have a look into cc_vscroller or the OSP TYPO3 book
chapter 8.6.3
René
(coauthor of the OSP TYPO3 book)
--
COLORCUBE
digital media lab
www.colorcube.de
More information about the TYPO3-dev
mailing list