Use JavaScript to process the two function codes of the URL: function request (paras) {// obtain the url parameter value, case-insensitive. If this parameter is not found, an empty string is returned.
Var url = location. href;
Var paraString = url. substring (url. indexOf ("? ") + 1, url. length). split ("");
Var paraObj = {}
For (I = 0; j = paraString [I]; I ++ ){
ParaObj [j. substring (0, j. indexOf ("= ")). toLowerCase ()] = j. substring (j. indexO
7 Special Effects codes for HTML css3 webpage image display,
Drag and Drop the image gradient transparent Switching Effect
Slide slides between mobile phones
Slide effects of transparent game display Layers
Scroll plug-in that allows you to edit the color of a scroll bar.
Code of several text animation display plug-ins
360-degree CSS animation for rotating background images
Slide webpage banner big image effect
invalidHTTP 403.17-Forbidden: Client certificate has expired or is not yet validHTTP 404.1-Unable to find Web siteHTTP 404-File not foundHTTP 405-Resource is forbiddenHTTP 406-UnacceptableHTTP 407-Proxy Authentication RequiredHTTP 410-Never availableHTTP 412-Prerequisite failureHTTP 414-Request-URI too longHTTP 500-Internal server errorHTTP 500.100-Internal Server error-ASP errorHTTP 500-11 Server shutdownHTTP 500-12 Application RestartHTTP 500-13-Server Too busyHTTP 500-14-Application not vali
One, in the CRONTAB plan executes the script, all commands must write the absolute path. Because of the independent process of crontab, environment variables may not be loaded directly.Second, in judging the site can normally visit the general idea:1. Determine if the website will open properly.2. After the normal opening of the site, you need to determine whether the HTTP status code is 200The above two points can be achieved at the same time through wget:~] #wget http://192.168.0.70-q-o/dev/n
restarting.500.13 Server Error: The WEB server is too busy.500.14 Server Error: Invalid application configuration on the server.500.15 Server error: Direct request for GLOBAL is not allowed. Asa.500.16 Server Error: UNC authorization credentials are incorrect.500.17 Server Error: The URL authorization store could not be found.500.18 Server Error: The URL authorization store cannot be opened.500.19 Server Error: The file's data is not configured correctly in the configuration database.500.20 Ser
indicates successful authentication. (The result of the SSL Peer certificate verification is requested. 0 means the verification was successful. (Added in 7.19.0))Example: Get the response code for the Http://baidu.com Web site with the Curl command[Email protected]:~# curl-i-s-w "%{http_code}\n"-o/dev/null http://baidu.com200-I: Get header information,-s:silent mode, without this argument, the execution of the command is the result[emailprotected]:~#curl-i-w "%{http_code}\n" -o/dev/null Http:/
Use js to read, write, and delete Cookie codes.
In the last article, I used JavaScript to read, write, and delete Cookie code, share and describe in detail, and found some problems in practice:
1. Cookies can only be debugged on Firefox on local files, and IE and chrome are invalid.
2. The cookie is not set to never expire. It is obviously not reasonable to set a period of time to expire.
The following is a reasonable cookie operation code:
Copy codeT
= "DECIMALBT" />BR/>Binary :inputtype= "text"ID= "binary" />inputtype= "button"value= "to Decimal"ID= "BINARYBT"/>Body>HTML>The above code realizes the conversion between binary and decimal, in fact, it is very simple, because JS itself provides such a function.Related reading:The 1.isNaN () function can be found in the IsNaN () method section of JavaScript .The 2.parseInt () function can be found in the parseint () function section of JavaScript .3. The ToString () function can refer to the ToS
Use the switch statement to select one or more instance codes.
Example:
The above is all the content of the Instance code that is provided by the editor for you to use the switch statement for multiple selections and judgment. I hope you can support more help ~
Details about the strings and codes in Python, and details about python strings
Character encoding
As we have already discussed, strings are also a type of data, but there is another encoding problem that is special to strings.
Because the computer can only process numbers, if you want to process text, you must convert the text into numbers before processing. The earliest computer was designed to use eight bits as a byte. Therefore, the maximum intege
Add interference codes to wordpress to prevent collection. Open the post-template.php under wp-uplodes and add the code to the reference content below the first line of the post-template.php: functionRndString ($ body) {Maximum interval distance (if the post-template.php under wp-pair des is not enabled during detection
Add the code to the first line of the post-template.php first
Reference content is as follows:Function RndString ($ bo
This article provides two php implementation codes for adding watermarks to images. one of them is to add text watermarks. For more information, see
PHP's simplest watermarking method
Add text watermarks to images using php
The above is the php implementation code for adding watermarks to images.
This article mainly introduces how PHP uses CURL to simulate logon to websites with verification codes, which can help readers better understand and apply CURL operations, you can refer to a lot of simulated login programs on the internet. most of them run through the service program apache. after obtaining the verification code, they are displayed on the webpage, and then fill it in and POST it out, this may seem friendly, but since simulated logon d
This article mainly introduces PHP instances that generate random strings and verification codes. if you need a php instance, you can refer to the PHP random number and verification code and articles on the Internet, there are only a few of them.
Simply do it yourself.
Let's start the php Tutorial in this section. the implementation of the following code can distinguish one get_code () and the other create_check_image (), and the output image is call
Most programmers have been plagued by the problem of how to implement the code for converting Chinese characters to location codes in PHP. the following source code example can be of great help to everyone.
The code is as follows:
Global $ PHP_SELF;
// Echo $ PHP_SELF;
$ T1 = $ _ POST ['textfield1'];
$ T2 = $ _ POST ['textfield2'];
$ T3 = $ _ POST ['textfield3'];
$ T4 = $ _ POST ['textfield4 '];
// Chinese character -- Location Code
If ($ t1! = ""){
Compatible with multiple sets of floating image ad codes with the close button in various browsers. JS part: Copy the code as follows: scripttypetextjavascriptlanguagejavascriptfunctionaddEvent (obj, evtType, func, cap) {capcap | false; if (obj. addEventListener JS part:
The code is as follows:
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.