[jQuery] SlideDown Issue.. help!

2010-01-18 Thread for...@gmail.com
I am new to jQuery but am using it to SlideDown a DIV element when the
a:link is clicked.

However, no matter what link i click on the page, it slides down the
div, it's as if the script has taken over every link on the page.

Here is the code:

http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/
jquery.min.js">

$(document).ready(function () {
var $div = $('#alias-box');
var height = $div.height();
$div.hide().css({ height : 0 });

$('a').click(function () {
if ($div.is(':visible')) {
$div.animate({ height: 0 }, { duration: 250, complete:
function () {
$div.hide();
} });
} else {
$div.show().animate({ height : height }, { duration:
250 });
}

return false;
});
});


html:

Custom Alias


so clicking Custom Alias, drops the 'alias-box' div.

But even when i click other links such as:

Contact

it ignores going to contact.php and displays the div.

Any ideas how to fix this?


[jQuery] Re: SlideDown Issue.. help!

2010-01-18 Thread for...@gmail.com
Hi, can you tell me the alternative to make it only work on the select
'a'

On Jan 18, 11:56 am, Andre Polykanine  wrote:
> Hello forcer and all,
>
> You have:
> $('a').click(function()...
> This tells jQuery to perform the function on a click to every 
> link.
>
> --
> With best regards from Ukraine,
> Andre
> Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ 
> jabber.org
> Yahoo! messenger: andre.polykanine; ICQ: 191749952
> Twitter: m_elensule
>
> - Original message -
> From: for...@gmail.com 
> To: jQuery (English) 
> Date: Monday, January 18, 2010, 12:10:58 PM
> Subject: [jQuery] SlideDown Issue.. help!
>
> I am new to jQuery but am using it to SlideDown a DIV element when the
> a:link is clicked.
>
> However, no matter what link i click on the page, it slides down the
> div, it's as if the script has taken over every link on the page.
>
> Here is the code:
>
> http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/</a>
> jquery.min.js">
>         
>     $(document).ready(function () {
>         var $div = $('#alias-box');
>         var height = $div.height();
>         $div.hide().css({ height : 0 });
>
>         $('a').click(function () {
>             if ($div.is(':visible')) {
>                 $div.animate({ height: 0 }, { duration: 250, complete:
> function () {
>                     $div.hide();
>                 } });
>             } else {
>                 $div.show().animate({ height : height }, { duration:
> 250 });
>             }
>
>             return false;
>         });
>     });
>     
>
> html:
>
> Custom Alias
>  type="text" />
>
> so clicking Custom Alias, drops the 'alias-box' div.
>
> But even when i click other links such as:
>
> Contact
>
> it ignores going to contact.php and displays the div.
>
> Any ideas how to fix this?


[jQuery] Using JQuery effects in IE7??

2009-04-01 Thread for...@gmail.com

I've created my site and it looks great in Firefox..

however in IE7 it just wont work, i'm not bothered about getting it
working in anything less than IE7

2 effects i am using are fadeOut and slideDown

are there any fixes to get these working in IE