Pages: 12

  2008-03-07 20:18:34

jopet_Q
» n00b
FTalk Level: zero
28
0
1969-12-31

this for [b]OVERLAY[/b] [b]original by Copyright John Baldock - http://website.lineone.net [/b] [code]<SCRIPT LANGUAGE="JavaScript"> <!---Beginning of 'Right Click = Shake Screen' Function---> <!---

[quote=shakiro214]^I should probably just download an Opera browser then ;) Tnx for the feedback. I'll figure it out :ninja: I can't get moveTo to work on my Opera :smoke: I must be missing something[/quote] I mentioned a while ago that such functions must be supported by your browser. Also in some browsers the default actions of the right and middle mouse buttons cannot be disabled, or can only be disabled by changing browser settings. Such changes to browser settings typically affect all pages viewed through the browser, and typically cannot be done from Javascripts. In Opera, if you enable the "Allow Javascript to receive right clicks" option, Javascript does receive the right clicks, but the default action cannot be disabled. It always comes up. Without being able to disable the default action, capturing the event is completely useless. That's the reason why all our right-click codes are so short. We never even bother looking for ways to disable the function in Opera... We don't use onmousedowns, onmouseups, event.button, etc... just this document.oncontextmenu=some functions here which also disables the context menu key in the keyboard and not just the mouse button...:) @arianne011 add the codes to your external js file

Last edited by jopet_Q (2008-03-07 20:19:26)

Pages: 12

Board footer

© 2024 F Talk

Current time is 13:21

[ 12 queries - 0.018 second ]
Privacy Policy