PayneLess_Designs

PayneLess Designs - Mouseover: Image Swap (CSS

May 12th, 2012
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.98 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
  3. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  4. <title>Mouseover: Image Swap (CSS)</title>
  5. <meta name="description" content="" />
  6. <meta name="keywords" content="" />
  7. <meta name="author" content="" />
  8. <meta name="generator" content="MSS Website Studio by van IJperen Software Inc. - http://www.marsansoft.nl" />
  9. <style type="text/css">
  10. .banner {
  11. background: url('http://i1087.photobucket.com/albums/j473/Stutter_Bug/camera-trans-center.png') no-repeat center scroll;
  12. width: 280px;
  13. height: 137px;
  14. padding-top: 10%;
  15. margin: 0 auto;
  16. }
  17.  
  18. .banner:hover {
  19. background: url('http://i1087.photobucket.com/albums/j473/Stutter_Bug/camera-trans-color-lights.png') no-repeat center scroll;
  20. width: 280px;
  21. height: 137px;
  22. }
  23.  
  24. a { color: #006800; font-weight: 900; font-size: 1em; }
  25.  
  26. body { background: #000; color: #fff; }
  27.  
  28. div#wrap { width: 900px; margin: 0 auto;}
  29.  
  30. div#contents { width: 100%; margin: 0 auto; }
  31.  
  32. h1 { text-align: center; }
  33.  
  34. code { color: #ff0; font-size: 1em; }
  35.  
  36. h3 {
  37. text-align: center;
  38. }
  39. </style>
  40. </head>
  41. <body>
  42. <h1>Mouseover - CSS</h1>
  43. <div id="wrap">
  44. <div id="contents">
  45.  
  46. <pre><code>
  47. &lt;style type="text/css">
  48. .banner {
  49. background: url('http://img233.imageshack.us/img233/4195/anierrorchickenvocalspx5.gif') no-repeat center scroll;
  50. width: 128px;
  51. height: 131px;
  52. padding-top: 10%;
  53. }
  54.  
  55. .banner:hover {
  56. background: url('http://img149.imageshack.us/img149/1023/anierrorchickenguitarum3.gif') no-repeat center scroll;
  57. width: 128px;
  58. height: 131px;
  59. }
  60.  
  61. a { color: #006800; font-weight: 900; font-size: 1em; }
  62. &lt;/style>
  63.  
  64. &lt;div class="banner">&lt;a href="#" title="Mouseover Me">Mouseover Me&lt;/a>&lt;/div>
  65. </code></pre>
  66. <h3>Mouseover Image Below:</h3>
  67. <div class="banner"><a href="#nogo" title="Mouseover Me">&nbsp;</a></div>
  68.  
  69. </div>
  70. </div>
  71. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment