In my home.tpl, I am trying to initialize two functions:
P7_initPM
MM_preloadImages
in the body tag.
Here's the coding in my home.tpl
Code:
</head>
<body{$reading_direction_tag}{if $body_onload ne ''} onload="javascript: P7_initPM(1,0,1,0,0);MM_preloadImages('../../template-files/2newsletter.jpg','../../template-files/2festool.jpg','../../template-files/2internetstore.jpg','../../template-files/2flitch.jpg','../../template-files/2cart_empty.gif');{$body_onload}"{/if}>
{include file="rectangle_top.tpl" }
{include file="head.tpl" }
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}
When I view the actual page source, the body tag looks like this:
<body>
How do I correctly add my functions to the <body onload in home.tpl?