Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-03-2012, 05:54 PM   PM User | #16
Chris-2k
Regular Coder

 
Join Date: May 2011
Posts: 303
Thanks: 29
Thanked 0 Times in 0 Posts
Chris-2k is an unknown quantity at this point
Thank you m8, that works gr8!

While i'm here gonna ask; How to do a close button, this iis for something else.

atm i have:

Code:
<span id='close'>close</span>	$("#close").click(function() {
		$("#warning").fadeOut(2000);
	});
Chris-2k is offline   Reply With Quote
Old 10-03-2012, 06:11 PM   PM User | #17
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 454 Times in 452 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
why doesn't that work?
xelawho is offline   Reply With Quote
Old 10-03-2012, 08:24 PM   PM User | #18
Chris-2k
Regular Coder

 
Join Date: May 2011
Posts: 303
Thanks: 29
Thanked 0 Times in 0 Posts
Chris-2k is an unknown quantity at this point
no it doesn't, should it?
Chris-2k is offline   Reply With Quote
Old 10-03-2012, 08:32 PM   PM User | #19
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 454 Times in 452 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
maybe. hard to tell with a line and a half of code. Is this to close the fancybox?
xelawho is offline   Reply With Quote
Old 10-03-2012, 09:02 PM   PM User | #20
Chris-2k
Regular Coder

 
Join Date: May 2011
Posts: 303
Thanks: 29
Thanked 0 Times in 0 Posts
Chris-2k is an unknown quantity at this point
no, this is to close a warning box, not related to fancybox.....

i've changed the span to: <a href='#close' id='close'>close</a>

and the js to:
Code:
	$("#close").click(function() {
		$("#warning").slideUp();
	});
Thanks
Chris-2k is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:47 PM.


Advertisement
Log in to turn off these ads.