Toto funguje, zakomponuj si to do stránky:
Kód:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="generator" content="PSPad editor, www.pspad.com">
<title>Meniaci sa obrázok</title>
<script language="JavaScript">
function zmenObrazok(){
// tu si musis nastavit spravnu cestu - cestu do priecinku v ktorom mas
// ulozene tie obrazky
var cesta = "http://www.domena.sk/cesta/k/priecinku/";
var obrazky = ['obr1.jpg', 'obr2.jpg', 'obr3.jpg'];
var obrazok = obrazky[Math.floor(Math.random() * obrazky.length)];
var el = document.getElementById('premenlivyObrazok');
//alert(el.src);
el.src = cesta + obrazok;
//alert(el.src);
}
// toto cislo udava interval obnovovania v milisekundach
window.setInterval("zmenObrazok()", 1000);
</script>
</head>
<body>
<h1>Mení sa</h1>
<img src="obr1.jpg" id="premenlivyObrazok" border="0" onclick="zmenObrazok()">
</body>
</html>
_________________
A. S. Tanenbaum píše:
The terms LF, MF, and HF refer to low, medium, and high frequency, respectively. Clearly, when the names were assigned, nobody expected to go above 10 MHz, so the higher bands were later named the Very, Ultra, Super, Extremely, and Tremendously High Frequency bands. Beyond that there are no names, but Incredibly, Astonishingly, and Prodigiously high frequency (IHF, AHF, and PHF) would sound nice.