【发布时间】:2011-12-13 19:10:17
【问题描述】:
我有这个代码和 jquery 函数,用于在按右键时隐藏 HTML 元素,但为什么不起作用?
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js"></script>
<script>
$(document).on("mousedown", "div, p, img, span, a", function () {
if (event.which === 3)
$(this).hide();
});
</script>
<?php
$url = 'http://www.kupime.com/';
$data = file_get_contents($url);
$data = '<head><base href='.$url.' target="_blank" /></head>'.$data;
echo $data;
?>
【问题讨论】:
标签: php javascript jquery file-get-contents