javascript - How to draw a line on a web page using dojo -
i'm new dojo , javascript. trying figure out basics. if have number of <div>
objects, there way draw and/or animate line between them?
i see dojox/drawing/tools/line can used draw within dojox.drawing.drawing, don't have drawing in want add line. instead, want draw arrow between 2 locations on web page. suspect dynamically creating , adding <div>
, turning "line" using dojo, styling it, , positioning correctly.
have tried stylesheets?
here's fiddle : http://jsfiddle.net/kjjny/
first div<div id="first" style="width: 100%; height: 10px; border-bottom:2px; border-bottom-style:solid"></div> <div>this second div</div> <div id="second" style="width: 100%; height: 10px; border-bottom:2px; border-bottom-style:solid"></div> <div>this third div</div>
it's simpliest way define border between 2 divs.
regards, miriam
Comments
Post a Comment