Guest User

Untitled

a guest
May 27th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. //JAVASCRIPT
  2. <script type="text/javascript">
  3. function chPic(id){
  4. if (id == '0'){
  5. logo.setAttribute('style', 'background: url(kalo.png) no-repeat top center');
  6. }
  7. }
  8. </script>
  9.  
  10.  
  11.  
  12.  
  13. //TABS
  14. <div id="toptabs">
  15. <p>Change Picture:
  16. <a class="toptab" href="#" onclick="chPic(0)">Bodega Bay</a>
  17. <a class="toptab" href="#" >My Garden</a>
  18. <a class="toptab" href="#">Painting</a>
  19. <a class="toptab" href="#">My House</a></p>
  20. </div>
  21.  
  22.  
  23.  
  24.  
  25. //CSS
  26. #logo{
  27. position:relative;
  28. width:900px;
  29. height:300px;
  30. float:left;
  31. background: url(kalobg.gif) no-repeat center;
  32. }
Add Comment
Please, Sign In to add comment