Parametri modificabili: la dimensione del testo (alla riga .dhtmlText { font-family: "Times New Roman", Times, serif; font-size: 28pt; font-style: normal; font-weight: bold; color: #000080; position:absolute; left:300; top:5; z-index:3; visibility:hidden}) nonché il colore del testo. Modificabile anche la velocità d'arrivo del testo (alla riga setTimeout('slidel2(' + from + ',' + to + ',' + from1 +',' + to1 + ')', 25); ) e la sua posizione (alle righe layer2.left = (from -= 7); e layer2.top = (from1 -= 4); )
AUTORI: modified and explained from www.webmasterpaolo.com
RITORNA ALLA PAGINA DELLE JAVASCRIPT
RITORNA ALLA PAGINA DEGLI EFFETTI SUL TESTO
Lo script da inserire in html
<style type="text/css">
<!--
.dhtmlText { font-family: "Times New Roman", Times, serif; font-size: 28pt; font-style: normal; font-weight: bold; color: #000080; position:absolute; left:300; top:5; z-index:3; visibility:hidden}
-->
</style>
</head>
<body onLoad="startme()" >
<center>
<script language=JavaScript>
<!--
var isNS = (navigator.appName == "Netscape");
var HIDDEN = (isNS) ? 'hide' : 'hidden';
var VISIBLE = (isNS) ? 'show' : 'visible';
function startme(){
//position de départ horizontale
layer2.left = 680;
//position de départ verticale
layer2.top = 380;
showObject(layer2);
//position de départ horizontale, position d'arrivée horizontale, position de départ verticale, position d'arrivée verticale
slidel2(680,10,380,5);
}
function slidel2(from,to,from1,to1) {
if (from > to) {
layer2.left = (from -= 7);
}
if (from1 > to1) {
layer2.top = (from1 -= 4);
}
if ((from > to) || (from1 > to1)){
setTimeout('slidel2(' + from + ',' + to + ',' + from1 +',' + to1 + ')', 25);
}
}
function showObject(object) {
object.visibility = VISIBLE;
}
function hideObject(object) {
object.visibility = HIDDEN;
}
//-->
</script>
</p>
<div id="layer2" class="dhtmlText"> Questo testo arriva dal basso per posizionarsi in alto a sinistra</div>
<script language="JavaScript">
var layer2 = (isNS) ? document.layer2 : document.all.layer2.style;
</script>