ik wil de dite bar voornamalijk gaan gebruikten voor een rando image en een paar banners
http://www.wakeskating.nl/phpBB3/index.php
de banners werken
de randdom pics niet, het zijn 2 javascriptjes die ik wil combineren
deze werkt:
Code: Selecteer alles
<script language="JavaScript"><!--
//Javascript Created by Computerhope http://www.computerhope.com
//store the quotations in arrays
images = new Array(4);
images[0] = "<a href = "javascript:PopUp('http://www.wakeskating.nl/images/img01.jpg')"<img src='http://www.wakeskating.nl/images/img01_thumb.jpg' alt='Clic to enlarge'></a>";
images[1] = "<a href = "javascript:PopUp('http://www.wakeskating.nl/images/img02.jpg')"<img src='http://www.wakeskating.nl/images/img02_thumb.jpg' alt='Clic to enlarge'></a>";
images[2] = "<a href = "javascript:PopUp('http://www.wakeskating.nl/images/img03.jpg')"<img src='http://www.wakeskating.nl/images/img03_thumb.jpg' alt='Clic to enlarge'></a>";
images[3] = "<a href = "javascript:PopUp('http://www.wakeskating.nl/images/img04.jpg')"<img src='http://www.wakeskating.nl/images/img04_thumb.jpg' alt='Clic to enlarge'></a>";
images[4] = "<a href = "javascript:PopUp('http://www.wakeskating.nl/images/img05.jpg')"><img src='http://www.wakeskating.nl/images/img05_thumb.jpg' alt='Clic to enlarge'></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
//done
// --></script>
maar ik wil een pop-up
Code: Selecteer alles
<script language="javascript">
function PopUp(ref)
{
var strFeatures="toolbar=no,status=no,menubar=no,location=no"
strFeatures=strFeatures+",scrollbars=yes,resizable=yes,height=640,width=640"
newWin = window.open(ref,"TellObj",strFeatures);
newWin.opener = top;
}
</script>
het 1e script heb ik al aangepast voor de pop-up maar het werkt niet iemand enig idee waar ik moet zijn voor hulp??