In the process of using QQ we will find a very short interface is also can drag up and down, this is with the function of damping effect, to achieve such a function, the system ScrollView is impossible to achieve, you must customize the control
Before writing this blog, it is also a first sigh of my level of general and thinking about the problem of the lack of way, the cause of this blog is a problem encountered in the project, the server returned to me with a Chinese image address, at
A very simple code, but not commonly used webview words, may forget. Mark here, prevent forgetting, and give help to friends you don't know.
Webview.destroy ();
Call it when you need to destroy the webview.
What if there are webview in the
Today, the project needs to be modified, need to load flash video, this thought is very simple, write good code:
WebView = (webview) View.findviewbyid (R.id.web);WebSettings settings = Webview.getsettings ();Settings.setpluginstate
JavaScript to achieve the mouse click on the page blank, pop-up ads page code. See a number of webmaster sites, in the click of the page in the blank Space, will pop-up ads page, used to not also don't care, now need to add this function on their
JavaScript string handler function that intercepts the string based on the length of the definition, exceeds the partial trim append ..., many times the content displayed on the Web page needs to be indented "..." the method is used to handle string
JavaScript block event bubbling, no use of other plug-ins to assist, native JS code, considering the compatibility of the browser, here ie/Firefox, operating and chrome are targeted judgments, the code is as follows:
The code is as
This is a simple example of JavaScript and web interaction, dynamically changing the contents of the specified ID table cell, through the Select command to change the cell, you will see the corresponding cell content Ajax No refresh changes, want to
Accessing functions within an IFRAME
document.getElementById (' Commentiframe '). contentwindow.haslogined ();
Commentiframe is the ID of the IFRAME.
To be executed inside the window.onload.
Example
The code is as follows
Copy
Environment
System version: CentOS6.5 x86_64Nginx Version: Nginx 1.6
One, vomit the noise
Pit Wow, oneself in start in Apache build, all test normal, result transfer to Nginx platform, found inside link click All hint 404, The first reaction is.
JS replaces the specified content regular expressionjs replacement of the specified content regular expression
1=100&2=22&3=77&5=93&6=321&7=0& js A regular replacement file specifies the content
smi Demo
The crux of the matter is the following three sentences:
Aboutplayer.closedCaption.CaptioningID = "Captext";
The location ID of the lyrics displayed on the Web page
Aboutplayer.closedCaption.SAMIFileName =
There's a problem to be aware of.Arr[j]==i you seem to refer to the equality judgment when an array element is a number type ...But often we may have to make equality judgments about different types of ... This is the practical application of the
JS determines whether the checkbox is checked and shows hidden related instancesjs to determine if the checkbox is selected and show hidden related instances Show Hide Jump address:
Original site of the article, reprinted Friends Annotated from
/// Common library dynamic object array template class/*** General Library version 4.0 * A dynamic object array template class is defined here. This array is suitable for objects that cannot be moved or objects that contain pointers or references.*
/// Map template class of the general library/*** General Library version 4.0 * This is a ing class that provides basic Map functions. This ING is based on dynamic ordered arrays. Binary search is used for searching. * Main methods include operator [
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