Log in

View Full Version : Implement John's shim for chrome drop menu?



ak7861
11-12-2006, 02:24 AM
Can someone implement John's shim (http://www.dynamicdrive.com/forums/showpost.php?p=30456&postcount=4) for the chrome drop down menu on dd?

I have it for the tooltips, but for the drop downs, a bit of an issue.

Script URL:

http://www.dynamicdrive.com/dynamicindex1/chrome/index.htm

ddadmin
11-12-2006, 03:48 AM
I'll most likely be modifying the chrome script soon for this enhancement. Probably end of next week.

ak7861
11-12-2006, 03:49 AM
Thank you. Although I needed it sooner. But theres also one issue. And that is windows media objects do not get shimmed for the drop downs. All other objects do. Any idea?

ddadmin
11-14-2006, 06:58 AM
Ok, the Chrome menu (http://www.dynamicdrive.com/dynamicindex1/chrome/index.htm) has just been updated with the iframe shim technique, which gets the drop down menus to correctly appear on top of windowed objects (ie: <select>) in IE5.5 and IE6.

djr33
11-14-2006, 09:50 AM
Why are you including a windows media object in the menu? I can't think of any good reasons to do so....

jscheuer1
11-14-2006, 10:05 AM
windows media objects do not get shimmed for the drop downs. All other objects do. Any idea?

http://support.microsoft.com/default.aspx?scid=kb;en-us;308491

ak7861
11-14-2006, 08:23 PM
Hi,

Thanks for updated the script. Works well now. Except for the windows media objects on my page. John, I browsed through that link you pasted. How do I set the z-index for the windows media object?


<object id="MediaPlayer" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" width="<? echo $get_video_row["width"]; ?>" height="<? echo $get_video_row["height"]; ?>">
<param name="filename" value="<? echo $get_video_row["link"]; ?>">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="true">
<param name="wmode" value="transparent">
<embed type="application/x-mplayer2" src="<? echo $get_video_row["link"]; ?>" name="MediaPlayer" width="<? echo $get_video_row["width"]; ?>" height=<? echo $get_video_row["height"]; ?>" ShowStatusBar=1
wmode="transparent"></embed></object>

jscheuer1
11-15-2006, 04:07 AM
I have no idea exactly (never done this) but, I'd try (from that link):


1. Enable the video mixing renderer in Windows Media Player. To do so, click Options on the Tools menu, click the Performance tab, and then click Advanced. Click to select the Use video mixing renderer check box, click OK, and then click OK.
2. Set the zindex (stacking order) for the frame element to a higher value than the embedded player control element.
3. Set the windowlessvideo property in the player control to true (1).

ak7861
11-15-2006, 05:32 AM
But doesnt the following only apply to the users settings?

"Enable the video mixing renderer in Windows Media Player. To do so, click Options on the Tools menu, click the Performance tab, and then click Advanced. Click to select the Use video mixing renderer check box, click OK, and then click OK."

This is a media object that is displayed publicly.

ak7861
11-15-2006, 07:12 AM
Ok. Everything works as it should. Except on Firefox 2, I'm unable to select the item of the drop down menu which overlaps the media object. Heres my code:


<!--[if gte IE 6]><script language="javascript">document.write("<NOSCRIPT class=clickfix><OBJECT style=\"display:none\">"); </script> <![endif]-->
<object style="z-index: 100;" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" width="<? echo $get_video_row["width"]; ?>" height="<? echo $get_video_row["height"]; ?>">
<param name="filename" value="<? echo $get_video_row["link"]; ?>">
<param name='animationatstart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autostart' value="true">
<param name='showcontrols' value="true">
<param name="showstatusbar" value="true">
<param name="windowlessvideo" value="true">
<embed type="application/x-mplayer2" src="<? echo $get_video_row["link"]; ?>" name="MediaPlayer" width="<? echo $get_video_row["width"]; ?>" height="<? echo $get_video_row["height"]; ?>" showstatusbar="1" windowlessvideo="1"></embed></object>
<!--[if gte IE 6]></OBJECT></NOSCRIPT><![endif]-->
<script type="text/javascript" src="click_fix.js"></script>

The click fix thingy is to disable the silly notice 'click to activate' for IE.

Can anyone solve the remaining slice?