Mam takie małe pytanie - poniżej strona działa bez zarzutu
CODE
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<script >
var opacity = 0;
function fadein()
{
var fadeImg = document.getElementById('fadeImg');
browserOpacity = opacity / 1000;
fadeImg.style.opacity = browserOpacity;
if(opacity < 1000)
{
initiate();
}
}
function initiate()
{
opacity++;
setInterval("fadein()", 40);
}
initiate();
</script>
</head>
<body>
<img id="fadeImg" src="images/image.jpg" style="opacity:0.0; filter:alpha(opacity=0)"/>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<script >
var opacity = 0;
function fadein()
{
var fadeImg = document.getElementById('fadeImg');
browserOpacity = opacity / 1000;
fadeImg.style.opacity = browserOpacity;
if(opacity < 1000)
{
initiate();
}
}
function initiate()
{
opacity++;
setInterval("fadein()", 40);
}
initiate();
</script>
</head>
<body>
<img id="fadeImg" src="images/image.jpg" style="opacity:0.0; filter:alpha(opacity=0)"/>
</body>
</html>
Natomiast w takiej postaci
CODE
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<script type="text/javascript" src="skrypt.js"></script>
</head>
<body>
<img id="fadeImg" src="images/image.jpg" style="opacity:0.0; filter:alpha(opacity=0)"/>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<script type="text/javascript" src="skrypt.js"></script>
</head>
<body>
<img id="fadeImg" src="images/image.jpg" style="opacity:0.0; filter:alpha(opacity=0)"/>
</body>
</html>
niestety nie działa.
za pomoc z góry dzieki,
pozdrawiam,