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 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2011
    Posts
    95
    Thanks
    13
    Thanked 1 Time in 1 Post

    change javascript opacity

    Is there any chance to change the opacity of this player? i have no idea...

    Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
    <div id="player-holder"></div>
    <script type="text/javascript">
    
    var options = {};
    options.playlistXmlPath = "player/playlist/playlist.xml";
    options.firstColor = "00FFFF";
    options.secondColor = "ee1d24";
    options.backColor = "000000";
    options.highlightAlpha = "100";
    options.fontSize = "large";
    options.loopPlaylist = "true";
    options.shufflePlaylist = "true";
    options.autoLoad = "true";
     var params = {};
     params.allowScriptAccess = "always";
     swfobject.embedSWF("player/swf/OriginalMusicPlayerPlaylist.swf", "player-holder", "250", "250", "9.0.0","expressInstall.swf", options, params, {});
    </script>


    i tried to use a table-div with the opacity i want but it doesnt work..

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,028
    Thanks
    75
    Thanked 4,325 Times in 4,291 Posts
    Why would this have anything (directly) to do with JavaScript? If CSS can't change the opacity, JavaScript can't. JavaScript can only change the same things with regard to opacity (and other styles) that CSS can.

    Anyway, this is a Flash player, and Flash seems to play by its own rules.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

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