+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 39
  1. #1
    JavaScriptBank.com is offline Junior Member
    Join Date
    Mar 2009
    Location
    JavaScriptBank.com - Free JavaScript Source Code
    Posts
    44

    JavaScript Collector

    JavaScript library

    Trivia Questions

    Answer the question correctly to advance to the next round. Includes a hidden form system that prevents the user from jumping to different questions.... detail

    [IMG]hxxp ://w w w.javascriptbank. com/javascript.images/game/trivia-questions.jpg[/IMG]
    Demo: Trivia Questions

    How to setup

    Step 1: Use JavaScript code below to setup the script
    JavaScript
    Code:
    <script language="JavaScript">
    // Jeremy Greenfield (paperairplane@noisebox. com )
    <!-- Begin
    function Round1()
    {
    Q1=prompt("Who invented the lightbulb?","Your Answer Here");
    if (Q1=="Thomas Edison")
    {
    alert("Correct!")
    document.verify.Question2.value="Granted"
    }
    else
    {
    alert("Incorrect! Try Again.")
    }
    }
    function Round2()
    {
    Q2=prompt("In science, H202 was one molecule of what?","Your Answer Here \(lower case\)")
    if (Q2=="hydrogen peroxide")
    {
    alert("Correct!")
    document.verify.Question3.value="Granted"
    }
    else
    {
    alert("Incorrect! Try Again.")
    }
    }
    function Round3()
    {
    Q3=prompt("Which state has the longest sea border?","Your Answer Here")
    if (Q3=="Alaska")
    {
    alert("Correct!")
    document.verify.Question4.value="Granted"
    }
    else
    {
    alert("Incorrect! Try Again.")
    }
    }
    function Round4()
    {
    Q4=prompt("The theory E=MC2 was made by whom?","Your Answer Here")
    if (Q4=="Albert Einstein")
    {
    alert("Correct!")
    document.verify.Question5.value="Granted"
    }
    else
    {
    alert("Incorrect! Try Again.")
    }
    }
    function Round5()
    {
    Q3=prompt("What is 12 to the third power? Do not use a calculator!","Your Answer Here \(do not include comma\)")
    if (Q3=="1728")
    {
    alert("Correct!")
    alert("You answered every question correctly! Congrats! \n\n\n\n\n\n\n\n\n Created By Jeremy Greenfield")
    alert("Thanks for playing!")
    }
    else
    {
    alert("Incorrect! Try Again.")
    }
    }
    function PendRound2()
    {
    if (document.verify.Question2.value=="Granted")
    {
    Round2()
    }
    if (document.verify.Question2.value=="Denied")
    {
    alert("You must answer the previous rounds correctly before advancing to this round.") 
    }
    }
    function PendRound3()
    {
    if (document.verify.Question3.value=="Granted")
    {
    Round3()
    }
    if (document.verify.Question3.value=="Denied")
    {
    alert("You must answer the previous rounds correctly before advancing to this round.") 
    }
    }
    function PendRound4()
    {
    if (document.verify.Question4.value=="Granted")
    {
    Round4()
    }
    if (document.verify.Question4.value=="Denied")
    {
    alert("You must answer the previous rounds correctly before advancing to this round.") 
    }
    }
    function PendRound5()
    {
    if (document.verify.Question5.value=="Granted")
    {
    Round5()
    }
    if (document.verify.Question5.value=="Denied")
    {
    alert("You must answer the previous rounds correctly before advancing to this round.") 
    }
    }
    //  End -->
    </script>
    	<!--
        	This script downloaded from w w w.JavaScriptBank. com
        	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
    	-->
    Step 2: Place HTML below in your BODY section
    HTML
    Code:
    <form name="verify">
    
    <input type="hidden" name="Question2" value="Denied"><input type="hidden" name="Question3" value="Denied"><input type="hidden" name="Question4" value="Denied"><input type="hidden" name="Question5" value="Denied">
    <input type="button" value="Round 1" name="R1" style="color: rgb(0, 0, 255); font-family: Courier New;" onclick="Round1()">
    <input type="button" value="Round 2" name="R3" style="color: rgb(0, 0, 255); font-family: Courier New;" onclick="PendRound2()">
    <input type="button" value="Round 3" name="R3" style="color: rgb(0, 0, 255); font-family: Courier New;" onclick="PendRound3()">
    <input type="button" value="Round 4" name="R4" style="color: rgb(0, 0, 255); font-family: Courier New;" onclick="PendRound4()">
    <input type="button" value="Round 5" name="R5" style="color: rgb(0, 0, 255); font-family: Courier New;" onclick="PendRound5()">
    </form>
    	<!--
        	This script downloaded from w w w.JavaScriptBank. com
        	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
    	-->
    Quote Originally Posted by Copyright
    The Site may provide, or third parties may provide, links to non-JavaScriptBank.com Internet World Wide Web sites or resources. Because JavaScriptBank.com has no control over such sites and resources, you acknowledge and agree that JavaScriptBank.com is not responsible for the availability of such external sites or resources, and does not endorse and is not responsible or liable for any content, advertising, products, or other materials on or available from such sites or resources. You further acknowledge and agree that JavaScriptBank.com shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods or services available on or through any such site or resource.

  2. #2
    JavaScriptBank.com is offline Junior Member
    Join Date
    Mar 2009
    Location
    JavaScriptBank.com - Free JavaScript Source Code
    Posts
    44

    Rank 'em

    Create a survey asking people to rank things, and this JavaScript will validate that everything is ranked, and no rankings are repeated. Could be adapted into a detail

    [IMG]hxxp ://w w w.javascriptbank. com/javascript.images/utility/rank-em.jpg[/IMG]
    Demo: Rank 'em

    How to setup

    Step 1: Use JavaScript code below to setup the script
    JavaScript
    Code:
    <SCRIPT LANGUAGE="JavaScript">
    // Kent Rauch (kent@restekcorp. com) | hxxp ://w w w.restekcorp. com
    <!-- Begin
    function validator() {
    // copyright 2002 Kent Rauch
    
     // global declaration
     badrank = false;
    
     rankem(1,4);
     rankem(2,5);
    
     if (!badrank) {
      // this is a "phony submit" for testing purposes
      document.clear();
      document.write("success! it be sweet<br>\n");
     }
    
    }
    
    // ---------------------------------------------------------
    // Validate ranking questions: each value used exactly once.
    
    function rankem(question, q_size) {
    // copyright 2002 Kent Rauch
    
     var aLert1 = "";
     var aLert2 = "";
    
     // supports up to 26 items to be ranked -- extend this array to increase
     var cal = "a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z";
     cal = cal.split('.');
    
     var a = 0;
    
     var irate = "rink" + question;
    
     eval(irate + " = new Object();");
    
     var myrate = "";
    
     for (var x = 0; x < q_size; ++x) {
      myrate = "q"+question+cal[x];
      eval(irate + "[" + x + "] = document.test_form." + myrate + ".selectedIndex");
      if (eval(irate + "[" + x + "]")) {
       ++a;
       for (var y = 0; y < x; ++y) {
        if (eval(irate + "[" + y + "]") == eval(irate + "[" + x + "]")) {
         aLert1 = "Question "+ question +": please use each ranking only once.\n";
        }
       }
      }
     }
    
     if (a != q_size) {
      aLert2 = "Question " + question +":please rank all items.\n";
     }
    
     var aLert = aLert1 + aLert2;
    
     if (aLert) {
      alert(aLert);
      badrank = true;
     }
    
    
    }
    //  End -->
    </script>
    	<!--
        	This script downloaded from w w w.JavaScriptBank. com
        	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
    	-->
    Step 2: Copy & Paste HTML code below in your BODY section
    HTML
    Code:
    <form name="test_form">
    <table border=0>
    <tr valign="top"><td>
    1. Ice Cream:<br>
    <select name="q1a"> <option><option>1<option>2<option>3<option>4 </select>
    vanilla<br>
    <select name="q1b"> <option><option>1<option>2<option>3<option>4 </select>
    
    chocolate<br>
    <select name="q1c"> <option><option>1<option>2<option>3<option>4 </select>
    raspberry<br>
    <select name="q1d"> <option><option>1<option>2<option>3<option>4 </select>
    mint<br>
    
    </td>
    <td width="80"> </td>
    <td>
    2. Cars:<br>
    <select name="q2a"> <option><option>1<option>2<option>3<option>4<option>5 </select>
    Corvette<br>
    <select name="q2b"> <option><option>1<option>2<option>3<option>4<option>5 </select>
    
    Mustang<br>
    <select name="q2c"> <option><option>1<option>2<option>3<option>4<option>5 </select>
    Testarosa<br>
    <select name="q2d"> <option><option>1<option>2<option>3<option>4<option>5 </select>
    
    Esprit<br>
    <select name="q2e"> <option><option>1<option>2<option>3<option>4<option>5 </select>
    RX-7<br>
    </td></tr>
    <tr><td colspan=2>
    <input type="button" onClick="validator();" value=" send survey ">
    </td></tr>
    </table>
    
    To set up a ranked-list survey question as in the examples above, name the <select>
    
    	s
    as q + the number of the question + a, b, c, etc. In this case, the form elements are named:<blockquote>q1a<br>q1b<br>q1c<br>q1d<br>q2a<br>q2b<br>q2c<br>q2d<br>q2e</blockquote><p>To use the validation, call rankem(a,b) where the parameters are the question number and its length.
    In this case, the form handler calls the function twice:<blockquote>rankem(1,4);<br>rankem(2,5);</blockquote><p>Each call will generate a separate alert if there's anything amiss. The global "badrank" variable
    is a status flag so the main form handler knows if it's allowed to submit(). Note that this demo
    doesn't acutally do a submit(); instead it just displays a message.
    
    
    </form>
    	<!--
        	This script downloaded from w w w.JavaScriptBank. com
        	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
    	-->





    JavaScript Bookmark Page script - JavaScript Color Wheel - JavaScript Image slideshow

  3. #3
    JavaScriptBank.com is offline Junior Member
    Join Date
    Mar 2009
    Location
    JavaScriptBank.com - Free JavaScript Source Code
    Posts
    44

    Flashs Colorful Squares

    This JavaScript creates the colorfull squares and the flashing background. Very nice.... detail

    [IMG]hxxp ://w w w.javascriptbank. com/javascript.images/background/flashs-colorful-squares.jpg[/IMG]
    Demo: Flashs Colorful Squares

    How to setup

    Step 1: Copy & Paste HTML code below in your BODY section
    HTML
    Code:
    <BODY bgColor=#aa00bb onload="setTimeout('bgchange()',100)">
    <TABLE border=0>
    
      <TBODY>
      <TR>
        <SCRIPT language=JavaScript>
    
    now=new Date;
    x=now.getTime() %32768;
    function Random(min,max) {
    x=(1103515245*x+12345) % 32768;
    return Math.floor(x*(max-min+1)/32768+min);
    }
    
    var colArray = new Array;
    colArray[1] = '0';
    colArray[2] = '1';
    colArray[3] = '2';
    colArray[4] = '3';
    colArray[5] = '4';
    colArray[6] = '5';
    colArray[7] = '6';
    colArray[8] = '7';
    colArray[9] = '8';
    colArray[10] = '9';
    colArray[11] = 'A';
    colArray[12] = 'B';
    colArray[13] = 'C';
    colArray[14] = 'D';
    colArray[15] = 'E';
    colArray[16] = 'F';
    var rancolor
    function rancol(){
    rancolor = colArray[Random(1,11)]+colArray[Random(1,11)]+colArray[Random(5,16)]+colArray[Random(5,16)]+colArray[Random(1,16)]+colArray[Random(1,16)];
    return rancolor;
    }
    
    function bgchange() {
    document.bgColor = rancol();
    setTimeout("bgchange()",1);
    }
    
    var j=0;
    for (var i=0;i!=180;i++) {
    j++;
    document.write('<td bgcolor=#'+ rancol() +'>        </td>');
    if (j == 15) {
    document.write('</tr><tr>');
    j = 0;
    }}
    
    document.write('</tr></table>');
    
        </SCRIPT>
    
      </TR></TBODY></TABLE>
    </body>
    	<!--
        	This script downloaded from w w w.JavaScriptBank. com
        	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
    	-->





    Javascript Music Player - Random Text Generator - Floating Image Script

  4. #4
    mrwhite is offline Junior Member
    Join Date
    Sep 2009
    Posts
    8
    Nice! Ever thought about writing some cell phone apps?

  5. #5
    JavaScriptBank.com is offline Junior Member
    Join Date
    Mar 2009
    Location
    JavaScriptBank.com - Free JavaScript Source Code
    Posts
    44

    Make link open in new tab/window

    Use this simple JavaScript to make all links on your web pages open in new tab/window. Script is easy to setup, you should save them into a f... detail

    [IMG]hxxp ://w w w.javascriptbank. com/javascript.images/link/make-link-open-in-new-tab-window.jpg[/IMG]
    Demo: Make link open in new tab/window

    How to setup

    Step 1: Copy & Paste JavaScript code below in your HEAD section
    JavaScript
    Code:
    <script language=javascript>
    /*
    	Kevin Yank
    	hxxp ://w w w.sitepoint. com/authorcontact/48
    */
    function externalLinks()
    {
      if (!document.getElementsByTagName) return;
      var anchors = document.getElementsByTagName("a");
      for (var i=0; i<anchors.length; i++)
      {
          var anchor = anchors[i];
          if(anchor.getAttribute("href"))
    		anchor.target = "_blank";
      }
    }
    window.onload = externalLinks;
    
    </script>
    	<!--
        	This script downloaded from w w w.JavaScriptBank. com
        	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
    	-->
    Step 2: Place HTML below in your BODY section
    HTML
    Code:
    <a href="hxxp ://javascriptbank. com/">Home</a> | 
    	<a href="hxxp ://javascriptbank. com/4rum/">Forum</a> | 
    	<a href="hxxp ://javascriptbank. com/javascript/">JavaScript</a> | 
    	<a href="hxxp ://javascriptbank. com/service/">Services</a> | 
    	<a href="hxxp ://javascriptbank. com/javascript/submit-javascript-bank.html">Submit script</a> | 
    	<a href="hxxp ://javascriptbank. com/thietkeweb/javascriptmall/">Documentary</a> | 
    	<a href="hxxp ://javascriptbank. com/javascript/contact-javascript-bank.html">Contact us</a> | 
    	<a href="hxxp ://javascriptbank. com/javascript/aboutus-javascript-bank.html">About us</a>
    	<!--
        	This script downloaded from w w w.JavaScriptBank. com
        	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
    	-->





    Command to print web page in javascript - Javascript Time Picker - JavaScript Go To URL Box

  6. #6
    JavaScriptBank.com is offline Junior Member
    Join Date
    Mar 2009
    Location
    JavaScriptBank.com - Free JavaScript Source Code
    Posts
    44

    Locked Textbox

    Prevent your visitors from modifying the value stored in a textbox (without using input type=hidden) Just try to change the text in the box! Amazingly, it's a short less than one line script!... detail

    [IMG]hxxp ://w w w.javascriptbank. com/javascript.images/snippet/locked-textbox.jpg[/IMG]
    Demo: Locked Textbox

    How to setup

    Step 1: Copy & Paste HTML code below in your BODY section
    HTML
    Code:
    <form name=form>
    
    <input type=text name=box value="Locked text!" onFocus="this.blur()" size=12>
    
    // an even more reliable method is to use:
    <input type=text name=box value="Locked text!" onChange="this.value='Locked text!';" size=12 readonly>
    
    </form>
    	<!--
        	This script downloaded from w w w.JavaScriptBank. com
        	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
    	-->





    Command to print web page in javascript - Javascript Time Picker - JavaScript Go To URL Box

  7. #7
    JavaScriptBank.com is offline Junior Member
    Join Date
    Mar 2009
    Location
    JavaScriptBank.com - Free JavaScript Source Code
    Posts
    44

    JavaScript Countdown Timer

    This JavaScript displays a countdown timer and alerts the user when the timer reaches zero. It then redirects to another Web ... detail

    [IMG]hxxp ://w w w.javascriptbank. com/javascript.images/time/countdown-timer.jpg[/IMG]
    Demo: JavaScript Countdown Timer

    How to setup

    Step 1: Copy & Paste CSS code below in your HEAD section
    CSS
    Code:
    <style type="text/css">
    #txt {
      border:none;
      font-family:verdana;
      font-size:16pt;
      font-weight:bold;
      border-right-color:#FFFFFF
    }
    
    </style>
    	<!--
        	This script downloaded from w w w.JavaScriptBank. com
        	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
    	-->
    Step 2: Place JavaScript below in your HEAD section
    JavaScript
    Code:
    <script language="javascript">
    // Created by: Neill Broderick :: hxxp ://w w w.bespoke-software-solutions.co.uk/downloads/downjs.php
    
    var mins
    var secs;
    
    function cd() {
     	mins = 1 * m("10"); // change minutes here
     	secs = 0 + s(":01"); // change seconds here (always add an additional second to your total)
     	redo();
    }
    
    function m(obj) {
     	for(var i = 0; i < obj.length; i++) {
      		if(obj.substring(i, i + 1) == ":")
      		break;
     	}
     	return(obj.substring(0, i));
    }
    
    function s(obj) {
     	for(var i = 0; i < obj.length; i++) {
      		if(obj.substring(i, i + 1) == ":")
      		break;
     	}
     	return(obj.substring(i + 1, obj.length));
    }
    
    function dis(mins,secs) {
     	var disp;
     	if(mins <= 9) {
      		disp = " 0";
     	} else {
      		disp = " ";
     	}
     	disp += mins + ":";
     	if(secs <= 9) {
      		disp += "0" + secs;
     	} else {
      		disp += secs;
     	}
     	return(disp);
    }
    
    function redo() {
     	secs--;
     	if(secs == -1) {
      		secs = 59;
      		mins--;
     	}
     	document.cd.disp.value = dis(mins,secs); // setup additional displays here.
     	if((mins == 0) && (secs == 0)) {
      		window.alert("Time is up. Press OK to continue."); // change timeout message as required
      		// window.location = "yourpage.htm" // redirects to specified page once timer ends and ok button is pressed
     	} else {
     		cd = setTimeout("redo()",1000);
     	}
    }
    
    function init() {
      cd();
    }
    window.onload = init;
    </script>
    	<!--
        	This script downloaded from w w w.JavaScriptBank. com
        	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
    	-->
    Step 3: Copy & Paste HTML code below in your BODY section
    HTML
    Code:
    <form name="cd">
    <input id="txt" readonly="true" type="text" value="10:00" border="0" name="disp">
    </form>
    	<!--
        	This script downloaded from w w w.JavaScriptBank. com
        	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
    	-->





    JavaScript Spotlight - JavaScript Validate E-Mail - AJAX Page Content Loader

  8. #8
    JavaScriptBank.com is offline Junior Member
    Join Date
    Mar 2009
    Location
    JavaScriptBank.com - Free JavaScript Source Code
    Posts
    44

    Image slideshow transition

    This JavaScript creates slideshow effect with one of transitions.... detail

    [IMG]hxxp ://w w w.javascriptbank. com/javascript.images/image/image-slideshow-transition.jpg[/IMG]
    Demo: Image slideshow transition

    How to setup

    Step 1: Place JavaScript below in your HEAD section
    JavaScript
    Code:
    <script LANGUAGE="JavaScript1.1">
    <!-- Beginning of JavaScript -
    
    messages = new Array()
    //anh dung de tao hieu ung
    messages[0] = "<img src=logojs.gif>"
    messages[1] = "<img src=photo1.jpg>"
    messages[2] = "<img src=photo2.jpg>"
    messages[3] = "<img src=photo3.jpg>"
    messages[4] = "<img src=photo4.jpg>"
    
    var i_messages = 0
    var timer
    
    function dotransition() {
        if (document.all) {
            content.filters[0].apply()
            content.innerHTML = messages[i_messages]
            content.filters[0].play()
            if (i_messages >= messages.length-1) {
                i_messages = 0
            }
            else {
                i_messages++
            }
        } 
        
        if (document.layers) {
           document.nn.document.write("<table cellspacing=2 cellpadding=2 border=0><tr><td align=left>"+messages[i_messages]+"</td></tr></table>")
    		document.close()
            if (i_messages >= messages.length-1) {
                i_messages = 0
            }
            else {
                i_messages++
            }
        } 
        timer = setTimeout("dotransition()",5000)   
    }
    // - End of JavaScript - -->
    </script>
    	<!--
        	This script downloaded from w w w.JavaScriptBank. com
        	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
    	-->
    Step 2: Place HTML below in your BODY section
    HTML
    Code:
    <BODY onload="dotransition()">
    <DIV id=content style="position: relative; width:160px; height:240px; text-align:center; filter: revealTrans(Transition=12, Duration=3)"></DIV>
    </BODY>
    	<!--
        	This script downloaded from w w w.JavaScriptBank. com
        	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
    	-->





    Javascript Music Player - Random Text Generator - Floating Image Script

  9. #9
    JavaScriptBank.com is offline Junior Member
    Join Date
    Mar 2009
    Location
    JavaScriptBank.com - Free JavaScript Source Code
    Posts
    44

    AJAX Page Content Loader

    AJAX - a very great web development technology nowaday. Use this AJAX in order to load XML and HTML files on the same website with XMLHttpRequest. And in the body... detail at JavaScriptBank. com - 2.000+ free JavaScript codes

    [IMG]hxxp ://w w w.javascriptbank. com/javascript.images/ajax/ajax-page-content-loader.jpg[/IMG]
    Demo: AJAX Page Content Loader

    How to setup

    Step 1: Use CSS code below for styling the script
    CSS
    Code:
    <style type="text/css">
    <!--
    #contentLYR {
      position:relative;/*
      width:200px;
      height:115px;
      left: 200px;
      top: 200px;*/
      z-index:1;
    }
    -->
    </style>
    Step 2: Place JavaScript below in your HEAD section
    JavaScript
    Code:
    <script type="text/javascript">
    <!-- Begin
    /*
         This script downloaded from w w w.JavaScriptBank. com
         Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
    */
    
    // Created by: Eddie Traversa (2005) :: hxxp ://dhtmlnirvana. com/
    function ajaxLoader(url,id) {
      if (document.getElementById) {
        var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
      }
      if (x) {
        x.onreadystatechange = function() {
          if (x.readyState == 4 && x.status == 200) {
            el = document.getElementById(id);
            el.innerHTML = '<JavaScriptBank>This is content of demo.xml file</JavaScriptBank>';//x.responseText;
          }
        }
        x.open("GET", url, true);
        x.send(null);
      }
    }
    //-->
    </script>
    Step 3: Place HTML below in your BODY section
    HTML
    Code:
    <div id="contentLYR"></div>
    	<script>window.onload = function(){ajaxLoader('demo.xml','contentLYR');}</script>
    Step 4: Download files below
    Files
    demo.xml






    JavaScript Make link open in new tab/window - JavaScript World clock - circumference calculator

  10. #10
    JavaScriptBank.com is offline Junior Member
    Join Date
    Mar 2009
    Location
    JavaScriptBank.com - Free JavaScript Source Code
    Posts
    44

    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

    [IMG]hxxp ://w w w.javascriptbank. com/javascript.images/article/top-10-javascript-frameworks-by-google--yahoo--bing.jpg[/IMG]
    Demo: Top 10 JavaScript Frameworks by Google, Yahoo, Bing

    How to setup






    AJAX news ticker - JavaScript Refresh Page - JavaScript Unclosable Window

  11. #11
    JavaScriptBank.com is offline Junior Member
    Join Date
    Mar 2009
    Location
    JavaScriptBank.com - Free JavaScript Source Code
    Posts
    44

    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 J... detail at JavaScriptBank. com - 2.000+ free JavaScript codes

    [IMG]hxxp ://w w w.javascriptbank. com/javascript.images/time/time-picker-with-child-window.jpg[/IMG]
    Demo: Time Picker with child window

    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: Place HTML below in your BODY section
    HTML
    Code:
    <form name="form1">
    	<input id="field" onkeydown="time(this.id)"/>
    </form>
    Step 3: downloads
    Files
    down.jpg
    time.html
    timePicker.js
    up.jpg






    Javascript Music Player - Random Text Generator - Floating Image Script

  12. #12
    JavaScriptBank.com is offline Junior Member
    Join Date
    Mar 2009
    Location
    JavaScriptBank.com - Free JavaScript Source Code
    Posts
    44

    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

    [IMG]hxxp ://w w w.javascriptbank. com/javascript.images/image/fading-slide-show.jpg[/IMG]
    Demo: Fading Slide Show

    How to setup

    Step 1: Copy & Paste JavaScript code below in your HEAD section
    JavaScript
    Code:
    <script>
    /* 
    	Original:  CodeLifter. com (support@codelifter. com)
    	Web Site:  hxxp ://w w w.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 w w w.JavaScriptBank. com
        	Come to view and download over 2000+ free javascript at w w w.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 w w w.JavaScriptBank. com
        	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
    	-->





    JavaScript Countdown Timer - JavaScript Currency Format - JavaScript Format Phone Number
    Last edited by JavaScriptBank.com; 11-22-2009 at 11:31 PM.

  13. #13
    JavaScriptBank.com is offline Junior Member
    Join Date
    Mar 2009
    Location
    JavaScriptBank.com - Free JavaScript Source Code
    Posts
    44

    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







  14. #14
    JavaScriptBank.com is offline Junior Member
    Join Date
    Mar 2009
    Location
    JavaScriptBank.com - Free JavaScript Source Code
    Posts
    44

    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: Copy & Paste JavaScript code below in your HEAD section
    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: Place HTML 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
    	-->






  15. #15
    JavaScriptBank.com is offline Junior Member
    Join Date
    Mar 2009
    Location
    JavaScriptBank.com - Free JavaScript Source Code
    Posts
    44

    Top 10 Beautiful Christmas Countdown Timers

    Only a fews of days then Christmas will come. And if you are looking for one beautiful countdown timer for waiting <i>Christmas Day</i> on your website, then I hope this post will satisfy your needs; ... detail at JavaScriptBank.com - 2.000+ free JavaScript codes


    How to setup







Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Untitled Document
YoungEntrepreneur Logo Featured on: Business Week About Alltop Wall Street Journal

Terms of Service | Privacy Policy


SEO by vBSEO 3.5.0 RC3