jQuery 实例

简介:这是jQuery 实例的详细页面,介绍了和php,有关的知识、技巧、经验,和一些php源码等。

class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=324962' scrolling='no'> jQuery 例子

加载
$(document).ready(function(){
    .........
});


livequery
URL:http://plugins.jquery.com/files/livequery-1.0.3.zip
Use:
$("#id").livequery("click",function(){
        jQuery.livequery.registerPlugin("after", "append", "attr","addClass","removeClass");
    .....
});

uploadify
URL:http://www.uploadify.com/wp-content/uploads/Uploadify-v2.1.4.zip
Use:
$('#up_cover').uploadify({
    'uploader'  : 'js/uploadify/uploadify.swf',
    'script'    : 'js/uploadify/uploadify.php',
    'cancelImg' : 'js/uploadify/cancel.png',
    'folder'    : 'uploads',
    'auto'      : true,
    'multi'     : false,
      'removeCompleted': true,
    'fileDesc'  : "Please select PNG, JPG, GIF, BMP, JPEG.",
    'fileExt'   : '*.png;*.jpg;*.gif;*.bmp;*.jpeg',
      'onComplete'  : function(eve, ID, fileObj, response, data) {
        //alert($.cookie('bj'));
        //alert($("#up_bj").val());
        var img = "<img src=\""+fileObj.filePath+"\" width=\"100\" height=\"100\" alt=\""+fileObj.name+"\" />";
        var dirval = "<input name=\"up_coverVal\" type=\"hidden\" id=\"up_coverVal\" value=\""+fileObj.filePath+"\" />";
        $("#up_cover_img").html("");
        $("#up_cover_img").append(img+dirval);
        },
});

Table Drag and Drop JQuery plugin
URL:http://www.isocra.com/articles/jquery.tablednd_0_5.js.zip
use:
<table id="table-1" cellspacing="0" cellpadding="2">
    <tr id="1"><td>1</td><td>One</td><td>some text</td></tr>
    <tr id="2"><td>2</td><td>Two</td><td>some text</td></tr>
    <tr id="3"><td>3</td><td>Three</td><td>some text</td></tr>
    <tr id="4"><td>4</td><td>Four</td><td>some text</td></tr>
    <tr id="5"><td>5</td><td>Five</td><td>some text</td></tr>
    <tr id="6"><td>6</td><td>Six</td><td>some text</td></tr>
</table>
<script type="text/javascript">
$(document).ready(function() {
    // Initialise the table
    $("#table-1").tableDnD();
});
</script>

“jQuery 实例”的更多相关文章 》

爱J2EE关注Java迈克尔杰克逊视频站JSON在线工具

http://biancheng.dnbcw.info/php/324962.html pageNo:14
原文地址:https://www.cnblogs.com/ooooo/p/2253752.html