Free Java Scripts
 
  Home
  Contact Us
  Make Your Website as User's Homepage
  Guestbook
  A message box when page opens
  Don't let the user use right click on mouse
  Make your scrollbar colorful
  Search box ( Search engine ) for your page
  Fireworks with different colors
  Stars moving in background
  Magic title for weblogs or any pages on the internet
  Snowing on the page
  Raining on texts
  Close the browser with a button
  Text alert for enter and exit
  Moving text status
  Set background color (User control)
  Nice menu with java script
  Clock
  Go to top of page
  Text following mouse
  Shake internet explorer window
  Change the bgcolor
  Back and forward button
  Print button for page
  Calculator script
  Text dances in status bar
  Visitor and counter
  Clock the visitor time visiting the page
  Asking user's name and say welcome
  Clock in website
  Random background color changer
  Text Effect-1
  Text Effect-2
  Today's Date in website
  Save button
  Two lines following mouse
  Date and time following mouse
  Add website to favorites
Search box ( Search engine ) for your page

Search box ( Search engine ) for your page


Code:-

<!-- this script got from www.freejavascripts.page.tl -->
<SCRIPT language=JavaScript>
var NS4 = (document.layers);   
var IE4 = (document.all);
var win = window;   
var n   = 0;
function findInPage(str) {
  var txt, i, found;
  if (str == "")
    return false;
  if (NS4) {
    if (!win.find(str))
      while(win.find(str, false, true))
        n++;
    else
      n++;
    if (n == 0)
      alert("Not found.");
  }
  if (IE4) {
    txt = win.document.body.createTextRange();
    for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
      txt.moveStart("character", 1);
      txt.moveEnd("textedit");
    }
    if (found) {
      txt.moveStart("character", -1);
      txt.findText(str);
      txt.select();
      txt.scrollIntoView();
      n++;
    }
    else {
      if (n > 0) {
        n = 0;
        findInPage(str);
      }
      else
        alert("Sorry, we couldn't find.Try again");
   }
  }
  return false;
}
</SCRIPT>

<FORM name=search onsubmit="return findInPage(this.string.value);">
<P align=center><FONT size=3>
<INPUT
style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #666666 1px solid; BORDER-BOTTOM: #666666 1px solid"
onchange="n = 0;" size=16 name=string></FONT><BR><INPUT style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #aaaaaa" type=submit value=Search in page ><center><font size=2pt;><font family=Times New Roman;><b>


<font face="Tahoma"><a target="_blank" href="http://www.freejavascripts.page.tl/"><span style="font-size: 8pt; text-decoration: none">Free JavaScript</span></a></font>

<BR>
</P></FORM></DIV><BR><!-- /Search-->




Preview:-


Free JavaScript

 


Time  
   
Advertisement  
   
Partner's Advertisements  
   
Today, there have been 2 visitors (38 hits) on this page!
=> Do you also want a homepage for free? Then click here! <=