Axel Richter: Romantik-Scripten

Beitrag lesen

Hallo,

Für solche romantischen Scripten ist bei uns Wahsaga zuständig.

Wir können ja eine Sammlung beginnen.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Herzschlag</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
body {font-size:101%; background-color:#FFF;}
#IlU {position:relative; top:50px; margin:0; color:#F00; font-family:monospace; font-size:100px; text-align:center;}
-->
</style>
<script type="text/javascript">
<!--
function beat() {
  var h = document.getElementById("IlU");
  h.style.fontSize = (parseInt(h.style.fontSize, 10)==100)?"200px":"100px";
  h.style.top = (parseInt(h.style.top, 10)==50)?"0px":"50px";
}
//-->
</script>
</head>
<body onload="window.setInterval('beat()', 1000);">
<p id="IlU">&hearts;</p>
</body>
</html>

viele Grüße

Axel