Guest User

Untitled

a guest
Jul 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. while( $fetch = mysql_fetch_assoc( $result ) )
  2. {
  3. switch( $fetch['day'] )
  4. {
  5. case 4: continue;break;
  6. case 5: $left = 38;$top = 10;break;
  7. case 6: $left = 38;$top = 138;break;
  8. case 7: $left = 158;$top = 400;break;
  9. case 8: $left = 515;$top = 265;break;
  10. case 9: $left = 158;$top = 10;break;
  11. case 49: $left = 158;$top = 138;break;
  12. default: continue;
  13. }
  14. // Anzeigen des Kalenderbildes/-texts fuer den jeweiligen Tag
  15. ?>
  16. <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>
  17. <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;">
  18. <img src="images/xmas/<?php echo $fetch['img']; ?>" border="0" style="padding:5px; width:100px;">
  19. <br>
  20. <div style="text-align:left;padding:5px;">
  21. <b><i><?php echo $fetch['title']; ?></i></b>
  22. <br />
  23. <span style="color:#006600;"><?php echo $fetch['content']; ?></span>
  24. </div>
  25. </div>
  26. <?php
  27. }
Add Comment
Please, Sign In to add comment