parisa 0 ارسال شده در اردیبهشت 92 گزارش بازنشر ارسال شده در اردیبهشت 92 کد right-click برای سند html بااستفاده از جاوا اسکریپت روی دایره را می خواستم لینک به ارسال
imanfakhar 26231 ارسال شده در اردیبهشت 92 گزارش بازنشر ارسال شده در اردیبهشت 92 <script>document.onmousedown=disable; //IEfunction disable(e){if (e == null) { //IE disable e = window.event; if (e.button==2) { window.location='p3.html'; return false; } }document.onclick=ffdisable; //FF}function ffdisable(e){if (e.button==2) { //firefox disable e.preventDefault(); e.stopPropagation(); window.location='p3.html'; return false; }}</script> 4 لینک به ارسال
parisa 0 ارسال شده در اردیبهشت 92 مالک گزارش بازنشر ارسال شده در اردیبهشت 92 ببخشید این قطعه کدرا کجای برنامه باید قرار بدم؟ لینک به ارسال
Parsa 23463 ارسال شده در اردیبهشت 92 گزارش بازنشر ارسال شده در اردیبهشت 92 شما میخواهید در ناحیهای رویداد کلیک راست اتفاق بیفته؟ 3 لینک به ارسال
imanfakhar 26231 ارسال شده در اردیبهشت 92 گزارش بازنشر ارسال شده در اردیبهشت 92 راحت ترین راحش اینه که لایه تون رو بسازید و برای یک فانکشن در حالت موس اور تعریف کنید و این کد را مقدار آن فانکشن بگذارید مانند <script>function rightclick(){document.onmousedown=disable; //IEfunction disable(e){if (e == null) { //IE disable e = window.event; if (e.button==2) { window.location='p3.html'; return false; } }document.onclick=ffdisable; //FF}function ffdisable(e){if (e.button==2) { //firefox disable e.preventDefault(); e.stopPropagation(); window.location='p3.html'; return false; }}}</script><style type="text/css">#tst {width:600px;height:600px;}table{min-height:700px;}td{border:thin #999966 solid;}</style><table align="center" cellpadding="13" cellspacing="0" style="width: 100%; height: 100%"><tr> <td> </td> <td> </td> <td> </td></tr><tr> <td> </td> <td id="tst" onmouseover="rightclick()"> </td> <td> </td></tr><tr> <td> </td> <td> </td> <td> </td></tr></table> 4 لینک به ارسال
پست های پیشنهاد شده
لطفا برای ارسال دیدگاه وارد شوید
شما بعد از اینکه وارد حساب کاربری خود شدید می توانید دیدگاهی ارسال کنید
ورود به حساب کاربری