Results 1 to 6 of 6

Thread: show hide div

  1. #1
    Join Date
    Feb 2008
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default show hide div

    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

  2. #2
    Join Date
    Jun 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Try to use this lightbox: http://jquery.phpbasic.com/divbox
    Look example for ajax load file

  3. #3
    Join Date
    Feb 2008
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by phpbasic.com View Post
    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 :
    HTML Code:
    <div>link1 | link2 | link3</div>
    <div id="content load"></div> ( this Div For Show and hidden . . . . . )
    thanks

  4. #4
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    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.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  5. #5
    Join Date
    Feb 2008
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Beverleyh View Post
    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?

  6. #6
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Corrections to my coding/thoughts welcome.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •