目前分類:javascript (3)

瀏覽方式: 標題列表 簡短摘要



amy5259 發表在 痞客邦 PIXNET 留言(0) 人氣()

禁止滑鼠暗右鍵的做法

amy5259 發表在 痞客邦 PIXNET 留言(0) 人氣()

parents( expr ) http://docs.jquery.com/API/1.1/DOM/Traversing Get a set of elements containing the unique ancestors of the matched set of elements (except for the root element). Can be filtered with an optional expressions. Return value: jQueryParameters: expr (String): (optional) An expression to filter the ancestors with appendTo( content ) 網址: http://docs.jquery.com/Manipulation/appendTo show( speed, callback ) Returns: jQuery Show all matched elements using a graceful animation and firing an optional callback after completion. hide( ) Hides each of the set of matched elements if they are shown. Same as hide( speed, [callback] ) without animations. Doesn't change anything if the selected elements are all hidden. Demo : View SourceHides all paragraphs then the link on click. $("p").hide(); $("a").click(function () { $(this).hide(); return false; }); EFFECTS/ELEMENATE http://docs.jquery.com/Effects/animate#paramsdurationeasingcallback animate( params, [duration], [easing], [callback] ) DemoView SourceShows a div animate with a relative move. Click several times on the buttons to see the relative animations queued up. $("#right").click(function(){ $(".block").animate({"left": "+=50px"}, "slow"); }); $("#left").click(function(){ $(".block").animate({"left": "-=50px"}, "slow"); }); 希望能寫出可以拖拉但本身不會被移走的圖片

amy5259 發表在 痞客邦 PIXNET 留言(1) 人氣()