View Full Version : Resolved I'm looking for a sliding div and page content script
IC619
12-29-2008, 11:33 PM
Hi everyone.
I'm looking for a script that will slide a div down from the top of the page, but also slide down all other content on the page at the same time. Similar to the following site:
http://www.flairpair.com/blog/web-development/jquery-simple-menu-with-slide-in-effect
Any help is much appreciated.
Dan
Snookerman
12-30-2008, 12:16 AM
Why not just use the one from that site?
Medyman
12-31-2008, 12:04 AM
Your description is kind of vague but is this (http://james.padolsey.com/javascript/new-jquery-plugin-fly-off-page/) what you're looking for?
IC619
01-03-2009, 07:59 PM
Snookerman - I tried following their instructions but couldnt get it to work.
Medyman - Thats a great script, but not currently what i'm looking for. Any ideas of what that particular script could be useful for?
Basically. I'd like the same effect that happens when the 'popular tags' tab on the site I posted is clicked. Hopefully thats a little clearer
Thanks,
Dan
Snookerman
01-03-2009, 10:14 PM
Could you please post a link to your site or the code you tried to use so we can take a look and help you out?
IC619
01-05-2009, 09:45 PM
Could you please post a link to your site or the code you tried to use so we can take a look and help you out?
I found a different script at http://ifohdesigns.com/blog/tutorials/unobtrusive-jquery-slide-toggle-with-cookies which i've used. However, I'm having a couple of problems with it:
1. The slide effect is not smooth on my page (although it is on their demo), it jumps.
2. I can't seem to remove the 'toggle header' link.
3. I can't seem to center align the page content.
My test page:
http://homepage.ntlworld.com/r.hartlett/test/personalcollection_copy.htm
Does anyone have any suggestions of how to fix these problems?
Thanks,
Dan
Snookerman
01-05-2009, 10:26 PM
#2 Find and remove this piece of code in your jquery-slider.js file:
var a = $("<a>toggle header</a>").attr('href','#').addClass("btn-slide");
$('#wrapper').before(a);
#3 Add this to your css code:
#main {
margin: 0 auto;
}
#1 I'm not sure about yet, I'll post if I come up with something.
Snookerman
01-05-2009, 10:34 PM
#1 That is because of the padding you added here:
#panel {
width: 100%;
margin: 0 auto;
padding: 10px;
border: 0;
background-color: #333;
}
Remove that and add this instead:
#panel h2 {
padding: 10px;
}
Good luck!
IC619
01-06-2009, 01:06 AM
Thats perfect Snookerman! thanks alot :)
I'll be sure to post a link to my entire site when I finally get it all sorted haha
Thanks,
Dan
Snookerman
01-06-2009, 09:12 AM
You're welcome, happy to help! You can go to your first post in this thread, click http://www.dynamicdrive.com/forums/images/buttons/edit.gif then click Go Advanced and add the Resolved prefix to the thread title. This will let other users know the problem has been solved.
Good luck with your site!
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.