Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. Uncaught TypeError: undefined is not a function
  2.  
  3. <div class="photo1 sliderPhoto">d</div>
  4. <div class="photo2 sliderPhoto">d</div>
  5. <div class="photo3 sliderPhoto">d</div>
  6. <div class="photo4 sliderPhoto">d</div>
  7.  
  8. .sliderPhoto{
  9. position: absolute;
  10. top: 0px;
  11. left: 0px;
  12. background-position: center center;
  13. background-size: cover;
  14. width: 100%;
  15. height: 100%;
  16. }
  17. .photo1{
  18. background-image: url('../photos/ph1.jpg');
  19. z-index: 6;
  20. }
  21. .photo2{
  22. background-image: url('../photos/ph2.jpg');
  23. z-index: 6;
  24. display: none;
  25. }
  26. .photo3{
  27. background-image: url('../photos/ph3.jpg');
  28. z-index: 6;
  29. display: none;
  30. }
  31. .photo4{
  32. background-image: url('../photos/ph4.jpg');
  33. z-index: 6;
  34. display: none;
  35. }
  36.  
  37. $photos = [$(".photo1")[0], $(".photo2")[0], $(".photo3")[0], $(".photo4")[0]];
  38. $photos[0].css("z-index");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement