Fliggy (shqlsl) javascript portfolio _ typical special effects

Source: Internet
Author: User
Fliggy (shqlsl) javascript portfolio
Http://www.quansou.com/menu/menu.html #
Pure CSS drawer menu (Art Edition)
Http://www.quansou.com/menu.htm
Http://www.quansou.com/menu1.htm
(Unlimited cascade menu) (Art Edition)
Http://www.quansou.com/autotime/time.html
Input date control (Art Edition)
Http://www.quansou.com/checkfrm/
Form field verification (Art Edition)
Http://www.quansou.com/treemenu/
Unlimited series (xml + js)
Http://www.quansou.com/scroll/scroll.html
Take long and fixed-length functions in Chinese and English:
Function gstr (sSource, iLen)
{
Var el = "...", hzlen;
Var re = new RegExp ("^ (. {" + (iLen) + "}). * $", "I ")
Try {hzlen = sSource. replace (re, "$1 "). match (/[^ \ x00-\ xff]/g ). length} catch (e) {hzlen = 0 ;}
If (sSource. length + hzlen <= iLen) return sSource;
Re. compile ("^ (. {" + (iLen-Math.ceil (hzlen/2) + "}). * $", "I ")
Return sSource. replace (re, "$1"). slice (0, iLen-3) + el;
}

Related Article

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.