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 نقل قول لینک به ارسال
parisa 0 ارسال شده در اردیبهشت 92 مالک گزارش بازنشر ارسال شده در اردیبهشت 92 بله نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .