Implement the innerText attribute for firefoxA lot of code has been written, forgotten, and written, which is a waste of resources, so I decided to develop the habit of taking notes.Knowledge point:0. Why innerText? Security problems1. Extend attributes for the firefox dom Model2. The currentStyle attribute can get the actual style status.3. The display mode is taken into account when IE implements innerText. If it is block, a line break is added.4. W
/***************************by garcon1986********************************/
Reference section:
Because Firefox does not support document.all-induced problems (and resolution)It's a big problem to look into a problem in the afternoon.Symptoms:The server keeps receiving undefined requestsAlmost all of it came from Firefox.It's natural to think about JavaScript.And the common JavaScript error is fault toleranc
Discover an interesting jquery rotary plugin on the Internet, support Internet Explorer 6.0+, Firefox 2.0, Safari 3, Opera 9, Google Chrome, use transform in advanced browsers, Low version IE uses VML for implementation.Calls and methods:rotate (angle)Angle parameter: [number]– defaults to 0– rotate the picture based on the given angleFor example:
Copy Code
For details about how to parse IE, FireFox, and operabrowsers to support Alpha transparency, see the following code:
The Code is as follows:
Filter: alpha (opacity = 50);/* IE */-Moz-opacity: 0.5;/* Moz + FF */Opacity: 0.5;/* supports CSS3 browsers (FF 1.5 is also supported )*/
Internet Explorer uses the private attribute filter: alpha (opacity), Moz Family uses the Private Attribute-moz-opacity, and
An interesting jQuery rotation plug-in is found on the Internet. It supports Internet Explorer 6.0 +, Firefox 2.0, Safari 3, Opera 9, and Google Chrome. Transform is used in advanced browsers, earlier versions of ie use VML for implementation.Call and method:Rotate (angle) Angle Parameter: [Number]-0 by default-rotate the Image Based on the given angleFor example:Copy codeThe Code is as follows:$ ("# Img").
An interesting jquery rotation plug-in is found on the Internet. It supports Internet Explorer 6.0 +, Firefox 2.0, Safari 3, opera 9, and Google Chrome. transform is used in advanced browsers, earlier versions of IE use VML for implementation.
Call and method:
Rotate (angle)
Angle Parameter: [number]-0 by default-rotate the Image Based on the given angle
For example:
CopyCode The Code is as follo
By default, Firefox does not support innertext, but it has the same function as innertext in textcontent. The procedure is as follows: program code document. Write (document. Body. textcontent );
It is a little uncomfortable for people who are used to using innertext, so someone on the Internet also creates an innertext attribute for Firefox. The Code is as follo
Just add the code after the Jquery.autocomplete.js 213 semicolon.. Bind ("Input", function () { //@hack by Liqt:support-inputing Chinese characters in Firefox OnChange (0, true); })If you bind the event in Reult time and you want the copied content to trigger your event, you can add the following code to ensure that the user does not click the option to trigger your result event .Fix jquery autocomplete in
Implementing InnerText Properties for FirefoxA lot of code written and forgot to write, very wasteful, so decided to develop the habit of making notes.
Knowledge Points:
0, why should innertext? Because of security.
1. Extended properties for the Firefox DOM model
2, the Currentstyle property can get the actual style state
3, IE implemented innertext when the display mode, if the block is added line
4, why not textcontent? Because Textcontent does not
Today in the project, encountered the front-end download Excel function, the result of the original code, as follows:function Generate_excel (tableid) {var table = document.getElementById (TableID);var html = table.outerhtml;window.open (' data:application/vnd.ms-excel;base64, ' + base64_encode (HTML));}This kind of writing, can only support ff,chrome, cannot support under IE. Search on the Internet, you ca
Extjs is displayed normally in Firefox, but an error is returned when you open it with IE: the object does not support this attribute or method (Object doesn't support this property or method ).I found it online. This is an issue in IE where the first element of the body can't be a text node.The first element in the original body label cannot be text. Otherwise,
The IE, Firefox, and WebKit kernels do not support WML rendering. You can use WML. js WML. XSL wml.css in wmlbrowser as a plug-in to enable IE to support WML rendering. WML. js converts WML to HTML. The following is a test case.Android daily browser uses the WebKit kernel to parse WML through the above method.
Modify WML. XSL content.
One: To solve the problem: under IE6-IE11 compatible with the following transparent upload file button effect. Implementation is implemented through filters.Two: The following:Three: Code:Style:. file2 {position:absolute;-ms-filter: "Progid:DXImageTransform.Microsoft.Alpha (opacity=50)";/*ie 8*/filter:alpha ( opacity=0);/*ie 5-7*/opacity:.0;/*opera9.0+,firefox1.5+,safari,chrome*/width:30px;height:20px;line-height:20px; cursor:pointer;padding:0;overflow:hidden;padding-top:0px;} IE,
When this problem occurs,
I have a page of main.html with many frameworks, such as a.html, B .html, c.html, d.html, and e.html...
These subpages contain a MenuButtonClass () method with the same name as javascript.
In one of the Child pages, I will handle other frames.
Window. parent. frames (x). MenuButtonClass ();
This code has no problem in IE, but it is wrong in firefox!
Later, I wrote the example parent.doc ument. getElementsByTagName ("f
One: To solve the problem: under IE6-IE11 compatible with the following transparent upload file button effect.Implementation is implemented through filters.Two: For example the following:watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvy2h4mtawnte0mtm=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvy2h4mtawnte0mtm=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">Three: Code:Style:. file2 {position:abs
The player kernel is using object or embedJust tested, the latest Firefox does not support, IE 360 can also use, another day to change audio to do itHere, let's write it down.Support next song, pause, startThe way to use it is simple:The code is very simple, using JS implementation, the use of the method is very simple1, introduced Css:2, introduced Js:3, put a loading player div container 4.This document i
them into Web applications to create richer, more interactive user experiences.
Microsoft officials say DHTML and HTTP XML were the first to appear in IE browsers in 1997, but the technology did not get massive support from developers at the time. Web application development now tends to provide a rich user experience with multimedia, and Microsoft hopes that Atlas will help developers catch up with this programming mainstream.
At the PDC meeting
Tip: You can modify some of the code before running
JavaScript pure JS Picture ad rotation effect [support IE7,IE8.FIREFOX,IE6]
Tip: You can modify some of the code before running
As we all know, there are two ways to get event objects on a webpage. One is to access the window. Event attribute, and the other is the first parameter of the event function.
IE only supports window. event, Firefox only supports the form of parameters, while other mainstream browsers support both. Therefore, for compatibility with FF, it is generally written:
Function handle (e) {e = E | event ;...}
A
Native JSON support in IE8
Translation: Meng xianhui
Original article: http://blogs.msdn.com/ie/archive/2008/09/10/native-json-in-ie8.aspx
You may have guessed from the title of this article that Internet Explorer 8 (currently beta2) provides native JSON parsing and serialization. This new Native JSON function enables Internet Explorer 8 to run on existing Ajax applications more quickly and securely.
What is JSON?
Most developers do not only develop A
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.