logangreen
09-14-2007, 12:53 AM
I can't get the um.trigger to execute the javascript before the entire page loads. You can see the whole thing in action here http://www.sustainability.isc.ucsb.edu/built/green_buildings.php
Note: I added the huge pic, just for testing.
Here are the details.
I have the following code in the expanding-single.js file:
//initialization trigger element ["id"];
um.trigger = "brothercake";
The following code is the php/html that make up the header of every page:
<script type="text/javascript" src="<?=$base_url?>js/styleswitch.js"></script>
<!-- ULTIMATE DROP DOWN MENU Version 4.5 by Brothercake -->
<!-- http://www.udm4.com/ -->
<script type="text/javascript" src="<?=$base_url?>js/domFunction.js" ></script>
<!-- you are here extension -->
<script type="text/javascript" src="<?=$base_url?>js/udm-x-youarehere.js"></script>
<script type="text/javascript" src="<?=$base_url?>js/expanding-single.js"></script>
<script type="text/javascript" src="<?=$base_url?>js/udm-control.js"></script>
<script type="text/javascript" src="<?=$base_url?>js/udm-style.js" ></script>
</head>
<body class="<?=$body;?>">
<?php //include("navbar.php");?>
<!-- menu script -->
<script type="text/javascript" src="<?=$base_url?>js/udm-dom.js"></script>
<!-- keyboard navigation module -->
<script type="text/javascript" src="<?=$base_url?>js/udm-mod-keyboard.js"></script>
The following HTML comes after the menu:
<div id="brothercake"></div>
Note: I added the huge pic, just for testing.
Here are the details.
I have the following code in the expanding-single.js file:
//initialization trigger element ["id"];
um.trigger = "brothercake";
The following code is the php/html that make up the header of every page:
<script type="text/javascript" src="<?=$base_url?>js/styleswitch.js"></script>
<!-- ULTIMATE DROP DOWN MENU Version 4.5 by Brothercake -->
<!-- http://www.udm4.com/ -->
<script type="text/javascript" src="<?=$base_url?>js/domFunction.js" ></script>
<!-- you are here extension -->
<script type="text/javascript" src="<?=$base_url?>js/udm-x-youarehere.js"></script>
<script type="text/javascript" src="<?=$base_url?>js/expanding-single.js"></script>
<script type="text/javascript" src="<?=$base_url?>js/udm-control.js"></script>
<script type="text/javascript" src="<?=$base_url?>js/udm-style.js" ></script>
</head>
<body class="<?=$body;?>">
<?php //include("navbar.php");?>
<!-- menu script -->
<script type="text/javascript" src="<?=$base_url?>js/udm-dom.js"></script>
<!-- keyboard navigation module -->
<script type="text/javascript" src="<?=$base_url?>js/udm-mod-keyboard.js"></script>
The following HTML comes after the menu:
<div id="brothercake"></div>