Placing Player Window On Top

12 views
Skip to first unread message

JamesCousineau

unread,
Oct 9, 2008, 9:29:16 AM10/9/08
to Google AJAX API
How do we have the Player window appear on top of anything else on the
page?

For example:

Vertical YouTube bar is on right side of page.
Left side of page has another YouTube video in full size.

When someone clicks on a video link in the YouTube vertical bar it
appears under the left side video.

I have done this before using javascript and "param and wmode", but
how do to this in Ajax?

Javascript code to achieve this:

in object
<param name="wmode" value="opaque" />

embed at end
wmode="opaque" /

Jeremy R. Geerdes

unread,
Oct 9, 2008, 9:38:22 AM10/9/08
to Google-AJAX...@googlegroups.com
Actually, I think you'll have to put the wmode on the full-sized
player to the left side. Then the player should just float to the
top. Of course, take that with a grain of salt because it's tough to
tell you exactly what to do without actually seeing the page in
question in action. If you could provide a link, that would make it
much easier!

Rev. Jeremy R. Geerdes, Pastor
Debra Heights Wesleyan Church
4025 Lower Beaver Rd.
Des Moines, IA 50310

p/f: (515) 279-5212
h: (515) 277-7491
jgee...@mchsi.com

Matt Foster

unread,
Oct 14, 2008, 12:13:53 PM10/14/08
to Google AJAX API
> I have done this before using javascript and "param and wmode", but
> how do to this in Ajax?

What do you mean? Ajax is a technique of Javascript, if you're using
Ajax, then you're using Javascript so you should be all set.

As a side note, usually when you're messing with stacking objects in
this sense you can apply a higher z-index to the containing object and
that should force the object to float to the "top" so to speak.
Reply all
Reply to author
Forward
0 new messages