PDA

View Full Version : Exitable/Closable boxes with scrollers code?



madnhate
08-06-2011, 07:11 AM
I've been checking up on dynamic ways of building a webpage.

I noticed the boxes here on this webpage can appear and disappear with scroll bars.

Is there a way to make a div box close with a button? Or appear after you click on a link or another div box?


Example of Div Box that can appear and close (http://tympanus.net/Tutorials/MovingBoxesContent/)

XManBG
08-06-2011, 09:11 PM
Of course there is a way. What about just use jQuery:



$("class or id of close button").click(function(){$("class or id of content to disappear").hide();});

$("class or id of link or button").click(function(){$("class or id of content to appear").show();});

Just check the jQuery documentation to see, how those functions are to be used!!

Cheers

madnhate
10-31-2011, 01:18 AM
Is there a way to make it like that example where it's fluid? As in you don't go to another page. (or so it seems to not load another link/page)

When you press exit is the div being hidden or something?

I'm wondering how to make it that way because it reminds me of a lot of the flash websites where you are always on the same page but the content can change.