国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > CMS > 動易CMS > 正文

圖片模塊中如何去掉右鍵功能?

2024-09-10 21:54:34
字體:
來源:轉載
供稿:網友

問題:圖片模塊中如何去掉右鍵功能?

解答:文章模塊中,有個標簽{$ArticleProtect}放在模板的<body>中<body {$ArticleProtect}>,起去掉右鍵的功能。但這個標簽在圖片模塊中無法解析。
在前臺瀏覽文章模塊時<body {$ArticleProtect}>被解析成了<body oncontextmenu='return false' ondragstart='return false' onselectstart ='return false' onselect='document.selection.empty()' oncopy='document.selection.empty()' onbeforecopy='return false' onmouseup='document.selection.empty()'>。
我們把{$ArticleProtect}解析成的代碼oncontextmenu='return false' ondragstart='return false' onselectstart ='return false' onselect='document.selection.empty()' oncopy='document.selection.empty()' onbeforecopy='return false' onmouseup='document.selection.empty()'拷貝到圖片模塊模板的<body>中,就可以起到去掉右鍵的功能。

如,圖片模塊內容頁的<body onmousemove='HideMenu()'>拷入后就變成了
<body onmousemove='HideMenu()' oncontextmenu='return false' ondragstart='return false' onselectstart ='return false' onselect='document.selection.empty()' oncopy='document.selection.empty()' onbeforecopy='return false' onmouseup='document.selection.empty()'>

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表

圖片精選

主站蜘蛛池模板: 丹东市| 虎林市| 时尚| 会东县| 竹北市| 珠海市| 茶陵县| 孟村| 交口县| 榕江县| 曲周县| 呼和浩特市| 新宾| 潮州市| 安化县| 茶陵县| 沅陵县| 洪湖市| 花莲市| 儋州市| 石景山区| 永济市| 丹棱县| 正镶白旗| 巴南区| 玉屏| 吉林省| 宝清县| 和林格尔县| 宜宾市| 石泉县| 定结县| 临湘市| 漳平市| 济阳县| 昌宁县| 泾源县| 故城县| 东台市| 德庆县| 宁南县|