(function(window,$){$.fn.extend({mySlide:function(arr,speed){var ele=$(this),myW=parseInt($(this).css("width")),myH=parseInt($(this).css("height")),arrlen=arr.length;var html='img
';if(arr[arrlen-1].imgurl!=undefined&&arr[arrlen-1].href!=undefined&&arr[arrlen-1].text!=undefined){html+='img

'+arr[arrlen-1].text+'

';}else if(arr[arrlen-1].imgurl!=undefined&&arr[arrlen-1].href!=undefined){html+='img';}else{html+='img';} $.each(arr,function(n,obj){if(obj.imgurl!=undefined&&obj.href!=undefined&&obj.text!=undefined){html+='img

'+obj.text+'

';}else if(obj.imgurl!=undefined&&obj.href!=undefined){html+='img';}else{html+='img';}});if(arr[0].imgurl!=undefined&&arr[0].href!=undefined&&arr[0].text!=undefined){html+='img

'+arr[0].text+'