日韩天天综合网_野战两个奶头被亲到高潮_亚洲日韩欧美精品综合_av女人天堂污污污_视频一区**字幕无弹窗_国产亚洲欧美小视频_国内性爱精品在线免费视频_国产一级电影在线播放_日韩欧美内地福利_亚洲一二三不卡片区

圖片模塊中如何去掉右鍵功能?_動易Cms教程

編輯Tag賺U幣
教程Tag:暫無Tag,歡迎添加,賺取U幣!

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

解答:文章模塊中,有個標簽{$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()'>

查看更多 動易Cms教程  動易Cms模板

來源:模板無憂//所屬分類:動易Cms教程/更新時間:2006-10-26
相關動易Cms教程