Un vecchio esperimento non proseguito...
ciaocodice:<HEAD> <script> var spFlag = false; var osx = 0; var nsx = 0; function spMove(o) { if (spFlag ){ nsx = event.screenX; ll = parseInt(document.getElementById(o).style.width) + nsx - osx; if(ll >= 0) { document.getElementById(o).style.width = "" + ll + "px"; osx = nsx; } } } function spDown(o) { document.body.style.cursor = 'move'; spFlag = true; osx = event.screenX; } function spUp(o) { document.body.style.cursor = 'auto'; spFlag = false; } document.ondragstart = new Function("return false;"); </script> </HEAD> <BODY> <table border=1 bordercolor=black cellpadding=0 cellspacing=0 style="border-collapse: collapse;"> <tr> <td nowrap><div id="t1" style="height: 2px;width: 20px;display: inline;"></div>[img]nero.gif[/img]</td> <td nowrap><div id="t2" style="height: 2px;width: 20px;display: inline;"></div>[img]nero.gif[/img]</td> <td nowrap>fisso</td> </tr> </table>

Rispondi quotando