...

View Full Version : Popup information script



levani
03-22-2009, 07:17 PM
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?

Thanks

Old Pedant
03-22-2009, 09:41 PM
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:
http://www.ArtsOfSnohomish.org
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:


<body>
<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 ... ?>
</div>
...

And then no more than a dozen lines of JS code will pop that div on wherever you want it.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum