Misterq
02-20-2004, 07:44 AM
Hi
I am trying to create a popup window withing another popup window.
The code so far is
<html>
<head><title></title>
<script type="text/javascript">
<!--
closetime=0;
function Start(URL){
windowprops="directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,width=250,heig ht=300,left=25,screenX=25,top=25,screenY=25";
preview=window.open(URL,"popWin",windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}
function popupWin(){
url="defaultmusicplayer.html"
delay=0;
timer = setTimeout("Start(url)", delay*1000);
window.status="Mr Q Music";
}
//-->
</script>
</head>
<body>
<a href="javascript:popupWin();">
<div align="center"><font face="Trebuchet MS" class="fsx05" color="#ffffff"><B>MUSIC:</B></font><br>
</span>
</div>
</a>
</body>
<br>
<div align="center">
<font face="Trebuchet MS" class="fsx03" color="#ffffff">A selection of Mr Q's tracks, including <i>Flame in the Dark</i> and <i>Fate</i>.<br></font></div>
</div>
</html>
When I click on the resulting link, the new page opens in the existing page (ie the first popup, not shown here). I'm guessing it's to do with the same name "function popupWin()" used in both cases but, as I'm quite a novice, I don't know what to change to create the desired effect.
Many thanks in advance
Mr Q
I am trying to create a popup window withing another popup window.
The code so far is
<html>
<head><title></title>
<script type="text/javascript">
<!--
closetime=0;
function Start(URL){
windowprops="directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,width=250,heig ht=300,left=25,screenX=25,top=25,screenY=25";
preview=window.open(URL,"popWin",windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}
function popupWin(){
url="defaultmusicplayer.html"
delay=0;
timer = setTimeout("Start(url)", delay*1000);
window.status="Mr Q Music";
}
//-->
</script>
</head>
<body>
<a href="javascript:popupWin();">
<div align="center"><font face="Trebuchet MS" class="fsx05" color="#ffffff"><B>MUSIC:</B></font><br>
</span>
</div>
</a>
</body>
<br>
<div align="center">
<font face="Trebuchet MS" class="fsx03" color="#ffffff">A selection of Mr Q's tracks, including <i>Flame in the Dark</i> and <i>Fate</i>.<br></font></div>
</div>
</html>
When I click on the resulting link, the new page opens in the existing page (ie the first popup, not shown here). I'm guessing it's to do with the same name "function popupWin()" used in both cases but, as I'm quite a novice, I don't know what to change to create the desired effect.
Many thanks in advance
Mr Q