to jQuery Address:
The Code is as follows:
Copy code
Var baseurl = 'HTTP: // www.example.com/test/blog ',Request_uri = '/test/blog /',Request_uri_host = 'HTTP: // www.example.com ';
When the website root directory is in the root directory of the domain name, the three constants are defined:
The Code is as follows:
Copy code
Var baseurl = 'HTTP: // www. bKjia. c0m ',Request_uri = '/',Request_uri_h
There are many ways to open A link in A new window. Sometimes we do not want to add target = _ blank to all A labels. In fact, we have various methods to achieve this. Let me summarize the two methods below.
Jquery adds target = _ blank to all AIPS.
The Code is as follows:
Copy code
$ ("A [rel $ = 'external']"). click (function (){This. href = "http://www.bKjia. c0m ";This.tar get = "_ blank ";});
Directly add target = _
The reason why the background image fades in and out: two different images overlap with different layers, and the top layer is temporarily transparent. When the mouse moves up, the top layer changes from transparent to opaque, move the mouse away and vice versa.
Write the following code
Html structure:
The Code is as follows:
Copy code
Css code:
The Code is as follows:
Copy code
# Logo {Margin: 0 auto;Position: relative;/* relative position
, "/^ ([a-zA-Z0-9 _-]) + @ ([a-zA-Z0-9 _-]) + ((. [a-zA-Z0-9 _-] {2, 3}) {1, 2}) $/"the correct mailbox format that meets the requirements.
The Code is as follows:
Copy code
Function isEmail (str ){Var reg =/^ ([a-zA-Z0-9 _-]) + @ ([a-zA-Z0-9 _-]) + ((. [a-zA-Z0-9 _-] {2, 3}) {1, 2}) $ /;Return reg. test (str );}
Jquery standard network address regular, such as http://www.bKjia. c0m
The Code is as follows:
C
The suspended menu is a customer service effect that we often use on the right or left of the website. The following describes a code and the example source code is provided at the end of the article.
Effect code
Some js Code
The Code is as follows:
Copy code
Source code:Http://file.bKjia. c0m/upload/2013/12/a328.zip
Jquery third-level drop-down menu plug-in source code this article provides you with a jquery drop-down menu plug-in for free to download the effect, if you are looking for a beautiful ui style drop-down menu this jq effect is very good.
Jquery third-level drop-down menu plug-in source codeThis article provides you with a jquery drop-down menu plug-in for free to download results. If you are looking for a beautiful ui style drop-down menu, this jq has a very good effect.
Effect pre
Jquery tab effect: here we provide a jquery tab plug-in to make a beautiful jquery tab effect instance. below is the source code we provide, and online preview and source code download are also provided.
Jquery tab EffectHere we provide an example of using the jquery tab plug-in to make a beautiful jquery tab effect. below is the source code we provide, and we also provide online preview and source code download.
Online Preview addressHttp://g.111cn.cn/javascript/js/20100
Js select provincial/municipal joint menu (read xml json) This select provincial/municipal joint menu Code uses js to read xml data and then generate a drop-down menu, the second step is to read json data and then generate a cascade menu.
Js select provincial/municipal joint menu (read xml json)This select provincial/municipal joint menu Code uses js to read xml data and then generate a drop-down menu. The second step is to read json data and then generate a cascade menu.
// Json
Effect p
It provides you with a superb horizontal columnar voting statistics graph jQuery code for free, using the dynamic voting Effect of jquery plug-in instances.
It provides you with a superb horizontal columnar voting statistics graph jquery code for free, using the dynamic voting Effect of jquery plug-in instances.
Effect preview addressHttp://g.111cn.cn/javascript/js/20100902/count/Source codeHttp://down.bKjia. c0m/down/code/jquery/2010/0902/20593.html
Jquery tab switch instance: This is an ultra-flexible jquery tab switch code, which can be randomly added and can be called multiple times on the same page, and has a superb cache effect, this is just the tip of the jquery tab plug-in iceberg
Switch instances on the jquery tabThis is an ultra-flexible jquery tab switch code, which can be randomly added and can be called multiple times on the same page, and has a superb cache effect. This is just the tip of the iceberg of the jquery tab plug-in.
This article is a jquery prompt plug-in that prompts the code for moving the mouse over the rounded corner frame. It can be a good description of the role and purpose of this image, and can also be a mix of image text.
This article is a jquery prompt plug-in that prompts the code for moving the mouse over the rounded corner frame. It can be a good description of the role and purpose of this image, and can also be a mix of image text.
Source codeHttp://down.bKjia.
The article provides you with an extremely beautiful multi-level drop-down menu. This is a popular jquery multi-level drop-down menu code plug-in. The following describes how to view the results.
The article provides you with an extremely beautiful multi-level drop-down menu. This is a popular jquery multi-level drop-down menu code plug-in. The following describes how to view the results.
View results undergroundAnimation menu ">Http://g.111cn.cn/javascript/js/20100830/jqueryblack
Recently, my website was often attacked. I came up with a method to use php to prevent the website from being attacked. below is my code. The code is not the best. I will do it based on my own needs, let's take a look at my code.
Recently, my website was often attacked. Later I came up with a php tutorial to prevent my website from being attacked. below is my code. The code is not the best. I will do it based on my own needs, let's take a look at my code./** Website anti-ip attack code (anti-ip
Mysql tutorial _ real_escape_string-escape special characters in strings used in SQL statements, and take into account the connected current character set.
But note: This function does not escape % and _. In addition, it is best not to use this function for the entire SQL statement, but to only escape the string parameters passed into the SQL statement, otherwise unexpected results will occur.
$ Item = "Zak's and Derick's Laptop ";
$ Escaped_item = mysql_real_escape_string ($ item );
Print
Many functions can be used to obtain url addresses in php. The global variable server provides me with many methods. Let's take a look.
Common functions
The Code is as follows:
Copy code
// Obtain the domain name or host addressEcho $ _ SERVER ['HTTP _ host']. "// Obtain the webpage addressEcho $ _ SERVER ['php _ SELF ']. "// Obtain URL parametersEcho $ _ SERVER ["QUERY_STRING"]. "// Obtain the user proxyEcho $ _ SERVER ['HTTP _ referer']. "// Obtain the complete urlEcho
How can I obtain the image address by intercepting the content ?? Meat content:
Maximum output power
350 million
Rated Power
300
Power supply version
INTEL ATX12V 1.3
Applicability
Dedicated Network bar Power SupplySupports INTEL945 and 965 express chipset and Intel Core dual-Core processor
Interface Description
A free combination of 20 PIN and 24pin
accept UTF-8 data
For example, if 'signature' is changed to 'u80e5' after json_encode processing, the Chinese part of the final json is replaced with unicode encoding. What we need to solve is to convert the object to json and ensure that the Chinese character inside the object still appears in json as normal Chinese. Now it seems that json_encode alone cannot achieve the goal.My solution: perform url encoding for the Chinese fields in the class first, then perform json encoding (jsonencode) fo
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.