Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while( $fetch = mysql_fetch_assoc( $result ) )
- {
- switch( $fetch['day'] )
- {
- case 4: continue;break;
- case 5: $left = 38;$top = 10;break;
- case 6: $left = 38;$top = 138;break;
- case 7: $left = 158;$top = 400;break;
- case 8: $left = 515;$top = 265;break;
- case 9: $left = 158;$top = 10;break;
- case 49: $left = 158;$top = 138;break;
- default: continue;
- }
- // Anzeigen des Kalenderbildes/-texts fuer den jeweiligen Tag
- ?>
- <div style="position:absolute;left:<?php echo $left; ?>px;top:<?php echo $top; ?>px;width:100px;height:100px;filter:alpha(opacity=20);-moz-opacity: 0.2;opacity: 0.2;background-color:#fff;" onmouseover="show('day<?php echo $fetch['day']; ?>','1');" onmouseout="show('day<?php echo $fetch['day']; ?>','0');"></div>
- <div id="day<?php echo $fetch['day']; ?>" style="position:absolute;left:<?php echo $left+102; ?>px;top:<?php echo $top; ?>px;background-color:#fff;border:2px solid #999;padding:5px;overflow:hidden;text-align:center; width:110px;visibility:hidden;">
- <img src="images/xmas/<?php echo $fetch['img']; ?>" border="0" style="padding:5px; width:100px;">
- <br>
- <div style="text-align:left;padding:5px;">
- <b><i><?php echo $fetch['title']; ?></i></b>
- <br />
- <span style="color:#006600;"><?php echo $fetch['content']; ?></span>
- </div>
- </div>
- <?php
- }
Add Comment
Please, Sign In to add comment