Advertisement
Guest User

Untitled

a guest
Mar 18th, 2009
7,806
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.03 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <title>Test</title>
  5. <script>
  6. function resize_divProgress() {
  7.     var control = document.getElementById('thEngineCategories');
  8.     var div = document.getElementById('divProgress');
  9.  
  10.     div.style.left = control.offsetLeft + 'px';
  11.     div.style.top = control.offsetTop + 'px';
  12.     div.style.width = control.offsetWidth + 'px';
  13.     div.style.height = control.offsetHeight + 'px';
  14. }
  15. </script>
  16. <style>
  17. .overlay
  18. {
  19.     border: black 1px solid;
  20.     padding: 5px;
  21.     z-index: 100;
  22.     width: 300px;
  23.     position: absolute;
  24.     background-color: #fff;
  25.     -moz-opacity: 0.75;
  26.     opacity: 0.75;
  27.     filter: alpha(opacity=75);
  28.     font-family: Tahoma;
  29.     font-size: 11px;
  30.     font-weight: bold;
  31.     text-align: center;
  32. }
  33. </style>
  34. </head>
  35. <body>
  36. <div id="divProgress" class="overlay">woo</div>
  37. <br>
  38. <table>
  39.     <tr>
  40.         <th id="thEngineCategories" onmouseover="resize_divProgress()">content</th>
  41.     </tr>
  42. </table>
  43. </body>
  44. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement