Testo fluttuante
Regolando le dimensioni del testo è possibile creare titoli... fluttuanti
Aggiungete questo script nel tag
<Head> della pagina:
<SCRIPT LANGUAGE="JavaScript">
<!--
function vague(source)
{
var h = 7
var temp = ""
var direction = 1
for (var i = 0;i <= source.length; i++)
{
temp+="<FONTSIZE="+h+">"+source.charAt(i)+"</FONT>"
if (h == 7)
direction = -1
else
if (h == 1)
direction = 1
h += direction
}
return temp
}
//-->
</SCRIPT>
Nel tag <Body>,
posizionate questo tratto di codice nel punto in cui desiderate inserire il
testo. Sostituite semplicemente la stringa
your text here con il
testo da visualizzare con effetto fluttuante:
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write(vague("your text
here"))
//-->
</SCRIPT>
Ottenete quanto segue:
a beautiful
wave-shapped
text!