Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //INDEX.PHP -- SCROLLING HOME PAGE PICTURE
- var picindex = 0;
- $('#left-button').click(function(){
- picindex --;
- $('.longpic').css("background", "url('Global/Images/"+picindex+".JPG')")
- });
- if(picindex<1)
- {
- $('#right-button').click(function(){
- picindex ++;
- $('.longpic').css("background", "url('Global/Images/"+picindex+".JPG')");
- });
- }
- else if(picindex == 1)
- {
- $('#right-button').click(function(){
- alert("end of slide show!");
- });
- }
Add Comment
Please, Sign In to add comment