Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
  2. <html xmlns="http://w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title>Näide 1</title>
  6. <style type="text/css">
  7. #apDiv1 {
  8. position:absolute;
  9. width:200px;
  10. height:115px;
  11. z-index:1;
  12. background-color: #9C6;
  13. visibility: visible;
  14. }
  15. #apDiv2 {
  16. position:absolute;
  17. width:64px;
  18. height:32px;
  19. z-index:2;
  20. left: 11px;
  21. top: 136px;
  22. }
  23. apDiv3 {
  24. position:absolute;
  25. width:65px;
  26. z-index:3;
  27. left: 87px;
  28. top: 136px;
  29. }
  30. </style>
  31. <script type="text/javascript">
  32. function MM_showHideLayers() { //v9.0
  33. var i,p,v,obj,args=MM_showHideLayers.arguments;
  34. for (i=0; i<(args.length-2); i+=3)
  35. with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
  36. if (obi.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
  37. obj.visibility=v; }
  38. }
  39. </script>
  40. </head>
  41.  
  42. <body>
  43. <div id="apDiv3" onmouseover="MM_showHideLayers('apDiv1','','hide')">peida</div>
  44. <div id="apDiv1"></div>
  45. <div id="apDiv2" onmouseover="MM_showHideLayers('apDiv1','','show')">ava </div>
  46. </body>
  47. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement