Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder levani's Avatar
    Join Date
    Mar 2009
    Thanked 1 Time in 1 Post

    Popup information script

    Looking for popup information script. Something like this http://www.dynamicdrive.com/dynamicindex1/popit.htm but the content must be PHP scritp! Have you got any?


  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Thanked 4,738 Times in 4,700 Posts
    Why would you think that the HTML and JavaScript code would be any different if you use PHP to generate the content versus simply hand-coding it???

    Honest, there's no diff. Just plop your PHP code inside of the <div> that needs to be popped on.

    Now...the code Dynamic Drive shows to do a popup is ridiculously complicated. If all you want is an info popup, you can do it like I do it here:
    Wait at the top of the page there for a few seconds for the little "Art" guy to pop into view. Then click on him. What you are seeing is an "info box" that pops up wherever Art happens to be at the time. The code is dirt easy. You can do a View==>>Source to see it.

    Anyway, my point is, if you just do:
    <div id="your choice" style="position: absolute; display: none; [any other styles];">
    <?PHP ... now you can use php code to fill in the contents of the popon ... ?>
    And then no more than a dozen lines of JS code will pop that div on wherever you want it.


    Posting Permissions

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