Ma il problema è che con quello creo un altr tabella con quel width..non posso atrribuire attributi ai tag html con php. ho fatto così

Codice PHP:

$width_table 
ceil($width_table);
$width_table $width_table."px";
echo 
"<script type=\"text/javascript\">document.getElementById('table').style.width=\"$width_table\";</script>"
Questo leva tutti i decimali e approssima la larghezza della tabella presa con php (1775.98328)
e la inserisce con javascript nell'attributo width.

codice:
//calcolo la larghezza de l body per poi sottrarla a quella della tabella
              width_table =  parseInt(document.getElementById('table').style.width);
              width_body = screen.width;
              
            //movimento derso destra
            function move_right(){

                z = setInterval("move()", 0,1);
            }
            function move(){
                x = parseInt(document.getElementById('table').style.left);
                if (x == 0){
                    clearInterval(z);
                }
                else{
                    document.getElementById('table').style.left = (x+2)+"px";
                }
            }
            function stop_right(){
                clearInterval(z);
            }


            //movimento verso sinistra
            function move_left(){
                z = setInterval("move_()", 0,1);
            }
            function move_(){
                x = parseInt(document.getElementById('table').style.left);
                if (x < -(width_body-width_table)){
                    clearInterval(z);
                }
                else{
                    document.getElementById('table').style.left = (x-1)+"px";
                }
            }
            function stop_left(){
                clearInterval(z);
            }
E questo prende la larghezza dello schermo e delat abella e in move_() fa la sottrazione


Il problema è che non si muove niente!!!! oddio

Ti prego di aiutarmi sono nel panico, non mollarmi =)