I have a simple page with a small table in it. It is a test page where I want people to click on a link, and that link will pop open a new smaller window and play a flash document.
I have the coding pretty well, but when I have more than one item on the page, clicking on any link causes the last script listed to execute, instead of the correct one.
Please check the source at
I have checked the syntax several times, and I cannot find anything wrong.
Attached is a txt with some of the source in it.
<p align="center">
<FONT SIZE="2" FACE="helvetica,arial">
You must have the
<a target="new" href="http://www.macromedia.com/software/flashplayer/">Shockwave
Flash</a> plug-in to view these animations.
</FONT>
</p>
<div align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="77%" id="AutoNumber2">
<tr>
<td width="51%">
<script>
function openpopup(){
var popurl="Files/alqaeda.swf"
winpops=window.open(popurl,"","width=800,height=600,")
}
</script>
<a href="javascript
penpopup()">Al Qaeda Handbook</a></td>
<td width="49%">
<script>
function openpopup(){
var popurl="Files/osama_sissyfight.swf"
winpops=window.open(popurl,"","width=800,height=600,")
}
</script>
<a href="javascript
penpopup()">Osama bin Laden Fight</a></td>
<td width="49%">
</tr>
<tr>
<td width="51%">
<script>
function openpopup(){
var popurl="Files/humor_bin.swf"
winpops=window.open(popurl,"","width=800,height=600,")
}
</script>
<a href="javascript
penpopup()">Osama song starring "GW"</a></td>
<td width="49%">
<script>
function openpopup(){
var popurl="Files/osama_video.swf"
winpops=window.open(popurl,"","width=800,height=600,")
}
</script>
<a href="javascript
penpopup()">Osama bin Laden's "last" video</a></td>
</tr>
<tr>
<td width="51%">
<script>
function openpopup(){
var popurl="Files/finding_bin_laden.swf"
winpops=window.open(popurl,"","width=800,height=600,")
}
</script>
<a href="javascript
penpopup()">Finding Osama bin Laden</a></td>
</td>
<td width="49%"><a href="Files/getosama.exe">Download and "get"
Osama bin Laden</a></td>
</tr>
<tr>
<td width="51%"><a href="Files/Dubya.avi">"Dubya" video</a>
(Note: 5Mb File..Be Patient!)</td>
<td width="49%"> </td>
</tr>
</table>
</center>
</div>
<p> </p>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="50%"><script>
<a href="javascript
penpopup()">Back Street Boys Parody</a></td>
function openpopup(){
var popurl="Files/bsbgay.swf"
winpops=window.open(popurl,"","width=800,height=600,")
}
</script>
<td width="50%"> </td>
</tr>
<tr>
<td width="50%"> </td>
<td width="50%"> </td>
</tr>
</table>
<p align="center">
</p>
<p align="center">
</p>
<p align="center"> </p>
<p align="center"></p>
<p align="center"></p>
</body>
</html>
Thanks for the help
I have the coding pretty well, but when I have more than one item on the page, clicking on any link causes the last script listed to execute, instead of the correct one.
Please check the source at
I have checked the syntax several times, and I cannot find anything wrong.
Attached is a txt with some of the source in it.
<p align="center">
<FONT SIZE="2" FACE="helvetica,arial">
You must have the
<a target="new" href="http://www.macromedia.com/software/flashplayer/">Shockwave
Flash</a> plug-in to view these animations.
</FONT>
</p>
<div align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="77%" id="AutoNumber2">
<tr>
<td width="51%">
<script>
function openpopup(){
var popurl="Files/alqaeda.swf"
winpops=window.open(popurl,"","width=800,height=600,")
}
</script>
<a href="javascript

<td width="49%">
<script>
function openpopup(){
var popurl="Files/osama_sissyfight.swf"
winpops=window.open(popurl,"","width=800,height=600,")
}
</script>
<a href="javascript

<td width="49%">
</tr>
<tr>
<td width="51%">
<script>
function openpopup(){
var popurl="Files/humor_bin.swf"
winpops=window.open(popurl,"","width=800,height=600,")
}
</script>
<a href="javascript

<td width="49%">
<script>
function openpopup(){
var popurl="Files/osama_video.swf"
winpops=window.open(popurl,"","width=800,height=600,")
}
</script>
<a href="javascript

</tr>
<tr>
<td width="51%">
<script>
function openpopup(){
var popurl="Files/finding_bin_laden.swf"
winpops=window.open(popurl,"","width=800,height=600,")
}
</script>
<a href="javascript

</td>
<td width="49%"><a href="Files/getosama.exe">Download and "get"
Osama bin Laden</a></td>
</tr>
<tr>
<td width="51%"><a href="Files/Dubya.avi">"Dubya" video</a>
(Note: 5Mb File..Be Patient!)</td>
<td width="49%"> </td>
</tr>
</table>
</center>
</div>
<p> </p>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="50%"><script>
<a href="javascript

function openpopup(){
var popurl="Files/bsbgay.swf"
winpops=window.open(popurl,"","width=800,height=600,")
}
</script>
<td width="50%"> </td>
</tr>
<tr>
<td width="50%"> </td>
<td width="50%"> </td>
</tr>
</table>
<p align="center">
</p>
<p align="center">
</p>
<p align="center"> </p>
<p align="center"></p>
<p align="center"></p>
</body>
</html>
Thanks for the help
Comment