Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    AIUTO

    Salve a tutti!!!!!!!!!
    ho assolutamente bisogno di uno scroller per il testo verticale che fa scorrere il testo tramite pulsanti!!!!!sapete dove posso trovare uno script decente?

    Grazie mille

  2. #2
    Moderatore di JavaScript L'avatar di br1
    Registrato dal
    Jul 1999
    Messaggi
    19,998
    1: benvenuto sul forum
    2: Bel titolo sei cortesemente invitato a leggere e rispettare il regolamento
    3: http://www.html.it/dynamic/testo/index.html

    ciao
    Il guaio per i poveri computers e' che sono gli uomini a comandarli.

    Attenzione ai titoli delle discussioni: (ri)leggete il regolamento
    Consultate la discussione in rilievo: script / discussioni utili
    Usate la funzione di Ricerca del Forum

  3. #3
    Utente di HTML.it L'avatar di *pragma
    Registrato dal
    Sep 2001
    Messaggi
    1,087
    come questo?
    http://forum.html.it/forum/showthrea...hreadid=718359

    oppure [per copiare schiaccia QUOTE e copia il codice]

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=windows-1252">
    <META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
    <BODY>
    <SCRIPT language=JavaScript1.2>

    //Scrollable content script II- © Dynamic Drive (www.dynamicdrive.com)
    //For full source code and TOS
    //Visit http://www.dynamicdrive.com

    iens6=document.all||document.getElementById
    ns4=document.layers

    //specify speed of scroll (greater=faster)
    var speed=5

    if (iens6){
    document.write('<div id="container" style="position:relative;width:175;height:160;bord er:1px solid black;overflow:hidden">')
    document.write('<div id="content" style="position:absolute;width:170;left:0;top:0">' )
    }
    </SCRIPT>
    <ILAYER clip="0,0,175,160" height="160" width="175" name="nscontainer"><LAYER
    height="160" width="175" name="nscontent" visibility="hidden">


    <FONT face=Arial size=2>-</FONT><FONT face=Arial size=2>DHTML is the
    combination of HTML, JavaScript, and CSS</FONT></P>


    <FONT face=Arial size=2>- DOM stands for Document Object Model</FONT></P>


    <FONT face=Arial size=2>-</FONT><FONT face=Arial size=2> DHTML allows content
    on a page to change on the fly, without reloading the page</FONT></P>


    <FONT face=Arial size=2>- CSS allows for the separation between content
    definition and formatting</FONT></P>


    <FONT face=Arial size=2>- CSS stands for Cascading style sheet</FONT></P>


    <FONT face=Arial size=2>- </FONT><FONT face=Arial size=2>Dynamic Drive provides free, cut and
    paste DHTML scripts</FONT></P></LAYER></ILAYER>
    <SCRIPT language=JavaScript1.2>
    if (iens6)
    document.write('</div></div>')
    </SCRIPT>

    <TABLE width=175>
    <TBODY>
    <TR>
    <TD>
    <P align=right>[img][/img] [img][/img]</P></TD></TR></TBODY></TABLE>
    <SCRIPT language=JavaScript1.2>
    if (iens6){
    var crossobj=document.getElementById? document.getElementById("content") : document.all.content
    var contentheight=crossobj.offsetHeight
    }
    else if (ns4){
    var crossobj=document.nscontainer.document.nscontent
    var contentheight=crossobj.clip.height
    }

    function movedown(){
    if (iens6&&parseInt(crossobj.style.top)>=(contentheig ht*(-1)+100))
    crossobj.style.top=parseInt(crossobj.style.top)-speed
    else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
    crossobj.top-=speed
    movedownvar=setTimeout("movedown()",100)
    }

    function moveup(){
    if (iens6&&parseInt(crossobj.style.top)<=0)
    crossobj.style.top=parseInt(crossobj.style.top)+sp eed
    else if (ns4&&crossobj.top<=0)
    crossobj.top+=speed
    moveupvar=setTimeout("moveup()",100)

    }

    function getcontent_height(){
    if (iens6)
    contentheight=crossobj.offsetHeight
    else if (ns4)
    document.nscontainer.document.nscontent.visibility ="show"
    }
    window.onload=getcontent_height
    </SCRIPT>



    Step 2: The script uses two images as part of its interface. You can create your own, or use the two below (enlarged for easier download):



    (right click images, and select "Save Image As")



    Upload them into the same directory as your webpage.



    Technical Note



    To alter the interface's width, change all occurrences of the number "175" and "170" to another number. To alter its height, change the occurrences of "160".



    An interesting way to decorate the script is with a background image. Visit MrShowBiz, and see how the site uses a background image to give its scrollable content a rich interface.



    Finally, note that this script accesses the BODY onload event in NS6. If your page contains another script that does the same, see here for tips on resolving the conflict.



    Partner Merchant Select

    Enable e-commerce on your site and more. Visit the Merchant Select directory today!



    Recommend Us!


    -If you like Dynamic Drive, please recommend us to a friend...



    Legend

    All- Script works with Netscape 4 AND Internet Explorer 4+
    NS- Indicates script works with Netscape 4 (NOT NS 6 yet)
    IE- Indicates script works with Internet Explorer 4 and above
    IE5- Indicates script works with Internet Explorer 5 and above
    NS6!- Temporary index set up on script category pages to indicate script works in NS6

    </BODY></HTML>

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.