Un petit script astucieux peut, sous Internet Explorer ou Netscape (4.x), faire vibrer l'écran de votre navigateur. Cliquez ici pour vérifier cet effet !
Insérer le script ci-dessous dans la section "HEAD" de votre document et insérer un événement onload (l'associer à une alerte éventuellement) :
<SCRIPT LANGUAGE="JavaScript">
function vibre(x) {
if (top.moveBy) {
for (a = 10; a > 0; a--) {
for (b = x; b > 0; b--) {
top.moveBy(0,a);
top.moveBy(a,0);
top.moveBy(0,-a);
top.moveBy(-a,0);
}}}}
</SCRIPT>
<body background="images.jpg vlink="#800000"
onLoad="vibre(4);alert('Brrrr\,
il fait froid ici...')">
Vous pouvez employer ce script soit en "OnLoad" soit en "OnClick" comme dans cet exemple...
<a href="javascript://" onClick="vibre(4);alert('Brrrr\, il fait froid ici...')">