I'm trying to add slideDown to http://jsfiddle.net/Jk59f/ so that it slides down smoothly if the dark area is not expanded and just refreshes the link if it is clicked or another link is clicked.
I haven't been able to figure it out though after testing multiple areas.. it just doesnt slide at all it just jumps!
I do not see any slideDown() anywhere. What are you trying to slideDown?
There is no slideDown because I removed it since it wasnt working.. but if you click the Item 1, the dark area just jumps into view. The Dark area is what I'm trying to get to slide down
ah.. well, it looks kind of complicated. I can't quite decipher all your code, I've tried manually sliding down both #dark, and also the [hidden] div inside it, but it didn't have a dark background.
Why don't just make 2 divs, 1 div with the link, the other [the dark div] to have the content.
make a function, dark(), and make the first div disappear immediately [.hide(0)], then put $('#dark').slideDown(500);
Then on the first div, make the link's href "javascript:dark()"
__________________
For programming information, visit irnsystems.com
Also check out Points2Survey and earn items.
ah.. well, it looks kind of complicated. I can't quite decipher all your code, I've tried manually sliding down both #dark, and also the [hidden] div inside it, but it didn't have a dark background.
Why don't just make 2 divs, 1 div with the link, the other [the dark div] to have the content.
make a function, dark(), and make the first div disappear immediately [.hide(0)], then put $('#dark').slideDown(500);
Then on the first div, make the link's href "javascript:dark()"
i got it to work like this http://jsfiddle.net/VUz2g/ but how do i make sure it doesnt slide down if its already down and showing the dark area?
i got it to work like this http://jsfiddle.net/VUz2g/ but how do i make sure it doesnt slide down if its already down and showing the dark area?
The only way I know how is to hide "Item 1" when you click on it, because, once again, I cannot really understand how you are executing your code. Sorry..
__________________
For programming information, visit irnsystems.com
Also check out Points2Survey and earn items.
ok, before I take a crack at this.. are you planning on loading content via ajax at anypoint? Becuase the code would be quite different if so. I see you have a div with an id of ajax, but at no point are you doing anything ajax related.