MR.Ali 254 ارسال شده در تیر 92 گزارش بازنشر ارسال شده در تیر 92 (ویرایش شده) باسلام و خسته نباشید خدمت مدیران و دوستان عزیزمن یه مشکل توی راست چین کردن لیست ها و همچنین متن های متحرک داشتم میخواستم دوستان اگه می شه منو راهنمایی کنند ممنون میشماین سایت رو ببینیدhttp://organicthemes.../news/archives/میخواستم قسمت آرشیو راست چین بشه و همچنین ون قسمت بالا که متن داری از راست به چپ حرکت میکنه برعکس بشه ویرایش شده تیر 92 توسط MR.Ali نقل قول لینک به ارسال
نسـتـــرن 194 ارسال شده در تیر 92 گزارش بازنشر ارسال شده در تیر 92 سلام دوست من#content.right رو پیدا کنین و این رو بهش اضافه کنین:direction:rtl; 2 نقل قول لینک به ارسال
MR.Ali 254 ارسال شده در تیر 92 مالک گزارش بازنشر ارسال شده در تیر 92 سلام دوست من#content.right رو پیدا کنین و این رو بهش اضافه کنین:direction:rtl;خیلی ممنون لطف کردید حالا میشه بپرسم متن متحرک رو چه طوری تغییر جهت بدم ؟ 1 نقل قول لینک به ارسال
Morteza 34190 ارسال شده در تیر 92 گزارش بازنشر ارسال شده در تیر 92 این جی کوئری هستمعمولا در تابعی که نوشته شده برای رسات و چپ گرد یک خاصیت دارن 2 نقل قول لینک به ارسال
MR.Ali 254 ارسال شده در تیر 92 مالک گزارش بازنشر ارسال شده در تیر 92 این جی کوئری هستمعمولا در تابعی که نوشته شده برای رسات و چپ گرد یک خاصیت دارنممنون آقا مرتضی بله خیلی گشتم تو کد ها تا آخر فهمیدم جی کوئری ولی یکم بیشتر راهنمایی کنید که کجا برم و ... تا این قسمت رو درست کنم .چون هرچی گشتم ونفهمیدم (بیش از 3 ساعت ) لطفا یکم بیشتر راهنمایی کنید . 1 نقل قول لینک به ارسال
imanfakhar 26231 ارسال شده در تیر 92 گزارش بازنشر ارسال شده در تیر 92 ممنون آقا مرتضیبله خیلی گشتم تو کد ها تا آخر فهمیدم جی کوئری ولی یکم بیشتر راهنمایی کنید که کجا برم و ... تا این قسمت رو درست کنم .چون هرچی گشتم ونفهمیدم (بیش از 3 ساعت )لطفا یکم بیشتر راهنمایی کنید .if(startfrom!='right' && startfrom!='left'){ startfrom='right'; };جای left و right باید عوض بشه کدهای js: /*jQuery Scroller pluginCopyright © 2010 Max VergelliFor support and tutorials visithttp://maxvergelli.wordpress.com/License: GNU Lesser General Public License (LGPL)at http://opensource.org/licenses/lgpl-2.1.phpThis plugin is free software; you can redistribute it and/or modify itunder the terms of the GNU Lesser General Public License as published bythe Free Software Foundation; either version 2.1 of the License, or (atyour option) any later version.This software is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITYor FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General PublicLicense for more details.You should have received a copy of the GNU Lesser General Public Licensealong with this library; if not, write to the Free Software Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USATHIS COMMENT AND COPYRIGHT NOTICE MUST BE RETAINED IN THE CODE AS IS FOR LEGAL USE*/(function ($) {$.fn.PlayScroller = function(){ this.children().stop(); this.children().trigger('marquee',['resume']);};$.fn.PauseScroller = function(){ this.children().stop();};$.fn.ResetScroller = function(options){ this.children().stop(); this.children().unbind('marquee'); options = $.extend(this.data(), options); this.SetScroller(options);};$.fn.RemoveScroller = function(){ this.children().stop(); this.children().css({ top:0, left:0 }); this.children().unbind('marquee');};$.fn.SetScroller = function (options) { var _ = { me: this }; options = $.extend({ velocity: 50, direction: 'horizontal', startfrom: 'right', loop: 'infinite', movetype: 'linear', onmouseover: 'pause', onmouseout: 'play', onstartup: 'play', cursor: 'pointer' }, options); var velocity = typeof options.velocity == 'number' ? parseInt(options.velocity) : 50; var direction = options.direction.toLowerCase(); var startfrom = options.startfrom.toLowerCase(); var loop = typeof options.loop == 'number' && options.loop > 0 ? parseInt(options.loop) : -1; var movetype = options.movetype.toLowerCase(); //TODO: 'linear' or 'pingpong' var onmouseover = options.onmouseover.toLowerCase(); var onmouseout = options.onmouseout.toLowerCase(); var onstartup = options.onstartup.toLowerCase(); var cursor = options.cursor.toLowerCase(); _.me.data(options); main(); function main() { _.me.css('cursor',cursor); if(direction=='horizontal'){ if(startfrom!='right' && startfrom!='left'){ startfrom='right'; }; scrollHorizontal(); }else{ if(startfrom!='bottom' && startfrom!='top'){ startfrom='bottom'; }; scrollVertical(); }; if(onmouseover=='play'){ _.me.mouseover(function(){ $(this).children().stop(); $(this).children().trigger('marquee',['resume']); }); }else{ _.me.mouseover(function(){ $(this).children().stop(); }); }; if(onmouseout=='play'){ _.me.mouseout(function(){ $(this).children().stop(); $(this).children().trigger('marquee',['resume']); }); }else{ _.me.mouseout(function(){ $(this).children().stop(); }); }; if(onstartup!='play'){ _.me.children().stop(); }; }; function scrollVertical(){ _.me.children().bind('marquee', function(event,c) { var ob = $(this); var sh = parseInt(ob.parent().height()); var th = parseInt(ob.height()); var tt = parseInt(ob.position().top); var v = velocity>0 && velocity<100 ? (100-velocity)*100 : 5000; var dr = parseInt(v*th/100)+v; if(movetype=='pingpong'){ switch(startfrom){ case 'bottom': if(typeof c == 'undefined'){ob.css({ top: sh-th });}; sh = tt - (th + sh); break; default: if(typeof c == 'undefined'){ob.css({ top: 0 });}; sh += tt + th; }; }else{ switch(startfrom){ case 'bottom': if(typeof c == 'undefined'){ ob.css({ top: sh }); sh = -th; }else{ sh = tt - (th + sh); }; break; default: if(typeof c == 'undefined'){ ob.css({ top: -th }); }else{ sh += tt + th; }; }; }; if(loop<0 || loop>0){ if(loop>0){loop--;}; ob.animate( {top:sh}, { duration:dr, easing:'linear', complete:function(){ob.trigger('marquee');}, step:function(){ switch(movetype){ case 'pingpong': if(startfrom == 'bottom'){ if(parseInt(ob.position().top) <= 0){ startfrom='top'; ob.stop(); ob.trigger('marquee'); }; }else{ if(parseInt(ob.position().top)+parseInt(ob.height()) >= parseInt(ob.parent().height())){ startfrom='bottom'; ob.stop(); ob.trigger('marquee'); }; }; break; default: if(startfrom == 'bottom'){ if(parseInt(ob.position().top) < -parseInt(ob.height())){ ob.stop(); ob.trigger('marquee'); }; }else{ if(parseInt(ob.position().top) > parseInt(ob.parent().height())){ ob.stop(); ob.trigger('marquee'); }; }; }; } }); }; }).trigger('marquee'); }; function scrollHorizontal(){ _.me.children().bind('marquee', function(event,c) { var ob = $(this); var sw = parseInt(ob.parent().width()); var tw = parseInt(ob.width()); var tl = parseInt(ob.position().left); var v = velocity>0 && velocity<100 ? (100-velocity)*100 : 5000; var dr = parseInt(v*tw/100)+v; if(movetype=='pingpong'){ switch(startfrom){ case 'right': if(typeof c == 'undefined'){ob.css({ left: sw-tw });}; sw = tl - (tw + sw); break; default: if(typeof c == 'undefined'){ob.css({ left: 0 });}; sw += tl + tw; }; }else{ switch(startfrom){ case 'right': if(typeof c == 'undefined'){ ob.css({ left: sw }); sw = -tw; }else{ sw = tl - (tw + sw); }; break; default: if(typeof c == 'undefined'){ ob.css({ left: -tw }); }else{ sw += tl + tw; }; }; }; if(loop<0 || loop>0){ if(loop>0){loop--;}; ob.animate( {left:sw}, { duration:dr, easing:'linear', complete:function(){ob.trigger('marquee');}, step:function(){ switch(movetype){ case 'pingpong': if(startfrom == 'right'){ if(parseInt(ob.position().left) <= 0){ startfrom='left'; ob.stop(); ob.trigger('marquee'); }; }else{ if(parseInt(ob.position().left)+parseInt(ob.width()) >= parseInt(ob.parent().width())){ startfrom='right'; ob.stop(); ob.trigger('marquee'); }; }; break; default: if(startfrom == 'right'){ if(parseInt(ob.position().left) < -parseInt(ob.width())){ ob.stop(); ob.trigger('marquee'); }; }else{ if(parseInt(ob.position().left) > parseInt(ob.parent().width())){ ob.stop(); ob.trigger('marquee'); }; }; }; } }); }; }).trigger('marquee'); }; return this;};})(jQuery); ک 4 نقل قول لینک به ارسال
Parsa 23463 ارسال شده در تیر 92 گزارش بازنشر ارسال شده در تیر 92 در فایل jquery.custom.jsstartfrom رو برابر left قرار دهید 4 نقل قول لینک به ارسال
MR.Ali 254 ارسال شده در تیر 92 مالک گزارش بازنشر ارسال شده در تیر 92 در فایل jquery.custom.jsstartfrom رو برابر left قرار دهیدممنون جناب پارسا جواب داد فقط یه سوال می مونه اونم اینکه شما از چه طریق متوجه شدین از این فایل داره این قسمت رو می خونه ؟آخه من inspect element رو زیرو رو کردم متوجه نشدم از کجا این کار رو می کنه و شاید اگه فایلش رو متوجه میشدم با سعی و خطا مشکلم حل می شد اگه کمک اساسی بکنید ممنون می شم که مشکلم برای همیشه حل بشه تو این قسمت نقل قول لینک به ارسال
Parsa 23463 ارسال شده در تیر 92 گزارش بازنشر ارسال شده در تیر 92 من کلاس اون بخش رو پیدا کردمبعد با فایرباگ در کل فایلهای صفحه جستجو کردمهمین 3 نقل قول لینک به ارسال
MR.Ali 254 ارسال شده در تیر 92 مالک گزارش بازنشر ارسال شده در تیر 92 (ویرایش شده) من کلاس اون بخش رو پیدا کردمبعد با فایرباگ در کل فایلهای صفحه جستجو کردمهمینممنون پارسا خان متوجه شدمبا همین کروم هم بریم توی resource و با یه crtl+f کلاس رو سرچ کنیمم جواب می دهبازم ممنون به خاطر یاد دادن ماهی گیری ویرایش شده تیر 92 توسط MR.Ali نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .