search for: dragcolto

Displaying 1 result from an estimated 1 matches for "dragcolto".

2006 Apr 20
0
Sanity check of my Draggable code
...ould be appreciated - especially if I''m doing things the wrong way. Here''s the code: var colSpacer function initPage() { colSpacer = new Draggable(''colspacer'', { revert:false, constraint:''horizontal'', change: function (d) { dragColTo(d.currentDelta()) } }); } function dragColTo(delta) { var x = delta[0]; if(x < 10) { return; } document.getElementById(''navlinks'').style.width = (x - 8) + ''px''; document.getElementById(''content'').style.marginLeft = (...