Js achieves slideshow image effects that support mobile phone sliding Switching
This example describes how js achieves slideshow effects that support mobile phone slide switching. Share it with you for your reference. The details are as follows:
The running effect is as follows:
Click here to download the complete ins
Digital Judgment Method: isNaN () function
The test () method determines whether the string matches the contents of the regular expression, and returns a Boolean value (True/false)
Verify that the Chinese name
function ischinaname (name)
{var pattern =/^[\u4e00-\u9fa5]{1,6}$/;
return pattern.test (name);
//Verify the mobile number
function Isphoneno (phone) {
var pattern =/^1[34578]\d{9}$/;
ret
This article illustrates the method of JS to support the mobile phone sliding switch of the effect of the carousel picture. Share to everyone for your reference. Specifically as follows:
The operation effect is as follows:
Full instance code click here to download the site.
Use method Case:
?
1 2 3 4 5 6 7
or Requirejs:
?
1 2 3 4 5 6 7 8 9 10 11 1
This article illustrates the method of JS to support the mobile phone sliding switch of the effect of the carousel picture. Share to everyone for your reference. Specifically as follows:
The operation effect is as follows:
Full instance code click here to download the site.
Use method Case:
or Requirejs:
API properties, methods, and callbacks:
Targetindicates that the ele
How many cores do you have on your phone? This is one of our most frequently asked questions when comparing the two phone differences. The number of CPU cores is indeed an important indicator of the performance of a mobile phone, but it is not the most accurate indicator.Take the most common Qualcomm Snapdragon in the
1,jquery or JS to determine the browser kernel version number and whether to support the box model JQuery, starting with version 1.9, removed $.browser and $.browser.version and replaced it with $.support. In the updated version 2.0, IE 6/7/8 will no longer be supported.Later, if the user needs to support IE 6/7/8, onl
This article summarizes two commonly used mobile phone attribution query program, one is to use API call third-party interface implementation, one is to use our own mobile phone database query and then judge the cell phone number attribution to query.
Let's take a look at a program that calls the third method Web site
PHP mobile phone number, local query program code. This article summarizes two commonly used mobile phone home location query programs. one is to use APIs to call third-party interfaces, one is to use our own mobile phone database to query and then judge the mobile phone. Th
Because my hand a900s has been brick, so temporarily can't get ROM. First upload has been done before the brush 4.4 dedicated new TWRP recovery 2.7.1.1 This version number is my own definition, for the difference before the release of 2.7.0.0 (Omni Official latest or 2.7.0.0 version).2014.5.23 Update content1, fixed 2.7.0.0 version display color problem (this problem in my a900s on the test found, before also no one feedback)2, repair keys
Mobile phone number
Mobile phone name has GSM: said only support China Unicom or mobile 2G (130, 131, 132, 134, 135, 136, 137, 138, 139, 145, 147, 150, 151, 152, 155, 156, 157, 158, 159, 182, 185, 186, 187, 188)
Mobile phone name has CDMA: only
Copy the code code as follows:
1. PHP Verification Mobile Phone number (support attribution to query and code for UTF8) _php tutorial
Introduction: PHP Verification mobile phone number (support attribution to query and encoded as
This article summarizes two commonly used mobile phone home location query programs. One is to use APIs to call third-party interfaces, and the other is to use our own mobile phone database to query and then judge the mobile phone number home location query.
First, let's look at a program that calls the third method we
supported mobile number prefix Array_splice ($sunum, 0, 1);//Cancel the current directory Array_splice ($ sunum,0,1); Remove the top-level directory $sub =substr ($phone, 0, 3);//Get the first three digits of the number if (In_array ($sub, $sunum)) { $num =substr ($phone, 3,4); $search =file ($dbpath. $sub); $re
return false;If (strlen ($ tel) $ Tel = cn_substr ($ tel, 11); // truncates 11 characters to prevent multiple phone numbers.// If (! Is_numeric ($ tel) return false;If (cn_substr ($ tel, 1) = "0") // determines whether the phone number starts with 0. in this case, the landline number may start with 0.{If (cn_substr ($
displays the result. In addition, custom pages support submission from the get method, so that you can customize multiple queries locally. Do not modify the red part in the following example.
Page part1.htm for a complete query page:
Charset = UTF-8 "/> Enter the mobile phone number: Input id = "M" Size = "15" maxlength = "15"/> Input type = "Submit" Valu
If you want to do a cell phone number verification, then we need to know the number of mobile phone number section.//Mobile number Attribution support Segment: 134 135 136 137 138 139 1
landline number may start with 0.
{
If (cn_substr ($ tel, 2) = "01" | cn_substr ($ tel, 2) = "02") $ tel = cn_substr ($ tel, 3 ); // Three-digit area code
Else $ tel = cn_substr ($ tel, 4 );
$ Row = $ dsql-> GetOne ("Select code, city as dd from 'dede _ tel 'where code =' $ tel 'group by code ");
}
Else
{
$ Tel = cn_substr ($ tel, 7 );
$ Row = $ dsql-> GetOne ("Select num, city as dd from 'dede _ tel 'where num =' $ tel '");
}
$ City = $ row ['DD'];
may start with 0.{If (cn_substr ($ tel, 2) = "01" | cn_substr ($ tel, 2) = "02") $ tel = cn_substr ($ tel, 3 ); // Three-digit area codeElse $ tel = cn_substr ($ tel, 4 );$ Row = $ dsql-> GetOne ("Select code, city as dd from '#@__ tel' where code = '$ tel' group by code ");}Else{$ Tel = cn_substr ($ tel, 7 );$ Row = $ dsql-> GetOne ("Select num, city as dd from '#@__ tel' where num = '$ tel '");}$ City = $ row ['DD'];If ($ city){$ City = str_replace ("province", "-", $ city );$ City = str_repl
($tel, 4);
$row = $dsql->getone ("Select Code,city as DD from ' #@__tel ' where code= ' $tel ' GROUP by Code");
}
Else
{
$tel = Cn_substr ($tel, 7);
$row = $dsql->getone ("Select Num,city as DD from ' #@__tel ' where num= ' $tel '");
}
$city = $row [' DD '];
if ($city)
{
$city = Str_replace ("province", "-", $city);
$city = Str_replace ("City", "" ", $city);
$city = "return $city;
}
}
API implementation method, there is no need for its own database, but there are limitations
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.