Visualizzazione dei risultati da 1 a 2 su 2

Discussione: scorrimento foto

  1. #1
    Utente di HTML.it
    Registrato dal
    Jul 2003
    Messaggi
    583

    scorrimento foto

    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 ?

  2. #2
    Utente di HTML.it
    Registrato dal
    Jul 2003
    Messaggi
    583
    M potete aiutare grazie ??

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.