quyenpn
12-15-2008, 03:04 AM
Hi all,
I use anylink menu for my website. It's great.
But when I use it with flash object, I have problem: The anylink menu is allways behind the flash object.
Here is my scenario:
<a href="#" onclick="PlayVideo(Video1.wmv)" >Video1</a>
<a href="#" onclick="PlayVideo(Video2.wmv)" >Video2</a>
PlayVideo1 javascript function
function PlayVideo1(url){
document.getElementById("VideoContent").innerHTML='<object id="mVideo" name="mVideo" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" type="application/x-oleobject" height="312" standby="Loading Microsoft Windows Media Player components..." width="346" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"><param name="URL" value="'+url+'"><param name="volume" value="50">
<param name="wmode" value="transparent">
<embed id="mEVideo" wmode="transparent" name="mEVideo" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" src="'+url+'" width="346px" height="312px"></embed></object>';
}
The problem is the anylink menu is allway behind the video flash.
How can I fix this?
Thanks alot for support.
QuyenPN
I use anylink menu for my website. It's great.
But when I use it with flash object, I have problem: The anylink menu is allways behind the flash object.
Here is my scenario:
<a href="#" onclick="PlayVideo(Video1.wmv)" >Video1</a>
<a href="#" onclick="PlayVideo(Video2.wmv)" >Video2</a>
PlayVideo1 javascript function
function PlayVideo1(url){
document.getElementById("VideoContent").innerHTML='<object id="mVideo" name="mVideo" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" type="application/x-oleobject" height="312" standby="Loading Microsoft Windows Media Player components..." width="346" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"><param name="URL" value="'+url+'"><param name="volume" value="50">
<param name="wmode" value="transparent">
<embed id="mEVideo" wmode="transparent" name="mEVideo" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" src="'+url+'" width="346px" height="312px"></embed></object>';
}
The problem is the anylink menu is allway behind the video flash.
How can I fix this?
Thanks alot for support.
QuyenPN