Need Popup with scrollbars that stas on top...

4 replies
For a website I'm working on, I'm looking for a way to add a popup (with scrollbars) which is triggered by clicking a link and stays on top while entering information on the main page. Does anyone have an idea which script to use?
#popup #scrollbars #stas #top
  • Profile picture of the author legendarywebco
    stays on top while entering information on the main page.
    Can you explain what you mean by that? If it's on top of the main page how are you going to enter information.
    {{ DiscussionBoard.errors[9893101].message }}
    • Profile picture of the author lookielookies
      I want to open a new (smaller) window when people click a link. In this window there will be some information they need to fill in the form on the main page.

      So the popup window is smaller - when it is moved to the side, people will have access to the form on the main page and be able to enter the information, while they still see the info in the 'popup' window.
      {{ DiscussionBoard.errors[9893160].message }}
      • Profile picture of the author legendarywebco
        This Javascript should do what you want. Just call popUp(); where you'd like to trigger it such as onclick etc.

        Code:
        function popUp()
        {
            var url = "popUpWillShowThis.php";    // page to show in popup
            var width = 700;    // popup width
            var height = 600;    // popup height
            var left = parseInt((screen.availWidth/2) - (width/2));
            var top = parseInt((screen.availHeight/2) - (height/2));
            var windowFeatures = "width=" + width + ",height=" + height +   
                ",status,resizable,left=" + left + ",top=" + top + 
                "screenX=" + left + ",screenY=" + top + ",scrollbars=yes";
        
            window.open(url, "subWind", windowFeatures, "POS");
        }
        {{ DiscussionBoard.errors[9894189].message }}
  • Profile picture of the author anees714
    Hi...,
    53+ Stylish Jquery Popup Plugins With Tutorials

    I think this article will help you to find what you are looking for.
    Regards
    {{ DiscussionBoard.errors[9926958].message }}

Trending Topics