ورود به حساب ثبت نام جدید فراموشی کلمه عبور
برای ورود به حساب کاربری خود، نام کاربری و کلمه عبورتان را در زیر وارد کرده و روی “ ورود به حساب” کلیک کنید.





اگر فرم ثبت نام برای شما نمایش داده نمیشود، اینجا را کلیک کنید.









اگر فرم بازیابی کلمه عبور برای شما نمایش داده نمیشود، اینجا را کلیک کنید.





صفحه 2 از 5 نخست 12345 آخرین
نمایش نتایج: از 11 به 20 از 44
  1. #11
    javanr0d
    پاسخگو و راهنما
    تاریخ عضویت
    1970 Jan
    محل سکونت
    VisualStudio
    نوشته ها
    192
    45
    161

    موضوع اسكريپت All Lower Case

    اين اسكريپت تبديل كننده تمام ورودي يك فيلد متني به حروف كوچك مي باشد .
    کد HTML:
    <!-- ONE STEP TO INSTALL ALL LOWER CASE:
    
      1.  Copy the coding into the BODY of your HTML document  -->
    
    <!-- STEP ONE: Paste this code into the BODY of your HTML document  -->
    
    <BODY>
    
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://WWW.OSTADONLINE.COM-->
    
    <center>
    <form name="capsform">
    <input type="text" name="caps" size=40 value="" onChange="javascript:this.value=this.value.toLowerCase();">
    <br>
    <input type="button" value="Ok!">
    </form>
    </center>
    
    <p><center>
    <font face="arial, helvetica" size="-2">Free JavaScripts provided by ostadonline<br>
    
    
    <!-- Script Size:  0.55 KB -->
  2. 1
  3. #12
    javanr0d
    پاسخگو و راهنما
    تاریخ عضویت
    1970 Jan
    محل سکونت
    VisualStudio
    نوشته ها
    192
    45
    161

    موضوع اسكريپت ايجاد يك Pop Up

    ايجاد يك Pop Up كه بتوان با طول و عرض خاصي و داشتن Scroll در جاي مشخص از صفحه و به URL مشخص مي باشد .
    کد HTML:
    < !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    < !-- TWO STEPS TO INSTALL CUSTOMIZED POPUP:
    
      1.  Copy the coding into the HEAD of your HTML document
      2.  Add the last code into the BODY of your HTML document  -- >< !-- STEP ONE: Paste this code into the HEAD of your HTML document  -- >< HTML >< HEAD >
    < META http-equiv=Content-Type content="text/html; charset=utf-8" >
    < SCRIPT language=JavaScript >
    
    
    < !-- Begin
    function popupPage(l, t, w, h) {
    var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes" +
    ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
    
    var URL = "http://www.ostadonline.com";
    popup = window.open(URL,"MenuPopup",windowprops);
    }
    //  End -- >
    < /SCRIPT >
    < !-- STEP TWO: Copy this code into the BODY of your HTML document  -- >
    < META content="MSHTML 6.00.2800.1106" name=GENERATOR >< /HEAD >
    < BODY >
    < CENTER >
    < TABLE >
      < TBODY >
      < TR >
        < TD >
          < FORM name=popupform >< PRE >Customize Your Popup Window!< BR >
    Distance from left edge:  < INPUT maxLength=4 size=2 name=left > pixels
    Distance from top edge:   < INPUT maxLength=4 size=2 name=top > pixels
    
    Width of popup window:    < INPUT maxLength=4 size=2 name=width > pixels
    Height of popup window:   < INPUT maxLength=4 size=2 name=height > pixels
    < /PRE >
          < CENTER >< INPUT onclick="popupPage(this.form.left.value, this.form.top.value, this.form.width.value, this.form.height.value)" type=button value="Open the Popup!" > 
          < /CENTER >< /FORM >< /TD >< /TR >< /TBODY >< /TABLE >< /CENTER >
    < P >
    < CENTER >< FONT face="arial, helvetica" size=-2 >Free JavaScripts provided 
    ostadonline < !-- Script Size:  1.48 KB -- >< /FONT >< /CENTER >< /BODY >< /HTML >
  4. 1
  5. #13
    javanr0d
    پاسخگو و راهنما
    تاریخ عضویت
    1970 Jan
    محل سکونت
    VisualStudio
    نوشته ها
    192
    45
    161

    موضوع اسكريپت حساسيت ميدان Password به حروف بزرگ

    اين اسكريپت زمان نوشتن كلمه ي رمز در ميدان متني در صورتيكه كليد Caps Lock كاربر روشن باشد پيغام خطا مي دهد .
    کد HTML:
    <!-- ONE STEP TO INSTALL CHECK CAP LOCKS:
    
      1.  Copy the coding into the BODY of your HTML document  -->
    
    <!-- STEP ONE: Paste this code into the BODY of your HTML document  -->
    
    <BODY>
    
    <SCRIPT LANGUAGE="JavaScript">
    
    <!-- Begin
    function checkCapsLock( e ) {
    	var myKeyCode=0;
    	var myShiftKey=false;
    	var myMsg='Caps Lock is On.\n\nTo prevent entering your password incorrectly,\nyou should press Caps Lock to turn it off.';
    
    	// Internet Explorer 4+
    	if ( document.all ) {
    		myKeyCode=e.keyCode;
    		myShiftKey=e.shiftKey;
    
    	// Netscape 4
    	} else if ( document.layers ) {
    		myKeyCode=e.which;
    		myShiftKey=( myKeyCode == 16 ) ? true : false;
    
    	// Netscape 6
    	} else if ( document.getElementById ) {
    		myKeyCode=e.which;
    		myShiftKey=( myKeyCode == 16 ) ? true : false;
    
    	}
    
    	// Upper case letters are seen without depressing the Shift key, therefore Caps Lock is on
    	if ( ( myKeyCode >= 65 && myKeyCode <= 90 ) && !myShiftKey ) {
    		alert( myMsg );
    
    	// Lower case letters are seen while depressing the Shift key, therefore Caps Lock is on
    	} else if ( ( myKeyCode >= 97 && myKeyCode <= 122 ) && myShiftKey ) {
    		alert( myMsg );
    
    	}
    }
    //  End -->
    </script>
    <FORM>
    <STRONG>Password:</STRONG>
    <INPUT TYPE="Password" NAME="Password" SIZE=16 MAXLENGTH=16 onKeyPress="checkCapsLock( event )">
    <P>
    <INPUT TYPE="Reset">
    </FORM>
    
    <p><center>
    <font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
    by ostadonline
    
    <!-- Script Size:  1.71 KB -->
  6. #14
    javanr0d
    پاسخگو و راهنما
    تاریخ عضویت
    1970 Jan
    محل سکونت
    VisualStudio
    نوشته ها
    192
    45
    161

    موضوع اسكريپت اتصال به URL از طريق يك Checkbox

    اين اسكريپت هنگامي كه كاربر بر روي Check box تيك مي زند به URL خاصي هدايت مي شود.
    کد HTML:
    <!-- ONE STEP TO INSTALL CHECKBOX LINK:
    
      1.  Copy the coding into the BODY of your HTML document  -->
    
    <!-- STEP ONE: Paste this code into the BODY of your HTML document  -->
    
    <BODY>
    
    
    
    <center>
    <form>
    <input type=checkbox onclick="window.location='http://www.OSTADONLINE.com/index.asp'; return true;">New JavaScripts
    </form>
    </center>
    
    <p><center>
    <font face="arial, helvetica" size"-2">Free JavaScripts provided by ostadonline
  7. 1
  8. #15
    javanr0d
    پاسخگو و راهنما
    تاریخ عضویت
    1970 Jan
    محل سکونت
    VisualStudio
    نوشته ها
    192
    45
    161

    موضوع اسكريپت بستن پنجره

    با بكار بردن اين اسكريپت بعد از مدت زمانيكه مقدار آن در كد نويسي تعريف مي شود پيغامي مبني بر تاييد بسته شدن پنجره براي كاربر ظاهر خواهد شد .
    کد HTML:
    <!-- ONE STEP TO INSTALL CLOSE WINDOW:
    
      1.  Add the onLoad event handler into the BODY tag  -->
    
    <!-- STEP ONE: Insert the onLoad event handler into your BODY tag  -->
    
    <BODY onLoad="setTimeout(window.close, 5000)">
    
    
    <!-- Then use the script at
    
    http://navigation.javascriptsource.com/popup-page.html
    
    to easily open a window, and then this one if you
    need to close it after a certain number of seconds.
    
    -->
    
    <p><center>
    <font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
    by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
    </center><p>
    
    <!-- Script Size:  0.57 KB -->
  9. 1
  10. #16
    javanr0d
    پاسخگو و راهنما
    تاریخ عضویت
    1970 Jan
    محل سکونت
    VisualStudio
    نوشته ها
    192
    45
    161

    موضوع اسكريپت سفارشي كردن يك پنجره

    اين اسكريپت به كاربر اجازه مي دهد كه يك پنجره ي جديد با شرايطي كاملا دلخواه و اختياري ايجاد كند .
    کد HTML:
    <!-- TWO STEPS TO INSTALL CUSTOMIZED WINDOW:
    
       1.  Paste the coding into the HEAD of your HTML document
       2.  Put the last code into the BODY of your HTML document  -->
    
    <!--  STEP ONE: Copy this code into the HEAD of your HTML document  -->
    
    <HEAD>
    
    <SCRIPT LANGUAGE="JavaScript">
    
    
    <!-- Begin
    function customize(form) {    
    var address = document.form1.url.value;   
    var op_tool  = (document.form1.tool.checked== true)  ? 1 : 0;    
    var op_loc_box  = (document.form1.loc_box.checked == true)  ? 1 : 0;    
    var op_dir  = (document.form1.dir.checked == true)  ? 1 : 0;    
    var op_stat  = (document.form1.stat.checked == true)  ? 1 : 0;    
    var op_menu  = (document.form1.menu.checked == true)  ? 1 : 0;    
    var op_scroll  = (document.form1.scroll.checked == true)  ? 1 : 0;    
    var op_resize  = (document.form1.resize.checked == true)  ? 1 : 0;    
    var op_wid  = document.form1.wid.value;   
    var op_heigh = document.form1.heigh.value;                 
    var option = "toolbar="+ op_tool +",location="+ op_loc_box +",directories=" 
    + op_dir +",status="+ op_stat +",menubar="+ op_menu +",scrollbars="  
    + op_scroll +",resizable="  + op_resize +",width=" + op_wid +",height="+ op_heigh;
    var win3 = window.open("", "what_I_want", option);  
    var win4 = window.open(address, "what_I_want");
    }
    function clear(form) { 
    document.form1.wid.value=""; 
    document.form1.heigh.value="";
    }
    // End -->
    </SCRIPT>
    
    <!--  STEP TWO: Copy this code into the BODY of your HTML document  -->
    
    <BODY>
    
    <CENTER>
    <h4>Please choose from the following selections to customize your window</h4>
    <br>
    <TABLE cellpadding=5 border><TR><TD><PRE> 
    <FORM name=form1  ACTION="javascript:" METHOD="POST">
    <INPUT TYPE="text" NAME="url" value="http://www.ostadonline.com" >: URL
    <INPUT TYPE="checkbox" NAME="tool">: Toolbar
    <INPUT TYPE="checkbox" NAME="loc_box">: Location
    <INPUT TYPE="checkbox" NAME="dir">: Directories
    <INPUT TYPE="checkbox" NAME="stat">: Status
    <INPUT TYPE="checkbox" NAME="menu">: Menubar
    <INPUT TYPE="checkbox" NAME="scroll">: Scrollbars
    <INPUT TYPE="checkbox" NAME="resize">: Resizable
    <INPUT TYPE="text"   NAME="wid" value= >: Width
    <INPUT TYPE="text"  NAME="heigh" value=>: Height
    <BR><CENTER>
    <INPUT TYPE="button" VALUE="=ENTER=" OnClick="customize(this.form)">
    <INPUT TYPE="reset" VALUE="=RESET=" onClick="clear(this.form)">
    </PRE></TD></TR></TABLE>
    </FORM>
    </CENTER>
    
    <p><center>
    <font face="arial, helvetica" size="-2">Free JavaScripts provided by ostadonline
    
    <!-- Script Size:  2.54 KB  -->
  11. 1
  12. #17
    javanr0d
    پاسخگو و راهنما
    تاریخ عضویت
    1970 Jan
    محل سکونت
    VisualStudio
    نوشته ها
    192
    45
    161

    موضوع اسكريپت تاريخ و زمان جاري

    اين اسكريپت تاريخ و زمان جاري را به كاربر نشان مي دهد .
    کد HTML:
    <!-- ONE STEP TO INSTALL CURRENT DATE & TIME (SHORT):
    
       1.  Put the last code into the BODY of your HTML document  -->
    
    <!-- STEP ONE: Copy this code into the BODY of your HTML document  -->
    
    <BODY>
    
    <SCRIPT>
    document.write(Date()+".")
    </SCRIPT>
    
    <p><center>
    <font face="arial, helvetica" size="-2">Free JavaScripts provided by ostadonline
    
    <!-- Script Size:  0.30 KB  -->
  13. 1
  14. #18
    javanr0d
    پاسخگو و راهنما
    تاریخ عضویت
    1970 Jan
    محل سکونت
    VisualStudio
    نوشته ها
    192
    45
    161

    موضوع اسكريپت تاييد اعداد در مبناي هگزا دسيمال در Edit Box

    اين اسكريپت به كاربر اجازه مي دهد كه فقط اعداد در مبناي دسيمال را وارد ميدان متني شود و بقيه ي اعداد توسط اين اسكريپت باز گردانده مي شود . براي مثال وقتي شما اعداد 99 يا 99.9 يا 99.99 را وارد كنيد پيغام خطا ظاهر نمي شود ولي عدد 99.999 باز گردانده مي شود .
    کد HTML:
    <!-- TWO STEPS TO INSTALL DECIMALS ALLOWED:
    
      1.  Copy the coding into the HEAD of your HTML document
      2.  Add the last code into the BODY of your HTML document  -->
    
    <!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->
    
    <HEAD>
    
    <SCRIPT LANGUAGE="JavaScript">
    
    
    <!-- Begin
    function checkDecimals(fieldName, fieldValue) {
    
    decallowed = 2;  // how many decimals are allowed?
    
    if (isNaN(fieldValue) || fieldValue == "") {
    alert("Oops!  That does not appear to be a valid number.  Please try again.");
    fieldName.select();
    fieldName.focus();
    }
    else {
    if (fieldValue.indexOf('.') == -1) fieldValue += ".";
    dectext = fieldValue.substring(fieldValue.indexOf('.')+1, fieldValue.length);
    
    if (dectext.length > decallowed)
    {
    alert ("Oops!  Please enter a number with up to " + decallowed + " decimal places.  Please try again.");
    fieldName.select();
    fieldName.focus();
          }
    else {
    alert ("That number validated successfully.");
          }
       }
    }
    //  End -->
    </script>
    </HEAD>
    
    <!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
    
    <BODY>
    
    <center>
    <form>
    Please enter a number with up to 2 decimal places:  <br>
    <input type=text name=numbox>
    <input type=button name=ok value="Ok" onClick="checkDecimals(this.form.numbox, this.form.numbox.value)">
    </form>
    </center>
    
    <p><center>
    <font face="arial, helvetica" SIZE="-2">Free JavaScripts provided by ostadonline
    
    <!-- Script Size:  1.42 KB -->
  15. 1
  16. #19
    javanr0d
    پاسخگو و راهنما
    تاریخ عضویت
    1970 Jan
    محل سکونت
    VisualStudio
    نوشته ها
    192
    45
    161

    موضوع اسكريپت منوهاي قابل ويرايش

    اين اسكريپت به كاربر اجازه مي دهد كه مواردي كه در منوهاي انتخابي وجود دارد را به دلخواه خود ويرايش كند ضمنا در اين منو مي توانيد مواردي كه غير قابل ويرايش باشند را نيز اضافه كنيد .
    کد HTML:
    <!-- TWO STEPS TO INSTALL EDITABLE MENU:
    
      1.  Copy the coding into the HEAD of your HTML document
      2.  Add the last code into the BODY of your HTML document  -->
    
    <!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->
    
    <HEAD>
    
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Original:  Cyanide_7 (leo7278@hotmail.com) -->
    <!-- Web Site:  http://www7.ewebcity.com/cyanide7 -->
    
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    
    <!-- Begin
    var o = null;
    var isNN = (navigator.appName.indexOf("Netscape")!=-1);
    function beginEditing(menu) {
    finish();
    if(menu[menu.selectedIndex].value != "read-only") {
    o = new Object();
    o.editOption = menu[menu.selectedIndex];
    o.editOption.old = o.editOption.text;
    o.editOption.text = "_";
    menu.blur();
    window.focus();
    document.onkeypress = keyPressHandler;
    }
    function keyPressHandler(e){
    var option = o.editOption;
    var keyCode = (isNN) ? e.which : event.keyCode;
    if(keyCode == 8 || keyCode == 37)
    option.text = option.text.substring(0,option.text.length-2) + "_";
    else if (keyCode == 13) {
    finish();
    } else
    option.text = option.text.substring(0,option.text.length-1) + String.fromCharCode(keyCode) + "_";
    status = keyCode;
    }
    function finish() {
    if(o != null) {
    option = o.editOption;
    if(option.text.length > 1)
    option.text = option.text.substring(0,option.text.length-1);
    else
    option.text = option.old;
    document.onkeypress = null;
    o = null;
          }
       }
    }
    //  End -->
    </script>
    </HEAD>
    
    <!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
    
    <BODY>
    
    <center>
    <form>
    <select onChange="beginEditing(this);" size=7>
    <option value="read-only">Select an option to edit it.</option>
    <option value="read-only">   ----------------------------              </option>
    <option value="last">SurName</option>
    <option value="first">FirstName</option>
    <option value="email">Email</option>
    <option value="add1">Address 1</option>
    <option value="add2">Address 2</option>
    </select>
    </form>
    </center>
    
    <p><center>
    <font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
    by ostadonline
    
    <!-- Script Size:  2.12 KB -->
  17. 1
  18. #20
    javanr0d
    پاسخگو و راهنما
    تاریخ عضویت
    1970 Jan
    محل سکونت
    VisualStudio
    نوشته ها
    192
    45
    161

    موضوع اسكريپت اخطار براي آدرس Email اشتباه

    اين اسكريپت چناچنه كاربر از كاراكترهاي نامناسب براي نوشتن آدرس Email استفاده كند پيغام خطا خواهد داد .
    کد HTML:
    <!-- TWO STEPS TO INSTALL EMAIL ADDRESS VALIDATION:
    
      1.  Copy the coding into the HEAD of your HTML document
      2.  Add the last code into the BODY of your HTML document  -->
    
    <!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->
    
    <HEAD>
    
    <SCRIPT LANGUAGE="JavaScript">
    
    
    
    <!-- Changes:
    /* 1.1.4: Fixed a bug where upper ASCII characters (i.e. accented letters
    international characters) were allowed.
    
    1.1.3: Added the restriction to only accept addresses ending in two
    letters (interpreted to be a country code) or one of the known
    TLDs (com, net, org, edu, int, mil, gov, arpa), including the
    new ones (biz, aero, name, coop, info, pro, museum).  One can
    easily update the list (if ICANN adds even more TLDs in the
    future) by updating the knownDomsPat variable near the
    top of the function.  Also, I added a variable at the top
    of the function that determines whether or not TLDs should be
    checked at all.  This is good if you are using this function
    internally (i.e. intranet site) where hostnames don't have to 
    conform to W3C standards and thus internal organization e-mail
    addresses don't have to either.
    Changed some of the logic so that the function will work properly
    with Netscape 6.
    
    1.1.2: Fixed a bug where trailing . in e-mail address was passing
    (the bug is actually in the weak regexp engine of the browser; I
    simplified the regexps to make it work).
    
    1.1.1: Removed restriction that countries must be preceded by a domain,
    so abc@host.uk is now legal.  However, there's still the 
    restriction that an address must end in a two or three letter
    word.
    
    1.1: Rewrote most of the function to conform more closely to RFC 822.
    
    1.0: Original  */
    // -->
    
    <!-- Begin
    function emailCheck (emailStr) {
    
    /* The following variable tells the rest of the function whether or not
    to verify that the address ends in a two-letter country or well-known
    TLD.  1 means check it, 0 means don't. */
    
    var checkTLD=1;
    
    /* The following is the list of known TLDs that an e-mail address must end with. */
    
    var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;
    
    /* The following pattern is used to check if the entered e-mail address
    fits the user@domain format.  It also is used to separate the username
    from the domain. */
    
    var emailPat=/^(.+)@(.+)$/;
    
    /* The following string represents the pattern for matching all special
    characters.  We don't want to allow special characters in the address. 
    These characters include ( ) < > @ , ; : \ " . [ ] */
    
    var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";
    
    /* The following string represents the range of characters allowed in a 
    username or domainname.  It really states which chars aren't allowed.*/
    
    var validChars="\[^\\s" + specialChars + "\]";
    
    /* The following pattern applies if the "user" is a quoted string (in
    which case, there are no rules about which characters are allowed
    and which aren't; anything goes).  E.g. "jiminy cricket"@disney.com
    is a legal e-mail address. */
    
    var quotedUser="(\"[^\"]*\")";
    
    /* The following pattern applies for domains that are IP addresses,
    rather than symbolic names.  E.g. joe@[123.124.233.4] is a legal
    e-mail address. NOTE: The square brackets are required. */
    
    var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
    
    /* The following string represents an atom (basically a series of non-special characters.) */
    
    var atom=validChars + '+';
    
    /* The following string represents one word in the typical username.
    For example, in john.doe@somewhere.com, john and doe are words.
    Basically, a word is either an atom or quoted string. */
    
    var word="(" + atom + "|" + quotedUser + ")";
    
    // The following pattern describes the structure of the user
    
    var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
    
    /* The following pattern describes the structure of a normal symbolic
    domain, as opposed to ipDomainPat, shown above. */
    
    var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");
    
    /* Finally, let's start trying to figure out if the supplied address is valid. */
    
    /* Begin with the coarse pattern to simply break up user@domain into
    different pieces that are easy to analyze. */
    
    var matchArray=emailStr.match(emailPat);
    
    if (matchArray==null) {
    
    /* Too many/few @'s or something; basically, this address doesn't
    even fit the general mould of a valid e-mail address. */
    
    alert("Email address seems incorrect (check @ and .'s)");
    return false;
    }
    var user=matchArray[1];
    var domain=matchArray[2];
    
    // Start by checking that only basic ASCII characters are in the strings (0-127).
    
    for (i=0; i<user.length; i++) {
    if (user.charCodeAt(i)>127) {
    alert("Ths username contains invalid characters.");
    return false;
       }
    }
    for (i=0; i<domain.length; i++) {
    if (domain.charCodeAt(i)>127) {
    alert("Ths domain name contains invalid characters.");
    return false;
       }
    }
    
    // See if "user" is valid 
    
    if (user.match(userPat)==null) {
    
    // user is not valid
    
    alert("The username doesn't seem to be valid.");
    return false;
    }
    
    /* if the e-mail address is at an IP address (as opposed to a symbolic
    host name) make sure the IP address is valid. */
    
    var IPArray=domain.match(ipDomainPat);
    if (IPArray!=null) {
    
    // this is an IP address
    
    for (var i=1;i<=4;i++) {
    if (IPArray[i]>255) {
    alert("Destination IP address is invalid!");
    return false;
       }
    }
    return true;
    }
    
    // Domain is symbolic name.  Check if it's valid.
     
    var atomPat=new RegExp("^" + atom + "$");
    var domArr=domain.split(".");
    var len=domArr.length;
    for (i=0;i<len;i++) {
    if (domArr[i].search(atomPat)==-1) {
    alert("The domain name does not seem to be valid.");
    return false;
       }
    }
    
    /* domain name seems valid, but now make sure that it ends in a
    known top-level domain (like com, edu, gov) or a two-letter word,
    representing country (uk, nl), and that there's a hostname preceding 
    the domain or country. */
    
    if (checkTLD && domArr[domArr.length-1].length!=2 && 
    domArr[domArr.length-1].search(knownDomsPat)==-1) {
    alert("The address must end in a well-known domain or two letter " + "country.");
    return false;
    }
    
    // Make sure there's a host name preceding the domain.
    
    if (len<2) {
    alert("This address is missing a hostname!");
    return false;
    }
    
    // If we've gotten this far, everything's valid!
    return true;
    }
    
    //  End -->
    </script>
    
    </HEAD>
    
    <!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
    
    <BODY>
    
    <form name=emailform onSubmit="return emailCheck(this.email.value)">
    Your Email Address:  <input type=text name="email"><br>
    <input type=submit value="Submit">
    </form>
    
    <p><center>
    <font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
    by ostadonline
    <!-- Script Size:  6.98 KB -->
  19. 1
صفحه 2 از 5 نخست 12345 آخرین
نمایش نتایج: از 11 به 20 از 44

اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. فریم ورک جاوااسکریپت
    توسط erfan در انجمن jQuery
    پاسخ: 0
    آخرين نوشته: 2012-06-24, 08:12 AM

کلمات کلیدی این موضوع

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •  

Content Relevant URLs by vBSEO 3.6.0 RC 2