...

View Full Version : popup media player



this me
10-29-2006, 05:53 PM
hi all, i am trying to have my media player open in a popup window, but i am haveing problems with the code can someone help?
this is the player code
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>
<div align=center>
<SELECT id=cancion onchange=document.all.music.filename=document.all.cancion.value; size=1 name=video>
<OPTION selected>::::::::::::: Choose Your Song Here :::::::::::::</OPTION>

<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>


</SELECT><BR>
<OBJECT id=music height=404 width=600 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95>
<PARAM NAME="AutoStart" VALUE="-1">
<PARAM NAME="Balance" VALUE="0">
<PARAM NAME="DisplaySize" VALUE="0">
<PARAM NAME="Filename" VALUE="">
<PARAM NAME="Mute" VALUE="0">
<PARAM NAME="SelectionStart" VALUE="-1">
<PARAM NAME="SelectionEnd" VALUE="-1">
<PARAM NAME="ShowControls" VALUE="-1">

</OBJECT>
</div>
</body>

</html>

and this is the code for the button i am trying to make it work with the above code

<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
<!--
var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*
((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/1.50:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft
+ ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}
// -->
</script>
<input type="button" name="B1" value="Video" onClick="NewWindow
('','popupgen','370','270','center','front');">

this me
10-30-2006, 10:28 PM
no one?:eek:

iota
11-04-2006, 02:57 PM
sorry busy:)

search in my JavaScript Library Archive.
plz look at my sig.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum