Usefull Scripts
Monday, October 26, 2009
Headliner (Differnt effect of button)
Copy and past .... this code where .. u .. want..
<br><!-- this script got from <br>http://usefull-script.blogspot.com/Coded by: Ratnakar Mishra --><br><br><br><br><!-- TWO STEPS TO INSTALL HEADLINER:<br><br> 1. Add the onLoad event handler to the BODY tag<br> 2. Copy the specified code into the BODY of your HTML document --><br><br><!-- STEP ONE: Add this onLoad event handler to the BODY tag --><br><br><body onLoad="StartHeadliner()"><br><br><!-- STEP TWO: Put this code into the BODY of your HTML document --><br><br><SCRIPT LANGUAGE="JavaScript"><br><br><! ><br><! ><br><br><!-- Original: Jan Pijnacker <Jan_P@dds.nl> --><br><br><!-- Begin<br>typeWriterWait=120 // Typewriter delay<br>blinkTextWait=1000 // Blinking delay<br>blinkSpacesWait=300 // Blinking 'blank-spaces' delay<br>blinkMax=3 // how many times to blink<br>expandWait=100 // expanding headliner delay<br>scrollWait=90 // scrolling headliner delay<br>scrollWidth=34 // characters in scroll display<br>randomLines=false // randomly choose lines? (true or false)<br>lineMax=7 // how many lines you have<br>lines=new Array(lineMax)<br><br>// Use this format for all the lines below:<br>// (display text, url or mailto, frame name, effect, delay time)<br><br>lines[1]=new Line("The JavaScript Headliner!", "http://www.piaster.nl/perspicacity/js/headliner", "", Blink, 500)<br>lines[2]=new Line("This is a great JavaScript example - appropriately named ' The JavaScript Headliner ' !", "", "", Scroll, 1000)<br>lines[3]=new Line("Wouldn't this be good on your site?", "", "", Static, 3500)<br>lines[4]=new Line("Many ways to present information....", "", "", Expand, 2000)<br>lines[5]=new Line("Each message can even take the visitor to different a URL when clicked !", "", "", Scroll, 3000)<br>lines[6]=new Line("Click now to email the author", "mailto:Jan_P@dds.nl?subject=The Headliner", "", TypeWriter, 1500)<br>lines[7]=new Line("Or here to go back to Messages", "http://messages.javascriptsource.com", "", Static, 3500)<br>// Don't change these variables below :-)<br>lineText=""<br>timerID=null<br>timerRunning=false<br>spaces=""<br>charNo=0<br>charMax=0<br>charMiddle=0<br>lineNo=0<br>lineWait=0<br>function Line(text, url, frame, type, wait) {<br>this.text=text<br>this.url=url<br>this.frame=frame<br>this.Display=type<br>this.wait=wait<br>}<br>function StringFill(c, n) {<br>var s=""<br>while (--n >= 0) {<br>s+=c<br>}<br>return s<br>}<br>function getNewRandomInteger(oldnumber, max) {<br>var n=Math.floor(Math.random() * (max - 1) + 1)<br>if (n >= oldnumber) {<br>n++<br>}<br>return n<br>}<br>function getRandomInteger(max) {<br>var n=Math.floor(Math.random() * max + 1)<br>return n<br>}<br>function GotoUrl(url, frame) {<br>if (frame != '') {<br>if (frame == 'self') self.location.href=url<br>else if (frame == 'parent') parent.location.href=url<br>else if (frame == 'top') top.location.href=url<br>else {<br>s=eval(top.frames[frame])<br>if (s != null) top.eval(frame).location.href=url<br>else window.open(url, frame, "toolbar=yes,status=yes,scrollbars=yes")<br> }<br> }<br>else window.location.href=url<br>}<br>function Static() {<br>document.formDisplay.buttonFace.value=this.text<br>timerID=setTimeout("ShowNextLine()", this.wait)<br>}<br>function TypeWriter() {<br>lineText=this.text<br>lineWait=this.wait<br>charMax=lineText.length<br>spaces=StringFill(" ", charMax)<br>TextTypeWriter()<br>}<br>function TextTypeWriter() {<br>if (charNo <= charMax) {<br>document.formDisplay.buttonFace.value=lineText.substring(0, charNo)+spaces.substring(0, charMax-charNo)<br>charNo++<br>timerID=setTimeout("TextTypeWriter()", typeWriterWait)<br>}<br>else {<br>charNo=0<br>timerID=setTimeout("ShowNextLine()", lineWait)<br> }<br>}<br>function Blink() {<br>lineText=this.text<br>charMax=lineText.length<br>spaces=StringFill(" ", charMax)<br>lineWait=this.wait<br>TextBlink()<br>}<br>function TextBlink() {<br>if (charNo <= blinkMax * 2) {<br>if ((charNo % 2) == 1) {<br>document.formDisplay.buttonFace.value=lineText<br>blinkWait=blinkTextWait<br>}<br>else {<br>document.formDisplay.buttonFace.value=spaces<br>blinkWait=blinkSpacesWait<br>}<br>charNo++<br>timerID=setTimeout("TextBlink()", blinkWait)<br>}<br>else {<br>charNo=0<br>timerID=setTimeout("ShowNextLine()", lineWait)<br> }<br>}<br>function Expand() {<br>lineText=this.text<br>charMax=lineText.length<br>charMiddle=Math.round(charMax / 2)<br>lineWait=this.wait<br>TextExpand()<br>}<br>function TextExpand() {<br>if (charNo <= charMiddle) {<br>document.formDisplay.buttonFace.value=lineText.substring(charMiddle - charNo, charMiddle + charNo)<br>charNo++<br>timerID=setTimeout("TextExpand()", expandWait)<br>}<br>else {<br>charNo=0<br>timerID=setTimeout("ShowNextLine()", lineWait)<br> }<br>}<br>function Scroll() {<br>spaces=StringFill(" ", scrollWidth)<br>lineText=spaces+this.text<br>charMax=lineText.length<br>lineText+=spaces<br>lineWait=this.wait<br>TextScroll()<br>}<br>function TextScroll() {<br>if (charNo <= charMax) {<br>document.formDisplay.buttonFace.value=lineText.substring(charNo, scrollWidth+charNo)<br>charNo++<br>timerID=setTimeout("TextScroll()", scrollWait)<br>}<br>else {<br>charNo=0<br>timerID=setTimeout("ShowNextLine()", lineWait)<br> }<br>}<br>function StartHeadliner() {<br>StopHeadliner()<br>timerID=setTimeout("ShowNextLine()", 2000)<br>timerRunning=true<br>}<br>function StopHeadliner() {<br>if (timerRunning) { <br>clearTimeout(timerID)<br>timerRunning=false<br> }<br>}<br>function ShowNextLine() {<br>if (randomLines) lineNo=getNewRandomInteger(lineNo, lineMax)<br>else (lineNo < lineMax) ? lineNo++ : lineNo=1<br>lines[lineNo].Display()<br>}<br>function LineClick(lineNo) {<br>document.formDisplay.buttonFace.blur()<br>if (lineNo > 0) GotoUrl(lines[lineNo].url, lines[lineNo].frame)<br>}<br>with (document) {<br>write('<center><form name="formDisplay"><input type="button"')<br>write('name="buttonFace" value="JavaScript Source Code 3000 presents...."')<br>write('onClick="LineClick(lineNo)"></input></form></center>')<br>}<br>// End --><br></SCRIPT><br><br> <br><br><br><br><font face="Tahoma"><a target="_blank" href="http://usefull-script.blogspot.com/"><span style="font-size: 8pt; text-decoration: none">JavaScript Free Code</span></a> </font><br /><br><br /><br><br><br><br>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Best script category
Alert Message
(2)
Background Effect
(5)
Buttons
(11)
Calculators
(6)
Forms
(3)
Fun Script
(1)
Java script
(3)
Miscellaneous
(2)
PHP Script
(10)
Search Box
(2)
Blog Archive
▼
2009
(57)
►
November
(7)
▼
October
(50)
Try this one or "Never say No"
Make a search engine for your own site
Make a Stopwatch with the help of Java Script
Email validation script in Php
Automatic Download script in Php
Simple email button to send E-mail Someone
Form design Agree Before Entry
Make a simple Downloaded file counter in Php
Make a simple web counter with the help of Php script
Simple Zip extractor script in Php
Easy File Upload Program in Php
Sending email with PHP
make a Atmosphere calculator
make a Age calculators
Make a Advance calculators
Make a Adjusted Cost Base calculators
Make a Ad calculators
Make a five function calculators
Background effect in webpage -INSTALL CELL BG CHANGER
Background effect in webpage ( Blink the backgroun...
Background effect in webpage ( Ball drop effect)
Background effect in webpage (astronaut effect)
Background effect in webpage (alien-spacecraft eff...
Add Windows postion relared buttons
Inser some funny message with push button
Insert image button in your blogs
Headliner (Differnt effect of button)
Install email button in your web page
Clicks to submit button
Check box script for your web site
Add Button url link in your web site
APOLOGIZE E-MAIL script in web page
Add alert button in your site
Moving Text status
Text alert for enter and exit
Close the browser with a button
MSN Search in your web page
Google search in web page
Rain effects on your text
Fall Leaves in your web page
Snow fall in your web page
Magical title for weblogs or any pages on the int...
Star Moving in your web site back ground
Mouse movement decoration with heart symbole
Add fireworks on your website
Search box for website
Decorate your scrollbar (Color full scroll bar )
Make a home page of your web site
No right click of mouse
You can bring a message box or a alert a window wh...
Free Search Engine Submission
Followers
About Me
Ratnakar Mishra
View my complete profile
Number of visitors
No comments:
Post a Comment