It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

I am trying to create a pop up window for video

I am trying to create a pop up window for video

Postby Dgriff on Sat Aug 07, 2010 12:15 pm

Hi
I am trying to create a pop up window to view a video stream but it's not working. When I click on the image the pop up window doesn't appear. I have an oscMax site (this is oscommerce with more bells and whistles).
This is my html code on my index page:
Code: Select all
<td align="right" valign="middle"><a href="javascript:openNewWindow_01_01();"><img src="templates/my_custom/images/play_video.jpg" alt="Video Tutorial." border="0" width="50" height="20"></a></td>


And this is my attempt at the javascript. I inserted it into my stylesheet but I'm not sure if this is the correct place for it.
Code: Select all
</style>
<script language="Javascript" type="text/javascript">
<!--
function openNewWindow_01_01() {
window.open('http://buildawebsite.ie/store/catalog/flix/01_01/01_01.html', 'name', 'height=400,resizable=yes,width=600');
}
</script>

Any suggestions would be a great help. Thanks.
Dgriff
 
Posts: 7
Joined: Wed Apr 28, 2010 11:05 am

Who is online

Users browsing this forum: No registered users and 3 guests