Visualizzazione dei risultati da 1 a 4 su 4

Discussione: news scroll automatico

  1. #1

    news scroll automatico

    sapete dove posso trovare uno script free che faccia scrollare le news tipo www.corriere.it o www.italgas.it?

    tnx

    PS: ho cercato negli script di html.it ma non ho trovato...
    1,2,3,4,5,10,100 passi!

  2. #2
    CIAO. Questo lo mettin nel <HEAD>

    codice:
    <head>
    <script>
    lstart=200
    loop=true 
    speed=160  
    pr_step=5
    	var n = (document.layers) ? 1:0;
    	var ie = (document.all) ? 1:0;
    
    function makeObj(obj,nest){
        nest=(!nest) ? '':'document.'+nest+'.'
        this.css=(n) ? eval(nest+'document.'+obj):eval(obj+'.style')
    	this.scrollHeight=n?this.css.document.height:eval(obj+'.offsetHeight')
    	this.up=goUp
        this.obj = obj + "Object"
        eval(this.obj + "=this")
        return this
    }
    function goUp(speed){
    	if(parseInt(this.css.top)>-this.scrollHeight){
    		this.css.top=parseInt(this.css.top)-pr_step
    		setTimeout(this.obj+".up("+speed+")",speed)
    	}else if(loop) {
    		this.css.top=lstart
    		eval(this.obj+".up("+speed+")")
    	  }
    }
    	function slideInit(){
    		oSlide=makeObj('divNews','divCont')
    		oSlide.css.top=lstart
    		oSlide.up(speed)
    	}
    onload=slideInit
    </script>
    
    <style>
    <!--
    div.Section1
    	{page:Section1;}
    -->
    </style>
    </head>
    E questo lo metti nel <DIV>

    codice:
    <div align="center">
    <div id="divCont" style="position:absolute; width:151px; height:150; top:120px; left:130px; clip:rect(0,300,150,0)">
    	<div id="divNews" style="position:absolute; top:157px; left:7px; width:136px; height:166px">
    		<p style="margin-top: 0; margin-bottom: 0"><font size="1">"INSERISCI QUI IL TESO".</font></div>
    </div>
    Ciao

  3. #3
    grazie mille!

    se non chiedo troppo, c'è la possibilità di farlo fermare se ci passa sopra il mouse?
    1,2,3,4,5,10,100 passi!

  4. #4
    Utente di HTML.it
    Registrato dal
    Nov 2005
    Messaggi
    1
    Originariamente inviato da i_am_antipop
    grazie mille!

    se non chiedo troppo, c'è la possibilità di farlo fermare se ci passa sopra il mouse?
    Ne avrei bisogno anch'io, mi 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.