added function to set onResize attribute for the body tag.

This commit is contained in:
Ralf Becker 2004-05-07 21:18:13 +00:00
parent f75a66cc05
commit 218a56178e

View File

@ -86,8 +86,9 @@
*/ */
function get_body_attribs() function get_body_attribs()
{ {
$js = ($this->body['onLoad'] ? 'onLoad="' . $this->body['onLoad'] . '"' : ''); $js = ($this->body['onLoad'] ? 'onLoad="' . addslashes($this->body['onLoad']) . '"' : '');
$js .= ($this->body['onUnload'] ? 'onUnLoad="' . $this->body['onUnload'] . '"': ''); $js .= ($this->body['onUnload'] ? 'onUnLoad="' . addslashes($this->body['onUnload']) . '"': '');
$js .= ($this->body['onResize'] ? 'onResize="' . addslashes($this->body['onResize']) . '"': '');
return $js; return $js;
} }
@ -159,6 +160,16 @@
$this->body['onUnload'] .= $code; $this->body['onUnload'] .= $code;
} }
/**
* Sets an onResize action for a page
*
* @param string javascript to be used
*/
function set_onresize($code)
{
$this->body['onResize'] .= $code;
}
/** /**
* DO NOT USE - NOT SURE IF I AM GOING TO USE IT - ALSO IT NEEDS SOME CHANGES!!!! * DO NOT USE - NOT SURE IF I AM GOING TO USE IT - ALSO IT NEEDS SOME CHANGES!!!!
* Used for removing a file or package of files to be included in the head section of a page * Used for removing a file or package of files to be included in the head section of a page