PDA

View Full Version : show hide div



why not
08-29-2010, 11:28 AM
Hi,
i have 3 link in top of page. now how to add div for each link after click .
Example :
LINK 1 | LINK2 |LINK3
When Click Link 1 Open Div and Show Loading Message . . . . . ( comment form using Php include or External page ) and after send comment close(hide) Div Automatic.
When Click Link 2 Open Div and Show Loading Message . . . . . ( tell friends form using Php include or External page ) and after send tell friends close(hide) Div Automatic.
Link3 ...............................

Thanks

phpbasic.com
08-29-2010, 12:53 PM
Try to use this lightbox: http://jquery.phpbasic.com/divbox
Look example for ajax load file

why not
08-29-2010, 06:49 PM
Try to use this lightbox: http://jquery.phpbasic.com/divbox
Look example for ajax load file

your Example is lightbox or facebox or divbox or any other name. this is false.
My mean :

<div>link1 | link2 | link3</div>
<div id="content load"></div> ( this Div For Show and hidden . . . . . )
thanks

Beverleyh
08-30-2010, 10:07 AM
Look into jQuery - it might also be useful, particularly the show(), hide() and load() functions.
Once you research these (plus examples), you should be able to build what you require.

why not
08-30-2010, 08:06 PM
Look into jQuery - it might also be useful, particularly the show(), hide() and load() functions.
Once you research these (plus examples), you should be able to build what you require.

Yea! jquery is useful. But I Dont find any example . can you and any one help me for any example and code?

bluewalrus
08-30-2010, 08:10 PM
Examples:

http://api.jquery.com/show/
http://api.jquery.com/load/