Live Messenger dialog box
xx@xx.com
A chat dialog box is often displayed in the blog of some friends, which allows users who are browsing the site to chat. But in my opinion, this function is just like a chicken-who knows who is browsing and who
Objective: To use JavaScript scriptsCodeCall the COM control to implement basic functions:1. Define and initialize the COM control;2. Call the COM interface;3. Register com events and call events.
1. Define and initialize the COM control Define an
1. Remove the right-click menu of the page$ (Document). Ready (function () {$ (document). BIND ("contextmenu", function (e) {returnfalse ;});});2. Search for text in the input boxWhen the mouse gets the focus and loses the focus, the text in the
Absolute position and relative position usage in positionPositioning: position: absolute; syntax: There are two scenarios:1. If top, right, bottom, and left are not set, the "content region original point" of the parent level is the original point
$obj= NewClass_guest_info;$obj -Getlang(); //get the language of your visitors: Simplified Chinese, Traditional Chinese,中文版.$obj -Getbrowser(); //Get the Guest browser:MSIE,Firefox,Chrome,Safari,Opera, Other.$obj -Getos(); //Get guest operating
Ajax cache in IE8/IE9: ie8ie9ajax Cache
Ajax Introduction
AJAX is "Asynchronous Javascript And XML" (Asynchronous JavaScript And XML), which is a Web page development technology used to create interactive web applications.
AJAX = Asynchronous
Jquery. md5.js plug-in needs to be introducedIt can be run directly in IIS;Username: Ethan. zhuPassword: 123456789Download the complete file: WebApplication1_jb51.rarFirst, extract the asynchronous verification of the button-click event as a
Easy to forget, various jq selectors, missing, jq selectors
$ ("P"). addClass (style type defined in css); add a style to an element$ ("Img"). attr ({src: ”test.jpg ", alt:" test Image "}); add attributes/values to an element. The parameter is map.((
JQuery tool FunctionsOriginal article address: Workshop
Attribute list description
Webkit-related browsers return true; otherwise, false, such as google and aoyou.
Mozilla-related browsers return true; otherwise, false, such as Firefox
The safari
Attribute:$ ("P"). addclass (style type defined in CSS); add a style to an element$ ("IMG"). ATTR ({SRC: ”test.jpg ", alt:" test image "}); add attributes/values to an element. The parameter is map.((”Img”).attr("”src”, ”test.jpg "); add
Code (Text in IE6, ie9, Mac, Google Crome):
$ (Function (){$ ("# "). keydown (function (e ){
// Do not use the keypress method here. Otherwise, CTRL + V and CTRL + V cannot be disabled. for specific reasons, identify the keypress and
Knowledge sharing is achieved on the internet, hoping to help more people.
Attribute:
$ ("P"). addClass (style type defined in css); add a style to an element
$ ("Img"). attr ({src: ”test.jpg ", alt:" test Image "}); add attributes/values to an
Document directory
6. A comprehensive list of IE6 +/Firefox/Webkit/Opera css hack:
Once people get used to something, it is difficult to modify it. There are various reasons why new browsers are becoming increasingly popular and old
As mentioned by Daniel ppk, the style of the file control uploaded from multiple forms is the most difficult to control. See the article Styling an input type = "file ". This plug-in is also mostly for reference.
Let's take a look at input type =
Douban is a successful product in the 2.0 community, and ajax technology in it is also doing well. I studied its source code and it uses jquery on the page, I like its integrated event processing mechanism. I don't need to write a lot of event
This is my demonstration in IE and Firefox:
I don't want to remanufacture the wheel, but because there are problems with several functions I have found on the internet, either ie insertion is abnormal or firexfox cannot achieve the expected results,
Add a progress bar on the screen and check a lot of information.Write down for future use.
Because jQuery is used, it is necessary to introduce jQuery. js,In addition, jquery. progressbar. min. js is introduced. This plug-in can help code implement
[Plug-in function]Jq_scrollfix: when you drag the scroll bar to a certain distance, the target object is located at the top of the website.
Principle]It monitors rolling events and controls the lef and top attributes after the absolute positioning
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.