الأربعاء، 29 يونيو 2016

كود اخبر صديقك عن موقعنا

  <script LANGUAGE="JavaScript">
<!-- Begin

///* Tell-a-friend script                                   */
///* Carl Dimmer                                            */
///* Translated By www.star28.com                           */
///* Visit our site at http://www.star28.com/ for more code */

var initialsubj="السلام عليكم"
var initialmsg="مرحبا:\n .... أثناء تجولي في الانترنت وجدت هذا الموقع و أتمنى أن ينال اعجابك ....... تحياتي لك: "+window.location
var 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('يرجى أدخال بريد الكتروني صحيح');
field.focus();
field.select();
good = false;
   }
}
u = window.location;
function mailThisUrl() {
good = false
checkEmailAddress(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>
   
  <table borderColor="#000033" cellSpacing="3" cellPadding="2" width="250" border="1" bgcolor="#006699">
<tr>
          <td bgColor="#99FFFF">
            <p align="center">
<font color="#000000" face="tahoma" size="2">أخبر
        صديقك عن موقعنا</FONT></P></TD></TR>
<tr>
          <td align="center"><form name="eMailer">
     <input maxLength="25" type="text" name="email" size="20" value="اكتب البريد الالكتروني" onFocus="this.value=''" onMouseOver="window.status='Enter email address here and tell a friend about this site...'; return true" onMouseOut="window.status='';return true">
        <input type="button" value="ارســـال" 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();" style="color: #FFFFFF; font-family: Tahoma; background-color: #660066; border: 0">
           </form>
</TD></TR>
</TABLE>

ليست هناك تعليقات:

إرسال تعليق