Guest User

Problem

a guest
Mar 9th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. <script type="text/javascript">
  2. /* Navigationsbutton1 */
  3.  
  4. $(document).ready(function () {
  5. $("#btn1").mouseenter(function(){
  6. $("#subnavi1").show();
  7. });
  8. $("#subnavi1, #btn1").mouseleave(function(){
  9. $("#subnavi1").hide();
  10. });
  11. });
  12.  
  13. /* Navigationsbutton2 */
  14.  
  15. $(document).ready(function () {
  16. $("#btn2").mouseenter(function(){
  17. $("#subnavi2").show();
  18. });
  19. $("#subnavi2, #btn2").mouseleave(function(){
  20. $("#subnavi2").hide();
  21. });
  22. });
  23.  
  24. /* Navigationsbutton3 */
  25.  
  26. $(document).ready(function () {
  27. $("#btn3").mouseenter(function(){
  28. $("#subnavi3").show();
  29. });
  30. $("#subnavi3, #btn3").mouseleave(function(){
  31. $("#subnavi3").hide();
  32. });
  33. });
  34.  
  35. /* Navigationsbutton4 */
  36.  
  37. $(document).ready(function () {
  38. $("#btn4").mouseenter(function(){
  39. $("#subnavi4").show();
  40. });
  41. $("#subnavi4, #btn4").mouseleave(function(){
  42. $("#subnavi4").hide();
  43. });
  44. });
  45.  
  46. /* Navigationsbutton5 */
  47.  
  48. $(document).ready(function () {
  49. $("#btn5").mouseenter(function(){
  50. $("#subnavi5").show();
  51. });
  52. $("#subnavi5, #btn5").mouseleave(function(){
  53. $("#subnavi5").hide();
  54. });
  55. });
  56. </script>
Advertisement
Add Comment
Please, Sign In to add comment