fejl i z-index?
Hej, jeg har stirret mig blind på fejlen her, hvorfor min div ikke lægger sig i forgrunden for alt her.. skulle mene at alle mine z-index er 0 ned undtagelse af den div der skal fremhæves (1000)www.skovbakken-badminton.dk/kalender.php
nogen der kan se fejlen?
kode:
<table align="center" width="100%" id="cal" border="0" cellspacing="1" cellpadding="0">
<tr>
<td class='mnav'><a title="Forrige måned" href="<?= $_SERVER['PHP_SELF'] . '?y=' . $lastmy . '&m=' . $lastm ?>">«</a></td>
<td class="hdr" colspan="6"><?= $mname . ' - ' . $thisy ?></td>
<td class='mnav'><a title="Næste måned" href="<?= $_SERVER['PHP_SELF'] . '?y=' . $nextmy . '&m=' . $nextm ?>">»</a></td>
</tr>
<tr>
<th style="width: 50px">Uge</th>
<th>Man</th>
<th>Tir</th>
<th>Ons</th>
<th>Tor</th>
<th>Fre</th>
<th style="width: 75px">Lør</th>
<th style="width: 75px">Søn</th>
</tr>
<?php
foreach ( $days as $wk => $dayar )
{
echo "<tr style=\"z-index:0;\">\n<td class=\"wkn\" style=\"z-index:0;\">$wk</td>\n";
for ( $d = 0; $d < 7; $d++ )
{
$c = '';
if ( $d == 5 )
{
$c .= ' satd';
}
elseif ( $d == 6 )
{
$c .= ' sund';
}
$tm = $thism;
$ty = $thisy;
if ( ( $wk == $startw && $dayar[$d] > 10 ) ||
( $wk == $endw && $dayar[$d] < 10 ) )
{
$c .= ' notnow';
if ( $dayar[$d] > 10 )
{
$tm = $lastm;
}
else
{
$tm = $nextm;
}
if ( $thism == 1 && $dayar[$d] > 10 )
{
$ty = $thisy - 1;
}
else if ( $thism == 12 && $dayar[$d] < 10 )
{
$ty = $thisy + 1;
}
}
$tstamp = mktime( 0, 0, 0, $tm, $dayar[$d], $ty );
if ( $c != '' )
{
$c = ' class="' . $c . '"';
}
$td = sprintf( '%02d', $dayar[$d] );
$typ = ( $d > 4 ? 'dwecnt' : 'dcnt' );
$cb = '';
printf( "<td$c valign='top' style=\"height:30px; z-index:0;\">\n<div class='%s' style=\"position:relative; z-index:0;\">\n<div class='date2' style=\"z-index:0;\">%d%s</div>\n", $typ, $td, $cb );
include("includes/conn.php");
$tal=1;
$result = mysql_query("select * FROM kalender WHERE start_aar = $ty && start_mdr = $tm && start_dato = $td order by start_tid");
while ($row = mysql_fetch_array($result)) {
$start = strtotime($row['start_tid']);
$start = date("H:i", $start);
$stop = strtotime($row['slut_tid']);
$stop = date("H:i", $stop);
echo '<a id="boxnr' . $tal . $td . 'i" class="cal" onmouseover="showhide(' . "'" . 'boxnr' . $tal . $td . "'" . ');" onmouseout="showhide(' . "'" . 'boxnr' . $tal . $td . "'" . ');">' . '<img class="calicon" src="gfx/cal/st.png" alt="" border="0" style="z-index:0;" />' . $start . "-" . $stop . '</a>';
echo '<div id="boxnr' . $tal . $td . 'c" style="border:1px solid #000000; position:absolute; visibility:hidden; display:none; z-index:0; height:100px; width:200px; background-color:#ffffff;">hej<br /></div>';
++$tal;
}
echo '</div></td>';
}
echo "</tr>\n";
}
?>
</table>
