Guest_imported
New member
- Jan 1, 1970
- 0
I have a popup calender that populates an <input> form field. However, there are two <select> boxes on my form also. I have assigned z-index of anything from 2 to 100 to the popup calendar but no matter what if it appears over the <select> box, that <select> box shows through the popup calender. I've tried applying a z-index to the select box through style and I can't get it to not appear on top of the popup calender.
Anyone have any ideas?
Here's some code:
Here's the beginning of the popup calendar:
<script language="JavaScript">
if (document.all) {
document.writeln("<div id=\"PopUpCalendar\" style=\"position:absolute; left:0px; top:0px; z-index:7; width:200px; height:77px; overflow: visible; visibility: hidden; background-color: #FFFFFF; border: 1px none #000000\" onMouseOver=\"if(ppcTI){clearTimeout(ppcTI);ppcTI=false;}\" onMouseOut=\"ppcTI=setTimeout(\'hideCalendar()\',500)\">"
document.writeln("<div id=\"monthSelector\" style=\"position:absolute; left:0px; top:0px; z-index:9; width:181px; height:27px; overflow: visible; visibility:inherit\">"}
else if (document.layers) {
document.writeln("<layer id=\"PopUpCalendar\" pagex=\"0\" pagey=\"0\" width=\"200\" height=\"200\" z-index=\"100\" visibility=\"hide\" bgcolor=\"#FFFFFF\" onMouseOver=\"if(ppcTI){clearTimeout(ppcTI);ppcTI=false;}\" onMouseOut=\"ppcTI=setTimeout('hideCalendar()',500)\">"
document.writeln("<layer id=\"monthSelector\" left=\"0\" top=\"0\" width=\"181\" height=\"27\" z-index=\"9\" visibility=\"inherit\">"}
else {
document.writeln("<p><font color=\"#FF0000\"><b>Error ! The current browser is either too old or too modern (usind DOM document structure).</b></font></p>"}
</script>
Here's the selectbox and the style for it:
.selectbox { font-family: Verdana; font-size: 8pt; text-align: left; z-index: 1 }
<select class="selectbox" name="Mechanic">
<cfoutput query="Mechanics">
<option value="#Mechanics.ID#">#Left(Mechanics.FirstName, 1)#. #Mechanics.LastName#</option>
</cfoutput>
</select>
Anyone have any ideas?
Here's some code:
Here's the beginning of the popup calendar:
<script language="JavaScript">
if (document.all) {
document.writeln("<div id=\"PopUpCalendar\" style=\"position:absolute; left:0px; top:0px; z-index:7; width:200px; height:77px; overflow: visible; visibility: hidden; background-color: #FFFFFF; border: 1px none #000000\" onMouseOver=\"if(ppcTI){clearTimeout(ppcTI);ppcTI=false;}\" onMouseOut=\"ppcTI=setTimeout(\'hideCalendar()\',500)\">"
document.writeln("<div id=\"monthSelector\" style=\"position:absolute; left:0px; top:0px; z-index:9; width:181px; height:27px; overflow: visible; visibility:inherit\">"}
else if (document.layers) {
document.writeln("<layer id=\"PopUpCalendar\" pagex=\"0\" pagey=\"0\" width=\"200\" height=\"200\" z-index=\"100\" visibility=\"hide\" bgcolor=\"#FFFFFF\" onMouseOver=\"if(ppcTI){clearTimeout(ppcTI);ppcTI=false;}\" onMouseOut=\"ppcTI=setTimeout('hideCalendar()',500)\">"
document.writeln("<layer id=\"monthSelector\" left=\"0\" top=\"0\" width=\"181\" height=\"27\" z-index=\"9\" visibility=\"inherit\">"}
else {
document.writeln("<p><font color=\"#FF0000\"><b>Error ! The current browser is either too old or too modern (usind DOM document structure).</b></font></p>"}
</script>
Here's the selectbox and the style for it:
.selectbox { font-family: Verdana; font-size: 8pt; text-align: left; z-index: 1 }
<select class="selectbox" name="Mechanic">
<cfoutput query="Mechanics">
<option value="#Mechanics.ID#">#Left(Mechanics.FirstName, 1)#. #Mechanics.LastName#</option>
</cfoutput>
</select>