Nieuw lid |
|
Realtec, ik heb de regel aangepast zoals jij omschrijft maar de text verdwijnt zodra de slide show start.
Ik heb inmiddels wel een beetje zitten puzzelen.
Heb dit nu gemaakt.
Alleen hoe krijg ik dit nu fadend.
<head>
<title></title>
<script type="text/javascript">
var ImgAry=['headerpic1.jpg','headerpic2.jpg','headerpic3.jpg'];
// preload the images
for (var img,z0=0;z0<ImgAry.length;z0++){
img=ImgAry[z0];
ImgAry[z0]=new Image();
ImgAry[z0].src=img;
}
var cnt=0,to=null;
function Rotate(){
cnt=++cnt%ImgAry.length;
document.getElementById('t1').style.backgroundImage='url('+ImgAry[cnt].src+')';
to=setTimeout(function(){ Rotate(); },2000);
}
</script>
</head>
<body onload="Rotate();">
<table id="t1" width="528" border="2" cellspacing="4" cellpadding="0" align="center" background="headerpic1.jpg" border="0" height="362">
<tr>
<td>text</td>
</tr>
</table>
</body>
<script type="text/javascript"> var ImgAry=['headerpic1.jpg','headerpic2.jpg','headerpic3.jpg']; // preload the images for (var img,z0=0;z0<ImgAry.length;z0++){ img=ImgAry[z0]; ImgAry[z0]=new Image(); ImgAry[z0].src=img; } var cnt=0,to=null; function Rotate(){ cnt=++cnt%ImgAry.length; document.getElementById('t1').style.backgroundImage='url('+ImgAry[cnt].src+')'; to=setTimeout(function(){ Rotate(); },2000); } <body onload="Rotate();"> <table id="t1" width="528" border="2" cellspacing="4" cellpadding="0" align="center" background="headerpic1.jpg" border="0" height="362">
|