image dashitari yokoni slide sasetari

$(function(){ $("#navi a").click(function(){ $("#main img").before("<img src='"+$(this).attr("href")+"'>"); $("#main img:last").fadeOut("fast",function(){ $(this).remove(); }); return false; }); $("img.next").click(function(){ $("#navi .pageWrap").animate({ "margin-left" : parseInt($("#navi .pageWrap") .css("margin-left"))-300+"px" },"fast"); }); $("img.prev").click(function(){ $("#navi .pageWrap").animate({ "margin-left" : parseInt($("#navi .pageWrap") .css("margin-left"))+300+"px" },"fast"); }); });

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.