Last change
on this file since 6502 was
6502,
checked in by vdigital, 14 years ago
|
rightClick deactivates the context menu on websized pictures and more.
|
File size:
661 bytes
|
Line | |
---|
1 | {known_script id="jquery" src=$ROOT_URL|cat:"themes/default/js/jquery.packed.js"} |
---|
2 | {html_head} |
---|
3 | <!-- Provided information by the "rightClick" plugin (version {$RIGHTCK.Version}): {$RIGHTCK.Dir}/template/rightClick_protect.tpl --> |
---|
4 | <script type="text/javascript"> |
---|
5 | jQuery.noConflict(); |
---|
6 | jQuery(document).ready(function($) {*Smarty*}{ldelim} |
---|
7 | {*Smarty*}{foreach item=selector from=$RIGHTCK.Selectors name=select} |
---|
8 | $({*Smarty*}'{$selector}').addClass('rightClick'); |
---|
9 | {*Smarty*}{/foreach} |
---|
10 | $(".rightClick").each( function() {*Smarty*}{ldelim} |
---|
11 | $(this)[0].oncontextmenu = function() {*Smarty*}{ldelim} |
---|
12 | return false; |
---|
13 | } |
---|
14 | }); |
---|
15 | }); |
---|
16 | </script> |
---|
17 | {/html_head} |
---|
Note: See
TracBrowser
for help on using the repository browser.