Kód: Vybrať všetko
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title>Skúška javascriptu</title>
<meta name="robots" content="index,follow">
<meta http-equiv="imagetoolbar" content="no">
<meta name="publisher" content="Grim">
<meta name="author" content="Grim">
<meta name="copyright" content="Grim, 2011">
<meta http-equiv="Content-Style-Type" content="text/css">
</head>
<style>
body {
background-image: url("back.png");
background-position: center top;
background-repeat: repeat-x;
background-attachment: scroll;
background-color: #ffffff;
color: black;
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size: 13px;
overflow-y: scroll;
overflow-x: visible;
}
a:link {color: black;}
a:visited {color: black;}
a:active {color: black;}
a:hover {color: black;}
a {text-decoration: underline;}
a:hover {text-decoration: none;}
p {text-indent: 0px; text-align: justify; width: 600px;}
.image {
opacity: 1.0;
filter:alpha (opacity=100);
}
.image2 {
opacity: 0.0;
filter:alpha (opacity=0);
z-index: -1;
position: absolute; left: 0px; top: 0px;
}
</style>
<script language="javascript" type="text/javascript">
function skuska() {
var c = 1;
do {
window.setInterval("obr2.style.filter='"+c+"'", 50);
c++;
}
while(c<101);
}
</script>
<body onLoad="skuska()">
<img src="1.png" id="obr1" alt="image" class="image">
<img src="2.png" id="obr2" alt="image" class="image2">
</body>