Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-22-2012, 08:24 PM   PM User | #1
garevn
New Coder

 
Join Date: Apr 2011
Posts: 95
Thanks: 13
Thanked 1 Time in 1 Post
garevn is an unknown quantity at this point
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..
garevn is offline   Reply With Quote
Old 09-23-2012, 02:06 AM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,247
Thanks: 59
Thanked 3,998 Times in 3,967 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
Old Pedant is online now   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:11 AM.


Advertisement
Log in to turn off these ads.