Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> prawy myszki blokada, jescze 1 pytanie :)
siestrzemcewiczo...
post
Post #1





Grupa: Zarejestrowani
Postów: 67
Pomógł: 0
Dołączył: 26.08.2005

Ostrzeżenie: (0%)
-----


Ej no jeszcze miałem jedno pytanie hmm wiec chcem zrobic aby po naciśnięciu prawego przycisku myszki wyskakiwało duzo komunikatów na raz lub kilka pod rząd najlepiej duuuuuuuzo naraz ale wątpie ze coś takiego sie da (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) pozdro (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)

sory za kłopot (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
siestrzemcewiczo...
post
Post #2





Grupa: Zarejestrowani
Postów: 67
Pomógł: 0
Dołączył: 26.08.2005

Ostrzeżenie: (0%)
-----


  1. <script Language="JavaScript">
  2. document.write("<body onselectstart=\"return false\">");
  3.  
  4.  
  5. <script language=JavaScript1.2>
  6. <!--
  7.  
  8. /*
  9. No Right Click
  10. */
  11.  
  12. if (window.Event) // Only Netscape will have the CAPITAL E.
  13. document.captureEvents(Event.MOUSEUP); // catch the mouse up event
  14.  
  15. function nocontextmenu() // this function only applies to IE4, ignored otherwise.
  16. {
  17. event.cancelBubble = true
  18. event.returnValue = false;
  19.  
  20. return false;
  21. }
  22.  
  23. function norightclick(e) // This function is used by all others
  24. {
  25. if (window.Event) // again, IE or NAV?
  26. {
  27. if (e.which == 2 || e.which == 3)
  28. return false;
  29. }
  30. else
  31. if (event.button == 2 || event.button == 3)
  32. {
  33. event.cancelBubble = true
  34. event.returnValue = false;
  35. return false;
  36. }
  37.  
  38. }
  39.  
  40. document.oncontextmenu = nocontextmenu; // for IE5+
  41. document.onmousedown = norightclick; // for all others
  42. //-->


--
W przyszłości proszę korzystać z odpowiednich tagów BBCode.
~crash
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 9.10.2025 - 00:42