Full version: jsB@nk » Utility » Path Object Constructor
URL: https://www.javascriptbank.com/path-object-constructor-index.html
Attaches a JavaScript 'path' object to an HTML object to control its automated movement.
Full version: jsB@nk » Utility » Path Object Constructor
URL: https://www.javascriptbank.com/path-object-constructor-index.html
<STYLE>DIV {WIDTH: 50px; POSITION: absolute; HEIGHT: 50px}.TABLE {WIDTH: 50px; POSITION: absolute; HEIGHT: 50px}IMG {WIDTH: 50px; POSITION: absolute; HEIGHT: 50px}</STYLE><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<SCRIPT src="path.js"></SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<IMG id=img1 style="LEFT: 50px; TOP: 50px" src="tips.gif"> <DIV id=div1 style="BACKGROUND: red; LEFT: 100px; TOP: 100px">div</DIV><TABLE class=TABLE id=tbl1 style="BACKGROUND: lime; LEFT: 150px; TOP: 150px" border=1> <TBODY> <TR> <TD>table </TD></TR></TBODY></TABLE><SCRIPT>window.defaultStatus=window.document.titlevar img1=window.document.all["img1"]img1.path=new Path(img1)img1.path.way=[[0,4,65],[4,0,65],[0,-4,65],[-4,0,65]]img1.path.play(true)var div1=window.document.all.div1div1.path=new Path(div1)div1.path.way=[[0,2,75],[2,0,75],[0,-2,75],[-2,0,75]]div1.path.play(true)var tbl1=window.document.getElementById("tbl1")tbl1.path=new Path(tbl1)tbl1.path.way=[[0,1,50],[1,0,50],[0,-1,50],[-1,0,50]]tbl1.path.play(true)</SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
http://javascriptbank.com/javascript/utility/Path_Object_Constructor/tips.gifhttp://javascriptbank.com/javascript/utility/Path_Object_Constructor/path.js