Continuo a pensare che non ne valga la pena... ma purtroppo mi piacciono le sfide![]()
ecco l'esempio:
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 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; } function selectstart(){ if ( event.srcElement.tagName != "INPUT" && event.srcElement.tagName != "TEXTAREA") { return false; } else { return true; } } document.ondragstart = new Function("return false;"); </script> </HEAD> <BODY> <table border=1 cellpadding=0 cellspacing=0> <tr> <td nowrap> <div id="t1" style="width: 20px;display: inline;"></div> [img]nero.gif[/img] </td> <td nowrap> <div id="t2" style="width: 20px;display: inline;"></div> [img]nero.gif[/img] </td> <td nowrap> fisso </td> </tr> </table> </BODY>

Rispondi quotando