You can try:
Code:
<script type="text/javascript">
ajaxpage(rootdomain+'/v3/bin/current.php','right');
loadobjs(rootdomain+'/v3/main.css');
</script>
But I think you may need:
Code:
<script type="text/javascript">
onload=function(){ajaxpage(rootdomain+'/v3/bin/current.php','right');
loadobjs(rootdomain+'/v3/main.css');
}
</script>
Even that won't work, or will cause other problems, if there are other onload events in the body tag or scripts on the page. A quick check of the script appears to have none of these but, I may have missed something. Also, I have no idea if you are running other scripts on your page. There are workarounds if onload conflict is at issue. Please provide a link to you page.
This may work as well:
Code:
<div id="right"></div>
<script type="text/javascript">
ajaxpage(rootdomain+'/v3/bin/current.php','right');
loadobjs(rootdomain+'/v3/main.css');
</script>
Bookmarks