SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2003
    Location
    Raleigh, NC
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Click to display a small window

    Hi,

    I'd like to implement the same sort of feature as the "Search" and "Quick Links" links on this site. You click them and, in the case of the Search one, a form appears to search.

    Is there a standalone Javascript tool that I can use on my site to implement this?

    David.

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,872
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Just set up a div that contains the content for the popup and use absolute positioning in the stylesheet to put it where you want over the rest of the page content. You then set the stylesheet to hide it. The Javascript then only needs to update the style to display and hide the div when you want it to appear and disappear.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


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
  •