开发者

Change bgcolor param value on mouse over?

I have a .SWF email submit form. The background color is se开发者_StackOverflow中文版t via:

`<param name="bgcolor" value="#000000" />` 

and in the embed:

`<embed src="FILE.swf" flashvars="STUFF" quality="high" **bgcolor="#000000"** width="260" height="32" name="WidgetMailBlack" align="middle" swLiveConnect="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />`

Is it possible either on mouse over of the Object or a containing div to change those values? i.e. to #ffffff

many thanks!


Set the wmode parameter to transparent, get rid of the bgcolor parameter and use CSS to set a background color on the object instead. E.g.

<param name="wmode" value="transparent">

<embed src="FILE.swf" ... wmode="transparent">

And the CSS:

embed, object { background-color: black }
embed:hover, object:hover { background-color: white }


Not in the markup. You would have to call the movie again with the new values.


It would be possible, also it is possible to change the containing div color.

Flash has it's use, but Forms, unless in a proper RIA, would probably be best left in HTML/JS. Here are a few handy resource to make pretty forms:

  1. Prettier Accessible Forms - a bit old, but good
  2. Nice Forms - a really nice js library that makes styling forms easy.

HTH, George

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜