sto provando questo scorrimento foto (java script)
adattato su asp
codice:<% sql = "select * from prodotti order by id asc " Set rec = Server.CreateObject("ADODB.Recordset") Set Rec=Conn.Execute(SQL) While Not rec.EOF %> <tr> <td> <p align="center"> <script language="JavaScript1.2"> <!-- //Specify the marquee's width (in pixels) var marqueewidth=680 //Specify the marquee's height (in pixels, pertains only to NS) var marqueeheight=61 //Specify the marquee's scroll speed (larger is faster) var speed=2 // tra gli apici inserisci il codice che devi scrollare... var marqueecontents='" target="_blank"><font face="Tahoma" size="2">[b][img]public/<%=rec([/img]" border="0" width="100" height="70"> <% rec.MoveNext Wend rec.close%> ' if (document.all) document.write('<marquee scrollAmount='+speed+' style="width:'+marqueewidth+'">'+marqueecontents+'</marquee>') function regenerate(){ window.location.reload() } function regenerate2(){ if (document.layers){ setTimeout("window.onresize=regenerate",450) intializemarquee() } } function intializemarquee(){ document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>') document.cmarquee01.document.cmarquee02.document.close() thelength=document.cmarquee01.document.cmarquee02.document.width scrollit() } function scrollit(){ if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){ document.cmarquee01.document.cmarquee02.left-=speed setTimeout("scrollit()",100) } else{ document.cmarquee01.document.cmarquee02.left=marqueewidth scrollit() } } window.onload=regenerate2 --> </script>
nn mi da nessun errore nn rileva nulla perche'
cosa c'è che nn va ?

Rispondi quotando