这是一个 jQuery UI 插件,可以将有多个选择内容的组合框转换为下拉菜单样式

这是一个 jQuery UI 插件,可以将有多个选择内容的组合框转换为下拉菜单样式。

演示地址:http://www.orzbook.com/demo/select/multiselect-demo.html

jQuery合并图像盒


Today we will show you a nice effect for images with jQuery. The idea is to have a set of rotated thumbnails that, once clicked, animate to form the selected image. You can navigate through the images with previous and next buttons and when the big image gets clicked it will scatter into the little box shaped thumbnails again.

The beautiful photographs are by tibchris and you can find his stunning works on his Flickr page:

http://www.flickr.com/photos/arcticpuppy/

When the window gets resized, the positions of the thumbnails will automatically adapt to fit the screen. We are using the jQuery 2D Transform plugin for the animated rotation. You can find the plugin here: http://plugins.jquery.com/project/2d-transform

When navigating through the full images, we will reveal the next or previous image by removing the current image box by box.

Have fun with the demo and download the ZIP to experiment with this cool effect!
The whole animation looks best in Google Chrome and Apple Safari.

演示地址:http://www.orzbook.com/demo/MergingImageBoxes/index.html

jquery trim去除空格

$.trim($username.val());

jQuery Tooltip跟随鼠标提示条 follow the mouse

鼠标经过出现提示,JQUERY 实现

如图:

 

演示地址:http://www.orzbook.com/demo/jquery-tooltip/jqTooltip.html

 

js的MD5加密函数,支持16位和32位加密

演示:http://www.orzbook.com/demo/js-md5/js-md5.html 

js代码如下 :


<html>
<head>
    <title>js的MD5加密函数,支持16位和32位加密 | Life Note , Open It – Potato&#039;s blog</title>
    <script type=”text/javascript” src=”js/md5.js”></script>
    <script>
        function md5() {
            var hash = document.getElementById(“text”).value.MD5(32);
            document.getElementById(“result”).value = hash;
            document.getElementById(“Text1″).value = document.getElementById(“text”).value.MD5();
        }
        function trans() {
            frm.pwd.value = hex_md5(frm.pwd.value);
            document.getElementById(“result2″).value = frm.pwd.value;
        }
    </script>
</head>
<body>

    <div>
        <a href=”http://www.orzbook.com/>Potato’s blog 首页</a>
    </div>
    MD5加密:<br>
    密文:<input type=”text” id=”text” style=”width: 300″ value=”"  onKeyUp=”md5()”/><br>
    结果32位:<input type=”text” id=”result” style=”width: 300″ /><br>
    结果16位:<input type=”text” id=”Text1″ style=”width: 300″ /><br>
    <br>
</body>
</html>

另附:c# cs代码如下 :


/// <summary>
        /// MD5 加密函数
        /// </summary>
        /// <param name=”str”>要加密的串</param>
        /// <param name=”code”>加密为16位的还是32位的</param>
        /// <returns></returns>
        public static string ToMD5(this string str, int code)
        {
            if (code == 16)
            {
                return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str, “MD5″).ToLower().Substring(8, 16);
            }
            if (code == 32)
            {
                return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str, “MD5″);
            }
            return “00000000000000000000000000000000″;
        }

Page 1 of 41234»