Javascript| Tips | Page 1. Will completely screen the right mouse button
oncontextmenu= "Window.event.returnvalue=false" 2. Deselect, prevent replication
3. No pastingOnpaste= "return False"
4. Prevention of duplicationOncopy= ' return false; ' oncut= ' return false;
5.IE Address bar in front of your own icon
6. You can display your icon in the Favorites folder
7. Close the Input method
8. Always with the f
function counter () {var date = new Date (); var = date.getfullyear (); var date2 = new Date (year, 12, 31, 23, 59, 59);/* Turn Change to seconds */var time = (date2-date)/1000;var day = Math.floor (Time/($ *)) var hour = Math.floor (time% (24 * 60 * 6 0)/(*) var minute = Math.floor (time% ($ *)/$), var second = Math.floor (time% (24 * 60 * 6 0%); var str = year + "Years remaining" + Day + "days" + Hour + "when" + Minute + "min" + second + "seconds"; Console.log (str); Window.setinterval ("Count
JavaScript is inserted to HTML pages by using the To embed JavaScript into a HTML page, leaving it inline with the rest of the markup, or to includeJavaScript that exists in an external fi le. The following is key points:? To include external JavaScript files, the SRC attribute must is set to the URL of the fi le toInc
One JavaScript instance per day-determine the region of the web page, and define criptweb
How does html jump to another page JavaScript?
Parameters can also be added to html pages. For example, 2.html? Id = 2Then you can use javascript
Tips | Web page
When you are designing a Web page, many pages need the same border pattern and navigation bar, FrontPage provides us with a shared border to facilitate the design, but this is not too convenient, after all, each page has added the same content, virtually the
Javascript| Menu | design | Web page | When the page is made, in order to better organize the information, so that the display of information classification clear, Level clear, web page makers often do their best. Commonly used me
How JavaScript Opens a Web page in a new window:Sometimes need to open the Web page in a new window, there are many ways, of course, the problem is very simple, mainly for beginners.Here are two ways to open a Web
In the previous blog post, JavaScript on the Web page calls methods in. net. And transmit data to the app in the form of parameters. If you haven't seen it, click Connect.
Previous address: http://www.cnblogs.com/wildfeng/archive/2012/04/28/2475039.html
On the contrary, the app can also call JavaScript.
The effect
We know that JavaScript is an interpreted language, his execution is top-down, but the browser for the supremacy of the understanding is slightly different, and the code of the upstream and downstream is the program flow is also critical to the correctness of the program, so I think it is necessary to deeply understand the order of the implementation of multiple JS block.
First you have to know how many ways to add
To implement dynamic interaction, you must have more sophisticated knowledge about form objects (form) and Frame objects (Frames).
Basic knowledge of forms
Form objects enable designers to interact with client users with different elements of a form, without having to enter data first before they can dynamically alter the behavior of Web documents.
1. What is a Form object
form: It forms the basic element of a
Essence | Web page
"1, normal pop-up window"In fact, the code is very simple:
Because this is a javascripts code, they should be placed between the . window.open (' page.html ') is used to control the pop-up of the new window page.html, if page.html is not in the same path as the main window, before the path, absolute path (http://) and relative path (...) should be specified. /) are available.Both single
Web page Common JavaScript1. Keep the text rolling all the way
scrolling Text
2. Record and display the last modified time of the Web page3. Close the current window close window 4. Closes the current page after 5 seconds5. Load the specified Web
to the entire page coordinates, with the top left corner of the page as the coordinate origin to the mouse point of the vertical distance (IE8 not supported)Event.clientx: The coordinates of the relative viewable region, with the upper-left corner of the browser's visual area as the coordinate origin to the horizontal distance of the mouse pointEvent.clienty: The coordinates of the relative viewable region
javascript| Special Effects | Web pages can only be a limited number of things
Enter to move the cursor to the next input box
Can only be Chinese
Shielding Input Method
can only input English and digital
Can only be digital
Can only display, cannot modify
Can only be a number to determine the value of the key.
Attach: Get the keycode of keyboard
Javascri
As a result of the project, I began to learn and study VC, DLL and ActiveX controls. I found a lot of online materials, but there was no available or no example to understand and run. No way. Study it by yourself. However, I have learned to give it to the people who need it.
I. OverviewAs a result of the project, I began to learn and study VC, DLL and ActiveX controls. I found a lot of online materials, but there was no available or no example to understand and run. No way. Study it by yourself.
Javascript| Chinese Characters | Web page
First, verify the form:
Second, we write JavaScript to embed HTML in the following code:
Third, I have written a simple analysis of JavaScript, note that the matching JavaScript stateme
JavaScript special effect instance 012-web page color picker, javascript012-Instance 012 web page color picker instance description in the website, you often need to customize the color to display some information. This can be achieved by adding a color picker on the webpage
The example of this article tells the JavaScript implementation click button to pop a window to close the layer and the background of the Web page dimmed. Share to everyone for your reference. The specific analysis is as follows:
Here click the button, pop-up a closed layer window, with the background of the Web
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.