Version compl�te: jsB@nk » Email » Envoyer à un ami script
URL: https://www.javascriptbank.com/tell-a-friend.html
Vous pouvez combiner cette JavaScript avec l'un de dynamique des langues de programmation Web pour envoyer ce site à vos amis.
Version compl�te: jsB@nk » Email » Envoyer à un ami script
URL: https://www.javascriptbank.com/tell-a-friend.html
<SCRIPT LANGUAGE="JavaScript"><!-- Beginvar initialsubj="Hay buddy, take a look at this"var initialmsg="Hi:\n You may want to check out this site: "+window.locationvar good;function checkEmailAddress(field) {var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|(\.coop)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi);if (goodEmail) {good = true;}else {alert('Please enter a valid address.');field.focus();field.select();good = false; }}u = window.location;function mailThisUrl() {good = falsecheckEmailAddress(document.eMailer.email);if (good) {//window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+document.title+" "+u;window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+initialmsg }}// End --></script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<form name="eMailer">Tell a friend:<input type="text" name="email" size="26" value=" Enter Address Here" onFocus="this.value=''" onMouseOver="window.status='Enter email address here and tell a friend about this site...'; return true" onMouseOut="window.status='';return true"><br><input type="button" value="Send this URL" onMouseOver="window.status='Click to send an email (with this page address) to a friend! Enter email address above...'; return true" onMouseOut="window.status='';return true" onClick="mailThisUrl();"></form><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->