To include this FX in your document you need to put the the following
in the HEAD section of your document
<!-- *** BEGIN CUT - Start Code *** -->
<!-- (* Another free JavaScript © from JavaScript-FX.com *) -->
<SCRIPT LANGUAGE="javascript" SRC="javascript/JSFX_Layer.js"></SCRIPT>
<SCRIPT LANGUAGE="javascript" SRC="javascript/JSFX_Browser.js"></SCRIPT>
<SCRIPT LANGUAGE="javascript" SRC="javascript/JSFX_FloatingLayer.js"></SCRIPT>
<SCRIPT LANGUAGE="javascript" TYPE="text/javascript">
<!--
function JSFX_StartEffects()
{
JSFX.MakeFloatingLayer
("Menu1", 10,10);
}
//-->
</SCRIPT>
<!-- *** END CUT - End Code *** -->
Put the following in the BODY TAG of your document
<BODY onLoad="JSFX_StartEffects()">
Put the following somewhere in the BODY of your document
<DIV ID="Menu1"
STYLE="position:absolute;left:10;top:10;width:100;">
....Put any valid HTML here for what you want to float....
</DIV>
Customization.
Param1: "Menu1" - This MUST match
the name of the DIV (<DIV ID="Menu1".....).
Param2: 10 - The left position of the DIV
(-ve values are relative to the right edge)
Param3: 10 - The top position of the DIV
(-ve values are relative to the bottom edge)
Also See...
Using External ".js"
Files
Combining Multiple Scripts.
|