Examples are as follows:
$ (function () {
$ (' ul Li '). addclass (function (i) {return I% 6 = 5? "AB": "";}); Every 6 lines plus white space. Or add dashed
$ ('. Imglist li '). After (function (i) {
var css = "";
if (i% 3 = 2) {
CSS = "";
Left tree, right tabs. Click on the tree to add the corresponding tabs
function addtabs (node) {
var start = ";
var end = ";
if (' #tt '). Tabs (' exists ', node.text))
{(' #tt '). Tabs (' select ', Node.text);
(' #tt '). Tabs ('
Nonsense not to say more, directly to everyone to paste the code, the specific code as follows:
ul {List-style:none} li {line-height:25px; margin-top:3px;} li:hover {background-color: #ddd;} li.hove R {background-color: #fc0;}
1. Pre-binding
First, let's explain what pre-binding is. Pre-binding, as the name suggests, is binding a good event before a control on a Web page has appeared. Pre-binding refers primarily to the. On () method in jquery.
2. Demo
HTML code
In general, the pictures in the Web page are loaded with the flow of the document, when used when the load, but sometimes such loading methods often affect the user experience, such as the mouse hover to change the background picture, only the mouse
Share with you today on the page often appear in return to the top effect
Can omit a lot of code compared to the native Javascript,jquery implementation.
The next step is to post the code directly:
$ (function () {
$ (window). Scroll
Guide/Foundation
This is a basic guide designed to help you get started with jquery. jquery gives you solutions for common problems. If you have not yet established your test page, I recommend that you create an HTML page that contains the
Ashamed to say, to today only to contact jquery, it is a bit late, but since the contact with such a good dongdong, it must be a good dig.
To share a few jquery resource stations first
Plugins-jquery JavaScript Library (There are a number of jQuery
demo:http://www.healdream.com/upload/html/jquery/position/
Down:http://www.51files.com/?z25us63tm6obhqj2xm58
Usage:
First of all, of course, the two JS included in the
Copy Code code as follows:
Copy Code code
Introduction
Cssquery () is a powerful Cross-browser JavaScript function that enables querying of a DOM document using CSS selectors. All CSS1 and CSS2 selectors are allowed plus quite a few CSS3.
Usage
Syntax
elements = Cssquery (selector [, from])
When using jquery, it was just beginning to think that using $ ("#someid") was an extension of the DOM object, so it was comfortable to use $ ("#someid"). value,$ ("#someid"). Text and so on, unfortunately has been not to get the value. It was later
Download the plugin and place the unpacked My_focus folder under the Kindeditor plug-in directory (kindeditor directory/plugins/) such as: H:\webprobject\yzj\kindeditor\plugins\my_ Focus\
In the page where you use the Kindeditor editor, load the
Content is equivalent to the FCKeditor1 in your example.
Copy Code code as follows:
Get the formatted editor contents
function geteditorcontents () {
var oeditor = fckeditorapi.getinstance ("content");
Alert (oeditor.getxhtml (true));
The Add button has the following steps:
1, for the button to add pictures:
FCK all the button pictures are stored in a picture file, this is more unique, the file is stored in the corresponding skin directory, such
Ewebeditor upload an individual picture appears: Please select a valid file, supported format has (gif| Jpg| Jpeg| bmp| PNG)!, let me, in Windows XP to use this component normal, but in the WINDOWS2003, the original is on the system out of the
FCKeditor 2.6 's Directory editor has a file fckeditor.html.
I modified the file, some of the text in IE, opened in the discovery is garbled, the original file has a problem. CharSet is specified in the file as Utf-8:
But the file is kept in
Download Ckeidtor, extract to Webroot directory
Introduce ckeidtor.js on the page you want to use CKEditor
Assuming that 's Name property is content, then add the JavaScript code below:
Copy Code code as follows:
To customize
I thought there was a simpler solution, so I went to the official website and looked at the documents and found that they actually gave us a very simple solution:
Http://docs.fckeditor.net/CKFinder/Developers_Guide/ASP.NET/CKEditor_Integration
You can use JS to monitor the player's events, if the playback is finished, use JS to jump to the next episode of the play page,
This allows for the indirect implementation of continuous playback
Copy Code code as follows:
Playstatechange (
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