Author Topic: [Style] Change right click function - Aktion bei Rechtsklick ändern  (Read 3476 times)

0 Members and 1 Guest are viewing this topic.

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Hi,

i wanted another function that happens when a right click is performed while right click protection is enabled:
anstatt der normalen Meldung bei einem Rechtsklick wollte ich eine andere Aktion haben:

in header.html find(e):

Code: [Select]
document.oncontextmenu = new Function("alert('© Copyright by {site_name}');return false");

for a statusbar message replace with:
für eine Statusbar Nachricht ersetze mit:


Code: [Select]
document.oncontextmenu = new Function("window.status='copyright';return false");

just an example... for background color changing replace with:
nur als Beispiel... um bei Rechtsklick die Huntergrundfarbe zu ändern ersetze mit:

Code: [Select]
document.oncontextmenu = new Function("document.bgColor='lightgreen';return false");

Greetz X23
« Last Edit: October 26, 2010, 07:02:43 AM by x23piracy »

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--