reza_yki 103 ارسال شده در تیر 96 گزارش بازنشر ارسال شده در تیر 96 سلام وقت بخیر به آدرس زیر برید:https://demo.tagdiv.com/newspaper/به قسمت DON'T MISS (باکس زرد رنگ) توجه کنید منویی در ابتدای این باکس هست که با کوجک کردن صفحه از قسمت قابل نمایش منو به قسمت زیر منو منتقل میشه و در هنگام بزرگ کردن صفحه از زیر منو به قسمت قابل دیدن میاد من کد زیر رو از فایلش پیداکردم ولی متوجه نحوه کارش نشدم: /** * pulldown lists * */ jQuery('.td-subcat-filter').each(function(index, element) { var jquery_object_container = jQuery(element); var horizontal_jquery_obj = jquery_object_container.find('.td-subcat-list:first'); var vertical_jquery_obj = jquery_object_container.find('.td-subcat-dropdown:first'); if (horizontal_jquery_obj.length == 1 && vertical_jquery_obj.length == 1) { var pulldown_item_obj = new td_pulldown.item(); pulldown_item_obj.horizontal_jquery_obj = horizontal_jquery_obj; pulldown_item_obj.vertical_jquery_obj = vertical_jquery_obj; pulldown_item_obj.horizontal_element_css_class = 'td-subcat-item'; pulldown_item_obj.container_jquery_obj = horizontal_jquery_obj.parents('.td_block_wrap:first'); pulldown_item_obj.excluded_jquery_elements = [horizontal_jquery_obj.parent().siblings('.block-title:first')]; td_pulldown.add_item(pulldown_item_obj); } }); jQuery('.td-category-siblings').each(function(index, element) { var jquery_object_container = jQuery(element); var horizontal_jquery_obj = jquery_object_container.find('.td-category:first'); var vertical_jquery_obj = jquery_object_container.find('.td-subcat-dropdown:first'); if (horizontal_jquery_obj.length == 1 && vertical_jquery_obj.length == 1) { var pulldown_item_obj = new td_pulldown.item(); pulldown_item_obj.horizontal_jquery_obj = horizontal_jquery_obj; pulldown_item_obj.vertical_jquery_obj = vertical_jquery_obj; pulldown_item_obj.horizontal_element_css_class = 'entry-category'; pulldown_item_obj.container_jquery_obj = horizontal_jquery_obj.parents('.td-category-siblings:first'); td_pulldown.add_item(pulldown_item_obj); } }); ممنون نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .