Jump to content


Photo

Question on fadeTo


  • Please log in to reply
1 reply to this topic

#1 derek.sullivan

derek.sullivan

    Jedi In Training

  • Members
  • PipPip
  • 343 posts
  • Gender:Male
  • Location:Georgia
  • Interests:preaching, programming, music, friends, outdoors, moves, books

Posted 30 March 2011 - 11:12 AM

I've successfully got the jquery to do what I want it to do (somewhat), however when it runs it changes the opacity of the background then it delays , then it loads a box in the middle of the page however, it changes the opacity of the box that loads in the middle of the page. I don't want it to do that! How do I put the box above the faded background? Almost like what p2l has for their login on the main page. Bellow is my jquery:

$(document).ready(function() {

$("#adm").click(function() {
	
$("body").fadeTo(1000,0.2);
$("#box").delay(2000);
$("#box").fadeIn("normal");
	
});

});


#2 derek.sullivan

derek.sullivan

    Jedi In Training

  • Members
  • PipPip
  • 343 posts
  • Gender:Male
  • Location:Georgia
  • Interests:preaching, programming, music, friends, outdoors, moves, books

Posted 30 March 2011 - 11:44 AM

Issue resolved.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users