• Complain

Ray Yao - 50 JavaScript Programs

Here you can read online Ray Yao - 50 JavaScript Programs full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2017, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Ray Yao 50 JavaScript Programs
  • Book:
    50 JavaScript Programs
  • Author:
  • Genre:
  • Year:
    2017
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

50 JavaScript Programs: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "50 JavaScript Programs" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

50 JavaScript Programs — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "50 JavaScript Programs" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make

50 Programs JavaScript By Ray Yao For JavaScript Programmers Copyright 2015 by Ray Yao All Rights Reserved Neither part of this book nor whole of this book may be reproduced or transmitted in any form or by any means electronic, photographic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without prior written permission from the author. All Right Reserved! Ray Yao About the Author Ray Yao: Certified PHP engineer by Zend, USA Certified JAVA programmer by Sun, USA Certified SCWCD developer by Oracle, USA Certified A+ professional by CompTIA, USA Certified ASP. NET expert by Microsoft, USA Certified MCP professional by Microsoft, USA Certified TECHNOLOGY specialist by Microsoft, USA Certified NETWORK+ professional by CompTIA, USA Highly Recommend Computer Books on Amazon: Linux Command Line JAVA Programming PHP Programming JavaScript Programming C++ Programming AngularJS Programming JQuery Programming Python Programming HTML CSS Programming C# Programming Visual Basic Programming JavaScript 50 Useful Programs Preface 50 Programs of JavaScript is a useful book for JavaScript programmers. Using these programs, youll be able to build JavaScript projects quicker and easier than ever, you can use these programs to create a dynamic web site fast. This book can help you with:

  • Form and validation
  • Username and password check
  • Filter ungraceful words
  • Forbid copying photo or text
  • Email format check
  • Form submit check
  • Movement and animation
  • Text and visual effects
  • Prevent malicious input
  • And much more.
(Note : All programs have no explanations, but you can download the source code of this book.) Table of Contents
Advanced JavaScript 50 Programs
1. Countdown to load webpage Source Code contenttexthtml charsetUTF-8 gt - photo 1
Source Code:
content="text/html; charset=UTF-8" /> URL=http://www.amazon.com">
timeObject = new Date(); countStart = timeObject.getTime(); function initTimer() { var myTime = new Date(); var currentTime = myTime.getTime(); var diffTime = currentTime - countStart; this.diffSeconds = diffTime/1000; return(this.diffSeconds); } function getSeconds() { var mySeconds0 = initTimer(); var mySeconds1 = ""+mySeconds0; mySeconds1= 10 - eval( mySeconds1.substring(0,mySeconds1.indexOf("."))) + " seconds"; document.myForm.timeElapse.value = mySeconds1; window.setTimeout('getSeconds()',1000); } center>
Load web page after 10 seconds:
2.

Are you sure to delete? Source Code contenttexthtml charsetUTF-8 gt function - photo 2

Source Code:
content="text/html; charset=UTF-8" /> function delOperation() { if(confirm("Are you sure to delete?")) alert("Already deleted!"); else alert("Cancel deleted!"); }
Are you sure to delete?
value="Delete" onClick="delOperation()" />
3. Marquee Text Source Code contenttexthtml charsetUTF-8 gt The Text Scrolls Up - photo 3
Source Code:
content="text/html; charset=UTF-8" /> The Text Scrolls Up Slowly scrolldelay=100 onmouseover='this.stop()' onmouseout='this.start()' height=60>

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
KKKKKKKKKKKKKKKKKKKKKKKKKKKKK
4. Count how many letters Source Code Count how many leters function calstr rea-z - photo 4
Source Code:
Count how many leters
function cal(str) { re=/[a-z & A-Z]/g; if(re.test(str)) return str.match(re).length else return 0 }
5. Search Engine Source Code contenttexthtml charsetUTF-8 gt var formVariable - photo 5
Source Code:
content="text/html; charset=UTF-8" />
var formVariable; function makeSearch() { document.forms[formVariable + document.myForm.SearchSelect. selectedIndex].elements[0].value= document.myForm.SeachText.value; document.forms[formVariable+ document.myForm.SearchSelect.selectedIndex].submit(); } Keyword: style=" margin-left: 1px">
Select Enginee: YahooGoogleBing
onClick="makeSearch()"> formVariable=document.forms.length method="get"> 6. Select Tag Source Code contenttexthtml charsetUTF-8 gt - photo 6
Source Code:
content="text/html; charset=UTF-8" /> .conts{visibility:hidden} .tab{border-top:solid thin #E0E0E0; border-right:solid thin gray; border-left:solid thin #E0E0E0; font-family:Verdana; font-size:10pt; text-align:center; font-weight:normal} .selTab{border-left:solid thin white; border-top:solid thin white; border-right:solid thin black; font-weight:bold; text-align:center} function public_Labels(label1, label2, label3, label4, label5) { t1.innerText = label1; t2.innerText = label2; t3.innerText = label3; t4.innerText = label4; t5.innerText = label5; } function public_Texts(Texts1, Texts2, Texts3, Texts4, Texts5){ t1Texts.innerHTML = Texts1; t2Texts.innerHTML = Texts2; t3Texts.innerHTML = Texts3; t4Texts.innerHTML = Texts4; t5Texts.innerHTML = Texts5; init(); } function init(){ tabTexts.innerHTML = t1Texts.innerHTML; } var nowTab; var myTab; var mark = true; function altertab(){ if(mark == true){ nowTab = t1; myTab = t1base; mark = false; } if(window.event.srcElement.className == "tab") { nowTab.className = "tab"; myTab.style.backgroundColor = "white"; nowTab = window.event.srcElement; myTabID = nowTab.id + "base"; tabContentID = nowTab.id + "Texts"; myTab = document.all(myTabID); tabContent = document.all(tabContentID); nowTab.className = "selTab"; myTab.style.backgroundColor = ""; tabTexts.innerHTML = tabContent.innerHTML; }}
bgcolor="yellow" STYLE="width:400; height:300">
SELECT 1SELECT 2SELECT 3SELECT 4SELECT 5
STYLE="border-left:solid thin white;border-bottom:solid thin white;border-right:solid thin white">
1.AAAAAAAAAA 2.BBBBBBBBBB 3.CCCCCCCCCC 4.DDDDDDDDDD 5.EEEEEEEEEE 7.

Time Format Conversion Source Code charsetUTF-8 gt function timeFormat if - photo 7

Source Code:
charset=UTF-8" />
function timeFormat() { if (document.myForm.showFormat[0].checked) { return true; } return false; } function showHours(nowHour) { if (timeFormat() || (nowHour > 0 && nowHour < 13)) { return (nowHour); } if (nowHour == 0) { return (12); } return (nowHour-12); } function displayZero(timeVal) { if (timeVal > 9) { return "" + timeVal; } return "0" + timeVal; } function AmPm() { if (timeFormat()) { return (""); } if (now.getHours() < 12) { return (" AM"); } return (" PM"); } function displayTime() { now = new Date document.myForm.showTime.value = showHours(now.getHours()) + ":" + displayZero(now.getMinutes()) + ":" + displayZero(now.getSeconds()) + AmPm() setTimeout("displayTime()",1000) }

24 Hour Format
12 Hour Format
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «50 JavaScript Programs»

Look at similar books to 50 JavaScript Programs. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «50 JavaScript Programs»

Discussion, reviews of the book 50 JavaScript Programs and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.