Visualizzazione dei risultati da 1 a 5 su 5

Discussione: Title HtMl

  1. #1

    Title HtMl

    raga sapete come fare un testo in movimento in un title di pagina??
    (x intenderci dove c'è skritto html.it forum - nuova discussione)
    se volete vedere un esempio di testo in movimento www.mondoirc.net
    grazie mille in anticipo

  2. #2
    C'è scritto nella pagina stessa...

    codice:
    <SCRIPT language=JavaScript1.2>
    
    if (document.all||document.getElementById){
    var thetitle=document.title
    document.title=''
    }
    
    var data="";
    
    var done=1;
    function statusIn(text){
    	decrypt(text,2,1);
    }
    
    function statusOut(){
    self.status='';
    done=1;
    }
    
    
    function decrypt(text, max, delay){
    	if (done){
    		done = 0;
    		decrypt_helper(text, max, delay,  0, max);
    		}
    
    }
    
    function decrypt_helper(text, runs_left, delay, charvar, max){
    	if (!done){
    	runs_left = runs_left - 1;
    	var status = text.substring(0,charvar);
    	for(var current_char = charvar; current_char < text.length; current_char++){
    		status += data.charAt(Math.round(Math.random()*data.length));
    		}
    	document.title = status;
    	var rerun = "decrypt_helper('" + text + "'," + runs_left + "," + delay + "," + charvar + "," + max + ");"
    	var new_char = charvar + 1;
    	var next_char = "decrypt_helper('" + text + "'," + max + "," + delay + "," + new_char + "," + max + ");"
    	if(runs_left > 0){
    		setTimeout(rerun, delay);
    		}
    	else{
    		if (charvar < text.length){
    			setTimeout(next_char, Math.round(delay*(charvar+3)/(charvar+1)));
    			}
    		else
    			{
    			done = 1;
    			}
    		}
    	}
    }
    
    if (document.all||document.getElementById)
    statusIn(thetitle)
    </SCRIPT>

  3. #3
    umh.....dove devo mettere il testo del title?

  4. #4
    Utente di HTML.it
    Registrato dal
    Apr 2000
    Messaggi
    938
    Ciao


    Vedi il movimento di quello che è scritto tra <title> e </title>




    Massimo

  5. #5
    ho uno script nel mio sito scaricatelo

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.