10 amazing HTML5 and JavaScript effects. Back a few years ago, these effects are simply impossible to achieve, only with flash, but now, has been very easy to achieve.
1. Breathing galaxies
Use the keyboard to change the line style in the shape,
before we get to the point, I'll introduce you to a very good book, "High Performance JavaScript." Let's take a look at this article and I'll share some of the gains I've seen in this book.
Blocking features :JS has a very silent blocking feature,
The excellent Stoyan Stefanov in his new book ("Javascript Patterns") introduces a number of techniques for writing high-quality code, such as avoiding global variables, using a single var keyword, looping stored lengths, and so on.
This article
Simple zoom in and zoom out to show coordinate function.-------------------------------------Demo Code:------------------------------------- Document 10% 1600%↑
Object
Using the browser's internal object system enables you to interact with HTML documents. Its role is to package the relevant elements, provided to the program designers to use, thereby reducing the labor of programmers, improve the ability to
Menu | design | Web Page | When the Web page is made, in order to better organize the information, make the information of the display classified clearly, the level is clear, the Web page makers often do their best. Commonly used methods are useful
Recently to do a company's business system, the company requirements can be as close to C/s as possible, that is, such as C/S, click the text box can pop up the relevant content of the project, select Input.I use a pop-up window, and then
Design
Simple design Patterns for classesDefine a class Class1function Class1 () {Constructors}
To implement the member definition of a class by specifying a prototype objectClass1.prototype = {Someproperty: "Simple",somemethod:function {Method code}
Javascript
Web development platforms such as JSP, ASP.net, and ColdFusion provide a large number of powerful server-side development options. However, they do not deny the use of JavaScript for client Web development.
JavaScript provides both
Javascript| pop-up Window | tips
Friends who often surf the internet may visit such websites, a window will pop up immediately, or press a connection or button to pop up, usually in this window will show some attention, copyright information,
Javascript| Tips
Recently do a small project in the company, need to do a multiple-select items Delete function, so write the following JS script examples to achieve, in fact, is often used to compare the basis of things, the master will not have to
Javascript| Tips
1. oncontextmenu= "Window.event.returnvalue=false" will completely screen the right mouse buttonno available for table
2. deselect, prevent copying
3. onpaste= "return false" is not allowed to paste
4. oncopy= ' return false; '
Javascript| crash
By understanding some of the examples below and applying them to your web, you soon become a javascipt.Example (i), adding the current time on the page
Tdy=new Date ();document.write (' Current time: ', tdy.gethours
javascript| Script | Web page
Test Test Form Test Form Test Form Test Form text
This function is implemented, but feel a bit uncomfortable, you must use the HTML editor, but from the full selection of HTML editor in the code, notice the
Datagrid|javascript| Object | control
Q: I have a class that returns a DataSet dataset and how to bind to JavaScript. A: How do you call it binding to JavaScript? For example, to call it in a section of JS? Q: I have 2 datagrid on one page, one is
Javascript
Recently to do a company's business system, the company requirements can be as close to C/s as possible, that is, such as C/S, click the text box can pop up the relevant content of the project, select Input.I use a pop-up window, and then
HTML Basics |javascript| Notes | tutorials
Related articles: Zhang Xiaoxiang: JavaScript Tutorial notes: HTML Basics (i)
Instead of trying to use the ENTER key to change lines in the browser, use the ; prevent the system from automatically changing
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service