موضوع دسترسی ب اسکرول دایو,.
jQuery, برنامه نویس, برنامه نویسیتاريخ ارسال:2014/08/12
هاست سنتر سلام و خسته نباشید ب این کد های من ی نگا بندازید میشه این رو یک بار روی سیستم خودتون اجرا کنید. میبینید که من ب دایوم اسکرول دادم میخوام وقتی که ماس روی دکمه ی top یا button رفت اسکرول دایوم ب سمت بالا و پایین حرکت کنه. حالا خواستم ببینم با چ تابعی ب این اسکرول دسترسی داشته باشم ممنون بابت راهنمایی ها کد HTML: <!doctype html> <html> <head> <meta charset="utf-8"> <title>jquery</title> <script type="text/javascript" src="js/jquery-1.8.3.js"></script> <script type="text/javascript" src="js/jquery-ui-1.9.2.custom.js"></script> <script type="text/javascript"> $(document).ready(function(e) { $('.tt').draggable({ revert:true }) $('#two').droppable({ }) }); </script> <style type="text/css"> #one{ text-align:center; margin:auto; width:400px; overflow:scroll; height:500px; background:#FFC; position:relative; } .tt{ float:left; width:250px; height:40px; background:#FC0; margin:4px; text-align:center; } #top{ width:40px; height:40px; background:#000; opacity:0.3; position:fixed; top:50px; right:550px; color:#FFF; } #button{ width:40px; height:40px; background:#000; opacity:0.3; position:fixed; top:400px; right:550px; color:#FFF; } </style> </head> <body> <div id="one"> <div class="tt">one</div> <div class="tt">one</div> <div class="tt">one</div> <div class="tt">one</div> <div class="tt">one</div> <div class="tt">one</div> <div class="tt">one</div> <div class="tt">one</div> <div class="tt">one</div> <div class="tt">one</div> <div class="tt">one</div> <div class="tt">one</div> <div class="tt">one</div> <div class="tt">one</div> <div class="tt">one</div> <div class="tt">one</div> <div class="tt">one</div> <div class="tt">one</div> <div id="top"> top </div> <div id="button"> button </div> </div> </body> </html> هاست,دامین,سایت,وب,طراحی
میزبانی وب ,هاست,فضای وب,ویندوز,لینوکس,دات نت,پی اچ پی,web hosting,windows host,linux host,asp.net,php,sql server,mysql میزبان پایتخت ارائه دهنده خدمات میزبانی وب، هاست و هاستینگ، میزبانی هاست، دامین، میزبانی نمایندگی، نمایندگی وب، سرور مجازی و سرور مجازی ابری می باشد.هاست,میزبانی وب,دامین,سرور مجازی,میزبان پایتخت,host,domain,vps,mizban paytakht,hosting,share hosting,میزبان وب,میزبانی هاست,هاستینگ
google