CyberShot Posted December 1, 2009 Share Posted December 1, 2009 I made content. I wrote jquery code to slide my container down to show the content in the container. but the words show in the container before it gets done sliding. How do I fix this. I am trying display none in the css right now and the setting it to visible in the jquery like this $("#aboutContainer").css("display","visible"); but it's not working Quote Link to comment https://forums.phpfreaks.com/topic/183626-help-with-jquery/ Share on other sites More sharing options...
rajivgonsalves Posted December 1, 2009 Share Posted December 1, 2009 $("#aboutContainer").show() Quote Link to comment https://forums.phpfreaks.com/topic/183626-help-with-jquery/#findComment-969182 Share on other sites More sharing options...
CyberShot Posted December 1, 2009 Author Share Posted December 1, 2009 yea, that made it show, but the same problem, the content shows before the slide is finished http://creativeeventsdesign.com/vCard/ click the about link Quote Link to comment https://forums.phpfreaks.com/topic/183626-help-with-jquery/#findComment-969184 Share on other sites More sharing options...
rajivgonsalves Posted December 1, 2009 Share Posted December 1, 2009 that only means you embedded the code at the wrong place you will have to embed it where the slide show ends Quote Link to comment https://forums.phpfreaks.com/topic/183626-help-with-jquery/#findComment-969188 Share on other sites More sharing options...
CyberShot Posted December 1, 2009 Author Share Posted December 1, 2009 i don't understand what you mean. The code is in a container, the jquery hides that container and then shows it. Quote Link to comment https://forums.phpfreaks.com/topic/183626-help-with-jquery/#findComment-969189 Share on other sites More sharing options...
rajivgonsalves Posted December 1, 2009 Share Posted December 1, 2009 your code should be something like .sildeDown('slow', function(){ $("#aboutContainer").show();}); Quote Link to comment https://forums.phpfreaks.com/topic/183626-help-with-jquery/#findComment-969193 Share on other sites More sharing options...
CyberShot Posted December 1, 2009 Author Share Posted December 1, 2009 that isn't working for me. I will keep playing with what you posted. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/183626-help-with-jquery/#findComment-969202 Share on other sites More sharing options...
rajivgonsalves Posted December 1, 2009 Share Posted December 1, 2009 I looked into your code change the aboutContainer position to relative rather than absolute in your css then you can use this code $("#headerBottom p:eq(4)").hide(); $("#content span").hide(); $("#content span:eq(1)").slideDown(); $("#headerBottom p").hide(); $("#headerBottom p:eq(0)").show(); Quote Link to comment https://forums.phpfreaks.com/topic/183626-help-with-jquery/#findComment-969207 Share on other sites More sharing options...
CyberShot Posted December 1, 2009 Author Share Posted December 1, 2009 it looks like it worked. Thanks, that saved me about 8 hours worth of work. I kow it would have taken me all day to figure that out. Now, can you exlplain why changing it to relative over absolute did the trick? Quote Link to comment https://forums.phpfreaks.com/topic/183626-help-with-jquery/#findComment-969215 Share on other sites More sharing options...
rajivgonsalves Posted December 1, 2009 Share Posted December 1, 2009 Not too sure about that , I think it is because absolute will make it a child of body rather than the div its inclosed in, not sure of that though it was just a hunch Quote Link to comment https://forums.phpfreaks.com/topic/183626-help-with-jquery/#findComment-969220 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.