Originariamente inviato da Gluck74
invece di usare una textarea, usa un qualsiasi tag contenitore di testo:

div, span, p.
Codice PHP:
<form name="change"
                   <
span class="test" name="descript" wrap="virtual" id="descript"
             </
form
mentre nel javascript:

Codice PHP:
document.change.descript.innerText message[text]; 

Ciao! ho midificato così:

Pagina Html:

Codice PHP:
<html
<
head
    <
script type="text/javascript" src="alt.js"></script> 
</head> 
<body> 
<form name="change"> 
                   <span class="test" name="descript" wrap="virtual" id="descript"> 
             </form>

</body> 
</html> 
Pagina java

Codice PHP:
/* This script and many more are available free online at 
The JavaScript Source!! [url="http://javascript.internet.com"][url]http://javascript.internet.com[/url][/url] 
Created by: Sandeep Gangadharan | [url="http://sivamdesign.com/scripts/"][url]http://sivamdesign.com/scripts/[/url][/url] */ 
var text 0

var 
message=new Array(); 
  
message[0] = "Benvenuti su HTML.it" 
  
message[1] = "Sezione Javascript" 
  
message[2] = "Scaricate centinaia di script" 
  
message[3] = "Arrivederci..." 

function changeText() { 
  if (
message.length 0) { 
    
document.change.descript.innerText=message[text];
    
text++; 
  } 
  if (
text == 4) {text 0; }  // change the # 4 at the left to the maximum # of message lines you want included 
    
window.setTimeout("changeText()"3500); }  // change the # on the left to adjust the speed of the 
                                               // scroll. The smaller the # the faster the speed 

// Multiple onload function created by: Simon Willison 
// [url="http://simon.incutio.com/archive/2004/05/26/addLoadEvent"][url]http://simon.incutio.com/archive/20...26/addLoadEvent[/url][/url] 
function addLoadEvent(func) { 
  var 
oldonload window.onload
  if (
typeof window.onload != 'function') { 
    
window.onload func
  } else { 
    
window.onload = function() { 
      if (
oldonload) { 
        
oldonload(); 
      } 
      
func(); 
    } 
  } 


addLoadEvent(function() { 
  
changeText(); 
}); 
Ma non funziona mi da errore alla riga 15 dello script java mi dice che:

Codice PHP:
document.change.descript 
E' nullo o non'è un oggetto!!
come mai??