Looking for a script in DHTML
hey everyone, new guy here, i've seen this script everywhere and can't seem to find it anywhere. It's a window that will float out from the right side usually in about a 400x400 box and on the top and bottom or just the top allow you to click to close.
The window will float out above your content when a user enters the page but doesn't seem to show up everytime, i'm assuming it may have some type of display setting to it.
Anyone have any ideas?
Thanks in advance,
or something else from http://www.dynamicdrive.com/dynamicindex8/ can probably work for your needs with some adjustments.
As for remembering to only show it once, that's likely done by a cookie. The only two ways that are really possible are to track IP address and cookie. IP would be done on the server with a database, and probably a bit more work than you'd want for this, as well as not working great, since IPs change infrequently (frequently for dialup users, though), and this would cause some users to possibly not get the popup if they currently have an IP that has already been to your site.
The other downside to cookies is that they are cleared when the browser cash is cleared, so it will have no cookie every once in a while. Hopefully, though, you're "important announcement" or whatever, would rotate somewhat often, or something, so that would even make sense. Or they'd just see it every few weeks or something, which is probably fine too.
Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Nice script djr33. I dig it.
You might also want to look at Lightbox, its a very easy solution and might be what you mean.
I would set the cookie to expire in 24 hours.