Menu
Hi guys,
Bit of a newbie here, Just wondering if anyone could help me out here.
when i click on a image it opens pop-up and plays a mp3 file (it doesn’t open a html page) and then i want to close it after ‘x’ seconds. Now, I’ve tried the setTimeout function but haven’t seemed to get it to work.
Any suggestions???
code so far:
<script type=”text/javascript”>
function PopWin(urlName) {
var popup = window.open(“”, “”,width=10,height=10);
popup.location = urlName;
var file = urlname;
}
</script>
</head>
<body>
<a href=”javascript?opWin(‘mp3file.mp3’)”><img src=”1.JPG” width=”192″ height=”216″ border=”0″>
Thanks