Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2006
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question popup media player

    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');">

  • #2
    New Coder
    Join Date
    Oct 2006
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no one?

  • #3
    Registered User
    Join Date
    Oct 2004
    Posts
    592
    Thanks
    0
    Thanked 1 Time in 1 Post
    sorry busy

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •