Here we go, possibly the coolest bookmarklet ever(?):
!lineDraw (drag to Links-bar)
An adaptation of Glen Murphy's clever js/vml linedraw at bodytag.org. The bookmarklet overlays a transparent iframe over the current page, pointing to milov.nl/code/linedraw.html, in which multiple lines can be drawn using the mouse. Handy for quick mockups and whatnot. Should also be helpful in preventing people from touching the screen during a presentation (beh, fingerprints).
IE6 required (maybe IE5.5 works too.)
Update: yep, also works in IE5.5.
work it, milo!
Waiting for the new comments system...;-)
http://www.nokiko.com/svg/svg_whiteboard.htm
<a href="javascript:if(o=document.getElementById('ldf')){void(o.outerHTML='');}else{void(document.body.innerHTML+='
<div id="sketch" style="position:absolute; left:0px; top:0px; z-index:1; visibility:visible;"><embed wmode="transparant"src="http://www.nokiko.com/svg/whiteboard.svg" width="780" height="1000" type="image/svg+xml"/></div>
')}">SVG_WhiteBoard</a>
(drag to Links-bar)
try a different approach to make yer code faster
document.body.innerHTML = document.body.innerHTML + ...
which means the browser has to parse the complete document.body
again. Don't add to innerHTML, use
document.body.insertAdjacentHTML('beforeEnd', 'html here')
as that way the insertion is done much more efficiently.
Armand
PS: woking on a all browser version, think we should get that to work with Create Element
I have a 'Companion' bookmarklet done
Just gotta stick them together
=) I 'll post something soon!
Simon, just click again on the !lineDraw button and the lines disappear.
Milov, how did you had such a great idea?