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.
Page 13 of 50 FirstFirst ... 3111213141523 ... LastLast
Results 181 to 195 of 742
  1. #181
    New Coder
    Join Date
    Sep 2005
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I just noticed before reading your last reply I have been using 2 different classid's.

    I have not tried your last post code yet. I have some questions first about what classid affects? reason I ask this is because I was trying to use your drop down list code you provided several posts earlier and my full screen stopped working. I did get this to work perfect before reading your last post and will share once I digest whats going on first. The one I believe you used in the prior post for the drop down list is : classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95
    When I use the one that works with my full screen code (CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6) your drop down list doesnt work. Unless i am missing something.
    Sorry, but I am trying to absorb alot at once here.

    I will only be using this code for IE only, ,and locally.

    Thanks for the super help!!

    I almost have it all peiced together but this classid is maybe a hangup?

    Also can the ID= be whatever you wish?

  2. #182
    New Coder
    Join Date
    Sep 2005
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Your last code still opens a IE browser window.
    Below is code that does exactly what I want except for it doesnt start automatically but I can work with that.
    Got rid of the video.asx file also.
    When I click the FULL button it opens a WMP window and ESC or double click closes it and returns to the HTML browser, AND the media file plays without interuption perfectly! Finally! (Other buttons have wrong names but work too)


    Code:
    <HTML>
    <HEAD>
    </HEAD>
    <BODY>
    <OBJECT ID="Player" height="240" width="320"
      CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
    CODEBASE= 
    
    "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1
    
    ,52,701" width=320 height=240 standby="Loading Microsoft Windows Media Player 
    
    components..." type="application/x-oleobject">
    <PARAM NAME="FileName"  VALUE="tc4014-v.wmv">
    <PARAM NAME="AutoStart" Value="true">
    <PARAM NAME="ShowControls" Value="true">
    <Embed type="application/x-mplayer2"
        pluginspage=
        "http://www.microsoft.com/Windows/MediaPlayer/"
        src="tc4014-v.wmv"
        Name=Player
        AutoStart=1
        Width=320
        Height=240
        autostart=1
        ShowControls=1
      </embed>
    </OBJECT>
    <INPUT TYPE="BUTTON" NAME="BtnPlay" VALUE="true" OnClick="StartMeUp()">
    <INPUT TYPE="BUTTON" NAME="BtnStop" VALUE="Stop" OnClick="ShutMeDown()">
    <INPUT TYPE="BUTTON" NAME="Btnfull" VALUE="FULL" OnClick="screenfull()">
    <SCRIPT>
    <!--
    
    function StartMeUp ()
    {
        Player.URL = "tc4014-v.wmv";
    }
    
    function screenfull ()
    {
    /* Check to be sure the player is playing. */
                   if (Player.playState == 3) 
                      Player.fullScreen = 'true';
    }
    
    function ShutMeDown ()
    {
        Player.controls.stop();
    }
    
    -->
    </SCRIPT>
    
    </BODY>
    </HTML>
    This code works alone and would like to add it to the above code so it works in unison. When I do this neither one works.

    Code:
    <html>
    <body>
    
    
    <div align=center> 
    <SELECT id=cancion onchange=document.all.music.filename=document.all.cancion.value; size=1 name=Music> 
       <OPTION selected>::::::::::::: Choose Your Song Here :::::::::::::</OPTION>        
          <OPTION value=s292.wma>Jon Courson - Song Title</OPTION> 
          <OPTION value=tc4014-v.wmv>Jon Couson Vid - Song Title</OPTION> 
          <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION> 
          <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION> 
          <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION> 
          <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION> 
          <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION> 
          <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION> 
          <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION> 
          <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION> 
          <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION> 
          <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION> 
          <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION> 
          <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION> 
          <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION> 
          <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION> 
          <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION> 
          <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</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=480 width=435 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95> 
       <PARAM NAME="AudioStream" VALUE="-1">
    <PARAM NAME="AutoSize" VALUE="-1">
    <PARAM NAME="AutoStart" VALUE="TRUE">
    <PARAM NAME="AnimationAtStart" VALUE="-1">
    <PARAM NAME="AllowScan" VALUE="-1">
    <PARAM NAME="AllowChangeDisplaySize" VALUE="-1">
    <PARAM NAME="AutoRewind" VALUE="0">
    <PARAM NAME="Balance" VALUE="10">
    <PARAM NAME="BaseURL" VALUE="">
    <PARAM NAME="BufferingTime" VALUE="5">
    <PARAM NAME="CaptioningID" VALUE="">
    <PARAM NAME="ClickToPlay" VALUE="-1">
    <PARAM NAME="CursorType" VALUE="0">
    <PARAM NAME="CurrentPosition" VALUE="-1">
    <PARAM NAME="CurrentMarker" VALUE="0">
    <PARAM NAME="DefaultFrame" VALUE="">
    <PARAM NAME="DisplayBackColor" VALUE="65535">
    <PARAM NAME="DisplayForeColor" VALUE="16744448">
    <PARAM NAME="DisplayMode" VALUE="0">
    <PARAM NAME="DisplaySize" VALUE="2">
    <PARAM NAME="Enabled" VALUE="-1">
    <PARAM NAME="EnableContextMenu" VALUE="-1">
    <PARAM NAME="EnablePositionControls" VALUE="-1">
    <PARAM NAME="EnableFullScreenControls" VALUE="0">
    <PARAM NAME="EnableTracker" VALUE="-1">
    <PARAM NAME="InvokeURLs" VALUE="-1">
    <PARAM NAME="Language" VALUE="-1">
    <PARAM NAME="Mute" VALUE="0">
    <PARAM NAME="PlayCount" VALUE="1">
    <PARAM NAME="PreviewMode" VALUE="0">
    <PARAM NAME="Rate" VALUE="1">
    <PARAM NAME="SAMILang" VALUE="">
    <PARAM NAME="SAMIStyle" VALUE="">
    <PARAM NAME="SAMIFileName" VALUE="">
    <PARAM NAME="SelectionStart" VALUE="-1">
    <PARAM NAME="SelectionEnd" VALUE="-1">
    <PARAM NAME="SendOpenStateChangeEvents" VALUE="1">
    <PARAM NAME="SendWarningEvents" VALUE="-1">
    <PARAM NAME="SendErrorEvents" VALUE="-1">
    <PARAM NAME="SendKeyboardEvents" VALUE="0">
    <PARAM NAME="SendMouseClickEvents" VALUE="0">
    <PARAM NAME="SendMouseMoveEvents" VALUE="0">
    <PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">
    <PARAM NAME="ShowCaptioning" VALUE="0">
    <PARAM NAME="ShowControls" VALUE="TRUE">
    <PARAM NAME="ShowAudioControls" VALUE="-1">
    <PARAM NAME="ShowDisplay" VALUE="-1">
    <PARAM NAME="ShowGotoBar" VALUE="0">
    <PARAM NAME="ShowPositionControls" VALUE="-1">
    <PARAM NAME="ShowStatusBar" VALUE="-1">
    <PARAM NAME="ShowTracker" VALUE="-1">
    <PARAM NAME="TransparentAtStart" VALUE="0">
    <PARAM NAME="VideoBorderWidth" VALUE="5">
    <PARAM NAME="VideoBorderColor" VALUE="4227327">
    <PARAM NAME="VideoBorder3D" VALUE="0">
    <PARAM NAME="Volume" VALUE="-150">
    <PARAM NAME="WindowlessVideo" VALUE="1">
        pluginspage=
        "http://www.microsoft.com/Windows/MediaPlayer/"
        Name=MediaPlayer
        AutoStart=0
        Width=480
        Height=435
        autostart=1
        ShowControls=1
      </embed>
    </OBJECT>
    </div>
    
    
    
    </body>
    </html>
    It's probably one of the parameters or the CLASSID. i tried different ones and still didnt get it to work. I'm sure it's simple but I'm not getting it.

    I thought I could just add the code from above between the <SELECT> tags into the first code and have both work. Of course I changed this code

    Code:
    <SELECT id=cancion onchange=document.all.music.filename=document.all.cancion.value; size=1 name=Music>
    TO: ("music" TO "player")

    Code:
    <SELECT id=cancion onchange=document.all.player.filename=document.all.cancion.value; size=1 name=Music>

  3. #183
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You are using the really outdated script. The classid tell the browser what media player to use therefore different parameters need to be used.
    Code:
    onchange=document.all.music.filename=document.all.cancion.value;
    The above pulls the value from the select menu and places it in the url parameter. If you id of the player is music then leave this alone, if you changed the id then you would have to change the reference to music to whatever id you changed it to. You might want to put the name as well. Your current object code has an id of player so change this
    Code:
    onchange=document.all.music.filename=document.all.cancion.value;
    to this
    Code:
    onchange="document.all.player.url=document.all.cancion.value;"
    Again you are using the wrong classid for the parameters you are using. Use the last code I posted. Just add id="player" name="player" to it and it should work in conjuction with the select menu. I'm pretty sure IE needs the name to access the object.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  4. #184
    New Coder
    Join Date
    Sep 2005
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    please know I'm trying to figure this out without help... but still new to me. sorry.

    I did try using the id= player and name = player. Will try again.

    Secondly I am using CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6
    which from all I can find on MSDN is the latest for WMP 10. Is this wrong?
    The one you used for your drop down selection code is:
    classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95
    which I read is for WMP 6 or 6.4?
    There are a LOT of PARAM's in your drop down code on the first page of this thread.
    I'm only using 3 PARAM's for my Fullscreen code.
    Not sure if your drop down PARAM's are all needed and suspect some are not compatible with the CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6?

    Am i right?

  5. #185
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    No they aren't all needed. If you indeed did read the whole thread you would know that I have trimmed my original to something less bulkier. Okay I am now repeating myself (something I don't like doing), some of the parameters that are in the original code will not work with the newest classid. Please refer the the most recent code I posted. It IS the media code you should use.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  6. #186
    New Coder
    Join Date
    Sep 2005
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'll try to sift through the 13 pages posted and figure it out. no prob.

    Here is the combined code. The Full screen I was trying to accomplish works great. I guess I am trying to get too fancy with the drop down list. The drop down list doesnt do anything.

    If it's painfully obvious please let me know what PARAM is missing or what I did wrong, otherwise I'll keep working on it until I figure it out.

    thanks again!

    Code:
    <HTML>
    <HEAD>
    </HEAD>
    <BODY>
    
    <div align=center> 
    <SELECT id=cancion onchange=document.all.player.filename=document.all.cancion.value; size=1 name="player"> 
       <OPTION selected>::::::::::::: Choose Your Song Here :::::::::::::</OPTION>        
          <OPTION value=s292.wma>Jon Courson - Song </OPTION> 
          <OPTION value=tc4014-v.wmv>Jon Couson - Video</OPTION> 
    </SELECT>
    
    <BR>
    
    
    <OBJECT ID="Player" height="240" width="320" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
    CODEBASE= "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" width=320 height=240 standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
    <PARAM NAME="AutoStart" Value="true">
    <PARAM NAME="ShowControls" Value="true">
    <Embed type="application/x-mplayer2"
        pluginspage=
        "http://www.microsoft.com/Windows/MediaPlayer/"
        Name="Player"
        AutoStart=1
        Width=320
        Height=240
        ShowControls=1
      </embed>
    </OBJECT>
    
    <br>
    <INPUT TYPE="BUTTON" NAME="BtnPlay" VALUE="PLAY" OnClick="StartMeUp()">
    <INPUT TYPE="BUTTON" NAME="BtnStop" VALUE="STOP" OnClick="ShutMeDown()">
    <INPUT TYPE="BUTTON" NAME="Btnfull" VALUE="FULL" OnClick="screenfull()">
    <SCRIPT>
    <!--
    function StartMeUp ()
    {
        Player.URL = "tc4014-v.wmv";
    }
    
    function screenfull ()
    {
    /* Check to be sure the player is playing. */
                   if (Player.playState == 3) 
                      Player.fullScreen = 'true';
    }
    
    function ShutMeDown ()
    {
        Player.controls.stop();
    }
    
    -->
    </SCRIPT>
    
    </div>
    </BODY>
    </HTML>

  7. #187
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Read post #183 I told you what to change. Add
    Code:
    <PARAM NAME="URL" VALUE="">
    to your object code.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  8. #188
    New Coder
    Join Date
    Sep 2005
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok, sorry i missed that change. Now the buttons to start, stop, and fullscreen work but the drop down list doesnt do anything.
    sorry for being a pest...I'm trying to learn all this
    appreciate your help!

    Code:
    <HTML>
    <HEAD>
    </HEAD>
    <BODY>
    
    <div align=center> 
    <SELECT id=cancion onchange="document.all.player.url=document.all.cancion.value;" 
    
    size=1 name="player"> 
       <OPTION selected>::::::::::::: Choose Your Song Here :::::::::::::</OPTION>     
    
       
          <OPTION value=s292.wma>Jon Courson - Song </OPTION> 
          <OPTION value=tc4014-v.wmv>Jon Couson - Video</OPTION> 
    </SELECT>
    
    <BR>
    
    
    <OBJECT ID="Player" height="240" width="320" 
    
    CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
    CODEBASE= 
    
    "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1
    
    ,52,701" width=320 height=240 standby="Loading Microsoft Windows Media Player 
    
    components..." type="application/x-oleobject">
    <PARAM NAME="URL" VALUE="">
    <PARAM NAME="AutoStart" Value="true">
    <PARAM NAME="ShowControls" Value="true">
    <Embed type="application/x-mplayer2"
        pluginspage=
        "http://www.microsoft.com/Windows/MediaPlayer/"
        Name="Player"
        AutoStart=1
        Width=320
        Height=240
        ShowControls=1
      </embed>
    </OBJECT>
    
    <br>
    <INPUT TYPE="BUTTON" NAME="BtnPlay" VALUE="PLAY" OnClick="StartMeUp()">
    <INPUT TYPE="BUTTON" NAME="BtnStop" VALUE="STOP" OnClick="ShutMeDown()">
    <INPUT TYPE="BUTTON" NAME="Btnfull" VALUE="FULL" OnClick="screenfull()">
    <SCRIPT>
    <!--
    function StartMeUp ()
    {
        Player.URL = "tc4014-v.wmv";
    }
    
    function screenfull ()
    {
    /* Check to be sure the player is playing. */
                   if (Player.playState == 3) 
                      Player.fullScreen = 'true';
    }
    
    function ShutMeDown ()
    {
        Player.controls.stop();
    }
    
    -->
    </SCRIPT>
    
    </div>
    </BODY>
    </HTML>

  9. #189
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Your main problem was your select menu was also named player so it was conflicting with the object code. Here you go, the buttons work, the drop down menu works.
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    <style type="text/css">
    body {
    text-align:center;
    }
    </style>
    <script type="text/javascript">
    <!--
    function StartMeUp(){
    player.url = "tc4014-v.wmv";
    }
    function screenfull(){
    /* Check to be sure the player is playing. */
    if (player.playState == 3) 
    	player.fullScreen = 'true';
    }
    function ShutMeDown(){
    player.controls.stop();
    }
    function PlayIt(){
    document.player.url=document.getElementById('cancion').value;
    }
    //-->
    </script>
    </head>
    
    <body>
    <select name="cancion" id="cancion" onchange="PlayIt()">
    	<option value="none">::::::::::::: Choose Your Song Here :::::::::::::</option>     
    	<option value="s292.wma">Jon Courson - Song </option> 
        <option value="tc4014-v.wmv">Jon Couson - Video</option> 
    </select><br>
    <span id="music">
    <object id="player" name="player" width="240" height="320" 
          classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" 
          codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
          standby="Loading Microsoft Windows Media player components..." type="application/x-oleobject">
          <param name="url" value="">
          <param name="uiMode" value="full">
          <param name="autoStart" value="true">
          <param name="loop" value="true">
          <embed type="application/x-mplayer2" 
          pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" 
          showcontrols="true" uimode="full" width="240" height="320" 
          src="" autostart="true" loop="true">
    </object><br>
    </span>
    <input type="button" name="BtnPlay" value="PLAY" onclick="StartMeUp()">
    <input type="button" name="BtnStop" value="STOP" onclick="ShutMeDown()">
    <input type="button" name="Btnfull" value="FULL" onclick="screenfull()">
    </body>
    </html>
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  10. #190
    New Coder
    Join Date
    Sep 2005
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Fantastic! Thanks so much! I never would have figured that out. My problem is I tend to take on more than I am capable of, but that's how I learn more. You have been more than patient with my Noobiness.

    Thanks again.
    Brent

  11. #191
    SS2
    SS2 is offline
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hi, Aero

    Hello
    I'm SS. I have been trying for weeks to get these songs i have to play with a pop-up media player when the buttons i made are clicked and nothing works. Can someone please show me what the code is supposed to look like with these codes i have?
    These are the buttons i made
    src="http://tekcities.com/ss_karaoke/button270819.jpg"></A></P>
    <P align=left> </P>
    <P align=left>
    <P align=left></P>
    <P align=left> <IMG src="http://tekcities.com/ss_karaoke/button642326.jpg"></P>
    <P align=left> </P>
    <P align=left> <IMG src="http://tekcities.com/ss_karaoke/button447073.jpg"></P>
    <P align=left> </P>
    <P align=left> <IMG src="http://tekcities.com/ss_karaoke/button213280.jpg"></P>

    This is the code i have for the media player
    <!-- begin embedded WindowsMedia file... -->
    <table border='0' cellpadding='0' align="center">
    <tr><td>
    <OBJECT id='mediaPlayer' width="320" height="285"
    classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
    codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
    standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
    <param name='fileName' value="http://servername/path/to/media.file">
    <param name='animationatStart' value='true'>
    <param name='transparentatStart' value='true'>
    <param name='autoStart' value="false">
    <param name='showControls' value="true">
    <param name='loop' value="true">
    <EMBED type='application/x-mplayer2'
    pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
    id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
    bgcolor='darkblue' showcontrols="true" showtracker='-1'
    showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
    src="http://servername/path/to/media.file" autostart="false" designtimesp='5311' loop="true">
    </EMBED>
    </OBJECT>
    </td></tr>
    <!-- ...end embedded WindowsMedia file -->
    <!-- begin link to launch external media player... -->
    <tr><td align='center'>
    <a href="http://servername/path/to/media.file" style='font-size: 85%;' target='_blank'>Launch in external player</a>
    <!-- ...end link to launch external media player... -->
    </td></tr>
    </table>

    Will these files played if i uploaded them from my computer to my site or do they have to come from another online storage?
    These are the music files i have uploaded
    Song1.mp3
    song2.mps
    song3.mp3
    song4.mp3

    I thought the colors would make it easier to read
    Thank you sooooo much in advance, i hope you can make sense of this
    SS

  12. #192
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    <style type="text/css">
    a img {
    border:0;
    }
    </style>
    <script type="text/javascript">
    function openWin(url){
    player=window.open(url,'player','width=300,height=100,left=0,top=0');
    }
    function PlayIt(what){
    player.document.getElementById('music').innerHTML='<object width="300" height="45" '
          +'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
          +'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
          +'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
          +'<param name="url" value="'+what+'">'
          +'<param name="uiMode" value="full">'
          +'<param name="autoStart" value="true">'
          +'<param name="loop" value="true">'
          +'<embed type="application/x-mplayer2" '
          +'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
          +'showcontrols="true" uimode="full" width="300" height="45" '
          +'src="'+what+'" autostart="true" loop="true">'
    +'</object>';
    }
    </script>
    </head>
    
    <body>
    <a href="player.html" onclick="openWin(this.href);return false;">Open Music Player</a>
    <a href="song1.mp3" onclick="PlayIt(this.href);return false"><img src="http://www.tekcities.com/ss_karaoke/button642326.jpg" alt=""></a>
    <a href="song2.mp3" onclick="PlayIt(this.href);return false"><img src="http://www.tekcities.com/ss_karaoke/button447073.jpg" alt=""></a>
    <a href="song3.mp3" onclick="PlayIt(this.href);return false"><img src="http://www.tekcities.com/ss_karaoke/button213280.jpg" alt=""></a>
    </body>
    </html>
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  13. #193
    SS2
    SS2 is offline
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    code

    Thanks so much Aero,
    How can i move the buttons to where i want them?........they show up on page going across, is there a special code for this?
    You are awsome with your helpfulness and your promptness
    i havent been able to play around with it as the site im with is currently in a switch process but they should be up and running tomorrow.

  14. #194
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Its just a matter of using html. Check out www.w3schools.com and www.htmldog.com
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  15. #195
    SS2
    SS2 is offline
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you so much I really appericate it.


 
Page 13 of 50 FirstFirst ... 3111213141523 ... LastLast

Posting Permissions

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