Changeset 12455


Ignore:
Timestamp:
2006-08-16T15:08:27+12:00 (18 years ago)
Author:
mdewsnip
Message:

A fix to the problem where the drop down menus would go behind the select elements on the Advanced Search page in IE. Thanks to http://dotnetjunkies.com/WebLog/jking/archive/category/139.aspx.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cic-hcap/macros/extra.dm

    r12447 r12455  
    16711671var ns6=document.getElementById&&!document.all
    16721672
    1673 if (ie4||ns6)
     1673if (ie4||ns6) \{
    16741674document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
     1675/* Change to fix IE problem with select boxes, as described at http://dotnetjunkies.com/WebLog/jking/archive/category/139.aspx */
     1676document.write('<iframe id="dropmenuiframe" style="display:none; position: absolute; background-color: white; left: 0px; top: 0px" src="javascript:false" frameBorder="0" scrolling="no"></iframe>')
     1677\}
    16751678
    16761679function getposOffset(what, offsettype)\{
     
    17421745dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
    17431746dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
     1747/* Change to fix IE problem with select boxes, as described at http://dotnetjunkies.com/WebLog/jking/archive/category/139.aspx */
     1748iframeobj = document.getElementById("dropmenuiframe");
     1749iframeobj.style.left = dropmenuobj.style.left;
     1750iframeobj.style.top = dropmenuobj.style.top;
     1751iframeobj.style.width = dropmenuobj.style.width;
     1752iframeobj.style.height = dropmenuobj.offsetHeight;
     1753iframeobj.style.zIndex = 99;
     1754iframeobj.style.display = "block";
    17441755\}
    17451756
     
    17701781if (ie4||ns6)
    17711782dropmenuobj.style.visibility="hidden"
     1783/* Change to fix IE problem with select boxes, as described at http://dotnetjunkies.com/WebLog/jking/archive/category/139.aspx */
     1784iframeobj.style.display = "none"
    17721785\}
    17731786\}
Note: See TracChangeset for help on using the changeset viewer.