Page 2 of 17 FirstFirst 123412 ... LastLast
Results 11 to 20 of 161

Thread: Free JavaScript codes

  1. #11
    Hellas's Avatar
    Hellas is offline Very Unusual Member
    Join Date
    Dec 2008
    Location
    Bosnia
    Posts
    1,051
    Thanks
    214
    Thanked 292 Times in 205 Posts
    I need code that will hide email from spiders. Something like user see email@email.com
    but actualy its a javascript code and robots dont see it...

    I had one similar but I lost it. It was simple and I neded just to edit email adress in three parts of the code.

  2. #12
    ruben's Avatar
    ruben is offline Net Builder
    Join Date
    Oct 2009
    Posts
    378
    Blog Entries
    1
    Thanks
    44
    Thanked 56 Times in 47 Posts
    Quote Originally Posted by Hellas View Post
    I need code that will hide email from spiders. Something like user see email@email.com
    but actualy its a javascript code and robots dont see it...

    I had one similar but I lost it. It was simple and I neded just to edit email adress in three parts of the code.
    Why dont you use an image to display your email?

  3. #13
    Hellas's Avatar
    Hellas is offline Very Unusual Member
    Join Date
    Dec 2008
    Location
    Bosnia
    Posts
    1,051
    Thanks
    214
    Thanked 292 Times in 205 Posts
    But email is still in the code if I want it to be clickable.

    Code I had was simple end efficient.

    Unfortunatly i deleted .txt file where it was stored...

  4. #14
    ruben's Avatar
    ruben is offline Net Builder
    Join Date
    Oct 2009
    Posts
    378
    Blog Entries
    1
    Thanks
    44
    Thanked 56 Times in 47 Posts
    Quote Originally Posted by Hellas View Post
    But email is still in the code if I want it to be clickable.

    Code I had was simple end efficient.

    Unfortunatly i deleted .txt file where it was stored...
    http://labnol.blogspot.com/2006/03/hide-your-email-address-on-websites.html
    http://green-beast.com/blog/?p=38
    http://www.netmechanic.com/news/vol4/design_no21.htm

    I tried labnol's method works fine

  5. #15
    JavaScriptBank is offline Unknown Net Builder
    Join Date
    Sep 2009
    Posts
    151
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Top 10 JavaScript Frameworks by Google, Yahoo, Bing

    JavaScript - an indispensable part for developing websites and web pages, whether that is simple pages or professional website, and whether you are senior or junior. Nowadays, JavaScript frameworks be... detail at JavaScriptBank.com - 2.000+ free JavaScript codes


    How to setup







  6. #16
    JavaScriptBank is offline Unknown Net Builder
    Join Date
    Sep 2009
    Posts
    151
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Time Picker with child window

    This JavaScript code - date picker helps you choose a time through a popup window. Perhaps this feature is not new on [URL="http://www.javascriptbank.com/"]J... detail at JavaScriptBank.com - 2.000+ free JavaScript codes


    How to setup

    Step 1: Use JavaScript code below to setup the script
    JavaScript
    Code:
    <script language="JavaScript" type="text/javascript" src="timePicker.js">
    /*
    	Bassem R. Zohdy | bassem.zohdy@gmail.com
    */
    </script>
    Step 2: Copy & Paste HTML code below in your BODY section
    HTML
    Code:
    <form name="form1">
    	<input id="field" onkeydown="time(this.id)"/>
    </form>
    Step 3: must download files below
    Files
    down.jpg
    time.html
    timePicker.js
    up.jpg







  7. #17
    JavaScriptBank is offline Unknown Net Builder
    Join Date
    Sep 2009
    Posts
    151
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Fading Slide Show

    Displays images continuously in a slideshow presentation format, with a fade effect on image transitions. (Fade in Internet Explorer 4+ only).... detail at JavaScriptBank.com - 2.000+ free JavaScript codes


    How to setup

    Step 1: Place JavaScript below in your HEAD section
    JavaScript
    Code:
    <script>
    /* 
    	Original:  CodeLifter.com (support@codelifter.com)
    	Web Site:  http://www.codelifter.com 
    */
    
    // set the following variables
    // Set slideShowSpeed (milliseconds)
    var slideShowSpeed = 5000
    
    // Duration of crossfade (seconds)
    var crossFadeDuration = 3
    
    // Specify the image files
    var Pic = new Array() // don't touch this
    // to add more images, just continue
    // the pattern, adding to the array below
    Pic[0] = 'logojs.gif'
    Pic[1] = 'photo3.jpg'
    Pic[2] = 'logojs.gif'
    Pic[3] = 'photo5.jpg'
    Pic[4] = 'photo2.jpg'
    
    // do not edit anything below this line
    
    var t
    var j = 0
    var p = Pic.length
    var preLoad = new Array()
    for (i = 0; i < p; i++){
       preLoad[i] = new Image()
       preLoad[i].src = Pic[i]
    }
    
    function runSlideShow(){
       if (document.all){
          document.images.SlideShow.style.filter="blendTrans(duration=2)"
          document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
          document.images.SlideShow.filters.blendTrans.Apply()      
       }
       document.images.SlideShow.src = preLoad[j].src
       if (document.all){
          document.images.SlideShow.filters.blendTrans.Play()
       }
       j = j + 1
       if (j > (p-1)) j=0
       t = setTimeout('runSlideShow()', slideShowSpeed)
    }
    </script>
    	<!--
        	This script downloaded from www.JavaScriptBank.com
        	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
    	-->
    Step 2: Place HTML below in your BODY section
    HTML
    Code:
    <body onLoad="runSlideShow()">
    <img id="VU" src="logojs.gif" name='SlideShow'>
    </body>
    	<!--
        	This script downloaded from www.JavaScriptBank.com
        	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
    	-->






  8. #18
    JavaScriptBank is offline Unknown Net Builder
    Join Date
    Sep 2009
    Posts
    151
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Virtual Keyboard

    This JavaScript integrates complete virtual keyboard solution to the any web page. It does support mouse input, as well as keyboard input translation. Plain text and rich te... detail at JavaScriptBank.com - 2.000+ free JavaScript codes


    How to setup

    Step 1: Place JavaScript below in your HEAD section
    JavaScript
    Code:
    <script type="text/javascript" src="vk_loader.js" ></script>
    	<!--
        	This script downloaded from www.JavaScriptBank.com
        	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
    	-->
    Step 2: Copy & Paste HTML code below in your BODY section
    HTML
    Code:
    <form action="no.cgi" method="get">
          <div>
           Subject:<br />
    
           <input name="testa" id="testa" type="text" onfocus="VirtualKeyboard.attachInput(this)" /><br />
           Password (has keyboard animation disabled):<br />
           <input name="test_pwd" id="test_pwd" type="password" class="VK_no_animate" onfocus="VirtualKeyboard.attachInput(this)" /><br />
           Text:<br />
           <textarea name="testb" id="testb" type="text" cols="55" rows="10" wrap="soft" onfocus="VirtualKeyboard.attachInput(this)"></textarea>
           <br />
           <br />
    
           <div id="td"></div>
           <br />
           <input id="showkb" type="button" value="Keyboard" onclick="VirtualKeyboard.toggle('testb','td'); return false;" />
          </div>
          <div id="dbg">
          </div>
         </form>
         <script type="text/javascript">
             EM.addEventListener(window,'domload',function(){
                 /*
                 *  open the keyboard
                 */
                 VirtualKeyboard.toggle('testb','td');
                 var el = document.getElementById('sul')
                    ,lt = VirtualKeyboard.getLayouts()
                    ,dl = window.location.href.replace(/[?#].+/,"")
                 for (var i=0,lL=lt.length; i<lL; i++) {
                     var cl = lt[i];
                     cl = cl[0]+" "+cl[1];
                     lt[i] = "<a href=\""+dl+"?vk_layout="+cl+"\" onclick=\"VirtualKeyboard.switchLayout(this.title);return false;\" title=\""+cl+"\" alt=\""+cl+"\" >"+cl+"</a>"
                 }
                 el.innerHTML += "<li>"+lt.join("</li><li>")+"</li>";
             });
         </script>
    	<!--
        	This script downloaded from www.JavaScriptBank.com
        	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
    	-->
    Step 3: must download files below
    Files
    Virtual_Keyboard.zip







  9. #19
    JavaScriptBank is offline Unknown Net Builder
    Join Date
    Sep 2009
    Posts
    151
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Refresh Page - Automatic

    Keep your content fresh. Use this JavaScript to automatically reload a fresh copy of your Web page from the server. You determine the time de... detail at JavaScriptBank.com - 2.000+ free JavaScript codes


    How to setup

    Step 1: Copy & Paste JavaScript code below in your HEAD section
    JavaScript
    Code:
    <script type="text/javascript">
    <!-- Begin
    // Created by: Lee Underwood
    function reFresh() {
      window.open(location.reload(true))
    }
    /* Set the number below to the amount of delay, in milliseconds,
    you want between page reloads: 1 minute = 60000 milliseconds. */
    window.setInterval("reFresh()",300000);
    // End -->
    </script>
    	<!--
        	This script downloaded from www.JavaScriptBank.com
        	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
    	-->






  10. #20
    JavaScriptBank is offline Unknown Net Builder
    Join Date
    Sep 2009
    Posts
    151
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Validate E-Mail

    This JavaScript verifies that a string looks like a real e-mail address.... detail at JavaScriptBank.com - 2.000+ free JavaScript codes


    How to setup

    Step 1: Use JavaScript code below to setup the script
    JavaScript
    Code:
    <script language="javascript">
    // Created by: Francis Cocharrua :: http://scripts.franciscocharrua.com/
    
    function Validate_String(string, return_invalid_chars) {
      valid_chars = '1234567890-_.^~abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
      invalid_chars = '';
      if(string == null || string == '')
         return(true);
    
      //For every character on the string.   
      for(index = 0; index < string.length; index++) {
        char = string.substr(index, 1);                        
         
        //Is it a valid character?
        if(valid_chars.indexOf(char) == -1) {
          //If not, is it already on the list of invalid characters?
          if(invalid_chars.indexOf(char) == -1) {
            //If it's not, add it.
            if(invalid_chars == '')
              invalid_chars += char;
            else
              invalid_chars += ', ' + char;
          }
        }
      }
                
      //If the string does not contain invalid characters, the function will return true.
      //If it does, it will either return false or a list of the invalid characters used
      //in the string, depending on the value of the second parameter.
      if(return_invalid_chars == true && invalid_chars != '') {
        last_comma = invalid_chars.lastIndexOf(',');
        if(last_comma != -1)
          invalid_chars = invalid_chars.substr(0, $last_comma) + 
          ' and ' + invalid_chars.substr(last_comma + 1, invalid_chars.length);
        return(invalid_chars);
        }
      else
        return(invalid_chars == ''); 
    }
    
    
    function Validate_Email_Address(email_address){
      // Modified and tested by Thai Cao Phong, JavaScriptBank.com
      //Assumes that valid email addresses consist of user_name@domain.tld
      
      at = email_address.indexOf('@');
      dot = email_address.indexOf('.');
    
      if(at == -1 || 
        dot == -1 || 
        dot <= at + 1 ||
        dot == 0 || 
        dot == email_address.length - 1)
      {
      	alert("Invalid email");
        return(false);
      }
         
      user_name = email_address.substr(0, at);
      domain_name = email_address.substr(at + 1, email_address.length);                  
    
      if(Validate_String(user_name) === false || Validate_String(domain_name) === false)
      {
      	alert("Invalid email");
        return(false);
      }
    
      alert("Valid email");//return(true);
    }
    </script>
    	<!--
        	This script downloaded from www.JavaScriptBank.com
        	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
    	-->
    Step 2: Copy & Paste HTML code below in your BODY section
    HTML
    Code:
    <form name=f>
    <input type=text name=mail value="">
    <input type=button value=Check onclick="Validate_Email_Address(document.f.mail.value)">
    </form>
    	<!--
        	This script downloaded from www.JavaScriptBank.com
        	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
    	-->






Page 2 of 17 FirstFirst 123412 ... LastLast

Similar Threads

  1. Need Help In JavaScript
    By Zash in forum Programming
    Replies: 1
    Last Post: 10 September, 2010, 18:08 PM
  2. Javascript
    By Sbfc_ in forum Community Building
    Replies: 5
    Last Post: 19 March, 2010, 00:21 AM
  3. Javascript
    By KMRock in forum Programming
    Replies: 0
    Last Post: 29 July, 2009, 01:02 AM
  4. [WTH] $$ for Simple Javascript
    By MarxGrayscaleServices in forum Services
    Replies: 2
    Last Post: 31 May, 2009, 19:31 PM
  5. Use PHP functions in JavaScript
    By ankit in forum Programming
    Replies: 3
    Last Post: 31 May, 2009, 10:12 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •