View Full Version : cool e-mail popup - how?
Marbledog
10-26-2006, 12:30 PM
Hey - anyone know how to do this? I am not a programmer and the source code didn't make much sense to me.
On this site, click on any of the attorney e-mail addresses and a disclaimer pops up. I wanna do that!!! Can anyone figure out how?
http://www.sidlon.com/contacts.htm
Javascript...
The second Script in the Head of the source appears to be for this purpose ( function emailwarning() ) and is called for each link as:
onClick="return emailwarning();"
-Bob
Kevin
10-26-2006, 12:36 PM
It looks like a pretty simple javascript script. You should be able to modify it for your own needs without actually knowing javascript. If not there are plenty of books (and probably web sites) that teach it.
Of course people like me who run with java/javascript turned off for security reasons will never see it ;)
Marbledog
10-26-2006, 12:39 PM
Thanks - it was probably a stupid question but whatever. I wonder what happens when javascript is turned off though - will you still be able to open the e-mail address and it just bypasses the script?
Kevin
10-26-2006, 12:42 PM
It goes straight to the mailto: with no popup. That is one of the better javascripts since it leaves the site completely usable when disabled. You just don't see the popup.
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.