Log in

View Full Version : Colouring WMP Objects



Halting
18-07-2006, 03:14 PM
Hey,

I was wondering if it is possible to perhaps change the colour of a Windows Media Player object. The nearest I was able to come to was using CSS Filters. However, CSS Filters only allow you to add effects such as Grayscale and Invert. Apparently, this is possible, but does anybody no how?

Cheers,
Halting

Recursion
18-07-2006, 04:48 PM
you mean the ones on websites?

You can use images and stuff. There is a tutorial on the MS Website somewhere.

awelsh
19-07-2006, 06:20 AM
i have it in a black style. il upload a pic later

Halting
19-07-2006, 03:08 PM
I know how to do that using CSS Filter.

I have found out how to create a WMP Coloured object. However, it is only viewable on IE. An advantage of my little script is that you can change the colour via Colour Codes.

I will post the HTML for this later.

awelsh
20-07-2006, 10:51 AM
nice. that would really help me

Halting
20-07-2006, 03:41 PM
<table style="border: 1px solid #000000;" bgcolor="#0FF000" style="filter:alpha(opacity=100);opacity:.100;" cellpadding="0" cellspacing="0"><tr><td><EMBED style="filter:alpha(opacity=45) Gray();opacity:.45; WIDTH: 146px; HEIGHT: 30px" src=playlist.asx width=146 height=30 type=audio/x-ms-asf invokeURLs="false" autostart="true" AllowScriptAccess="never" invokeURLS="false" showControls="true" volume="0" LOOP="0" enablecontextmenu="0"></td></tr></table>

I've put a 1px border around the object. To change the colour, change this:-



bgcolor="#0FF000"

Want to hide these adverts? Register an account for free!