View Single Post
Old 02-22-2012, 07:07 PM   PM User | #1
trav5567
New Coder

 
Join Date: Feb 2012
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
trav5567 has a little shameless behaviour in the past
Question Adding Class with javascript(picture inside the div wont show up)

To better understand what i am trying to do click here to view my page.

The backgorund image for the child div to #lightcube is not showing up. its supposed to be a arrow that is positioned in the center of the uparrow class.

Please this has been driving me nuts and any help would be greatly appreciated.

here is the script

Code:
$(document).ready(function() {
		
		$("a.contact-btn").toggle(
      		function () {
       			 $("#contact").animate( {"top": "0"}, 900, "linear" );
       			 $("#lightbox").fadeIn(300);
     		 },
      		function () {
        		$("#contact").animate( {"top": "-400px"}, 900, "linear" );
        		$("#lightbox").fadeOut(300);  
    	});
    	  

		$('body').click(function() {
        		$("#contact").animate( {"top": "-400px"}, 900, "linear" );
        		$("#lightbox").fadeOut(300);
			});

			$('#contact').click(function(event){
 				  event.stopPropagation();
				});
		
		 $("a.contact-btn").mouseover(function(){
   		   		$("body").css("border-color", "#a7d614");
   		   		$("#contact").css("background-color", "#a7d614");

    				}).mouseout(function(){
   		   		$("body").css("border-color", "#8db510");
   		   		$("#contact").css("background-color", "#8db510");
   	 		});
   	 		
   	 	$('a.contact-btn').hover(
      		 function(){ $(this).addClass('.lightcube') 
      		 		$('#lightcube').fadeIn(200);},
      		 function(){ $(this).removeClass('.lightcube')
      		 		$('#lightcube').fadeOut(200); }
)
   	 	
});
trav5567 is offline   Reply With Quote