Cero
come hai fatto che serivrebbe anche a me una cosa molto simile?
ecco qui il codice:
Codice:
var msg = "Quello che vuoi far scrivere scorrevole----- ";
var newtext="a";
function scrolla() {
if(msg.length > 100) {
newtext = "Latest news: " + msg.substring(0,100);
msg = msg + msg.charAt(0);
msg = msg.substring(1,msg.length);
}
else {
newtext = "Latest news: " + msg.substring(0,msg.length);
msg = msg + msg.charAt(0);
msg = msg.substring(1,msg.length);
}
var div = document.getElementById("newstop");
div.firstChild.nodeValue = newtext;
window.setTimeout("scrolla()",150);
}
newstop nome della div in cui scrivere...
se non capisci altre cose chiedi...