Guest User

Untitled

a guest
Jul 16th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.47 KB | None | 0 0
  1. //INDEX.PHP -- SCROLLING HOME PAGE PICTURE
  2.     var picindex = 0;
  3.    
  4.     $('#left-button').click(function(){
  5.         picindex --;
  6.         $('.longpic').css("background", "url('Global/Images/"+picindex+".JPG')")
  7.     });
  8.    
  9.     if(picindex<1)
  10.     {
  11.         $('#right-button').click(function(){
  12.             picindex ++;
  13.             $('.longpic').css("background", "url('Global/Images/"+picindex+".JPG')");
  14.         });
  15.     }
  16.     else if(picindex == 1)
  17.     {
  18.         $('#right-button').click(function(){
  19.             alert("end of slide show!");
  20.         });
  21.     }
Add Comment
Please, Sign In to add comment