How to Flash when calling jquery slip effect

Source: Internet
Author: User
Tags count

  This article mainly introduces the solution that the layer will blink once when calling the jquery slip effect, the need friend can refer to the following

Problem phenomenon as the title shows, the layer will blink when you invoke jquery to slide out of effect. Find a lot of online solution copy, said to add the following:  code is as follows: <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">    The problem is that the title header is now html4.0, and if you change to the above case, the page will be out of order." Finally found a master to write Dongdong, rewrite jquery's slide out     effect. Master's link address is as follows:  http://aqr199.myweb.hinet.net/jquery_slide_iebug.htm    code as follows:  code: var b1 = new Slide _fix ($ (' #Div3 '));  $ (' #Button5 '). Click (function () {b1.close ();}); /Receive   $ (' #Button6 '). Click (function () {B1.open ();}); /    function Slide_fix (b) {    var h = b.height ();  var step = 600;  var time = 13;  & nbsp This.open = function () {  timerate (step,function (c,r) {  var h1 = h*r;  b.height (H1);  if (c==1) { B.show ();}  }); }    this.close = function () {  timerate (step,function (c,r) {  var h1 = h * (1-r);  B.height (H1);  if (r==1) {b.hide ();}  }); }    function timerate (STEP,FN) {  var t = Now ();  var count = 1;  var Timeid = setinterval (function () {  var T1 = Now ();  var rate = ((t1-t) >step)? 1: (T1-T)/step;  fn (count,rate);  if (rate==1) {clearinterval (Timeid);}   count++; },time); }    function now () {  return (new Date). GetTime (); } }&NB Sp

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.