SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Sep 2008
    Posts
    341
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Looking for jQuery script that fixes elements to the screen when click

    The page displays allowing for JS to be off and all content is visible.

    As an improvement, if JS is on I would like the JS to hide a selected div and then only display it when a button is clicked. Clicking that button shows the content at the top of the screen and clicking a 'close' button will close it.

    I'm looking for a jQuery script that would do this.

    Obviously something like FancyBox does, but I'm looking for a lightweight one that just does this pretty simple thing.

    I'm really looking at this for improved menu options. The navigation is hidden with JS and then displayed when they click a button.

    Any recommendations?

  2. #2
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Location
    Florida
    Posts
    58
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    uhm jquery

    $("#div_id").toggle();

    http://api.jquery.com/toggle/


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
  •