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_DragDrop.js"></SCRIPT>
<!-- *** END CUT - End Code *** -->
To make a dragable layer, add the following links to your document BODY.
<A href="#" onClick="JSFX.addDragLayer('<IMG
SRC=images/sphere.gif>', 100, 100, 40, 40); return false">add
Sphere</A>
Customization.
'<IMG SRC=images/sphere.gif' - This is
the content of the dragable layer. Use any valid HTML.
100, 100, 40, 40. - This is the - x,y,
width, height - of the dragable layer
Also See...
Using External ".js"
Files
Combining Multiple Scripts.
|