1.从我的网站上链接到其它网址, 这些所有网址前面有我的网站地址。
比如
http://www.83883.com/gourl.asp?id=498&url=http://game.dayoo.com/这种样试
2.看到有些网站上文章不准复制,要加什么代码?就是屏蔽右键。
请告诉我加在什么地方哦~谢谢。
不准复制是他们用的网罗协议不同
即,他们用的是“安全超文本传输协议”SHTTP
一般,在线支付用的比较多。
你的第一个问题,我感决不明不白的
所以不能给你解答。
不知是不是<a href="http://www.fcbu.com">你想表述的文字</a>
你是说在连接的时候先跳出个对话框而上面显示你的网站网址吗?不大明白你说的意思
至于第二个,你所说的禁止复制呢,是屏蔽了右键还是其他?
第一个比如
http://www.83883.com/gourl.asp?id=498&url=http://game.dayoo.com/这种样试
第二个就是屏蔽右键。
加代码屏蔽的话,你google 和 baidu搜索一下,特别多,
屏蔽右键有屏蔽右键的代码
右键屏蔽代码
弹出提示框“不许你用右键”的代码:
<script language="javascript"> document.onmousedown=function(){ if(event.button==2)alert("不许你用右键,哈哈");}</script>
点右键没用动作的代码:
<script language="javascript"> document.oncontextmenu=function(){return false;}</script>
我没试验,你自己试试看,网上能找到这种代码
第一个,你想实现那样的效果,是程序上生成的。
原理是http://你的域名/id=子段&url=字段
这样的话,你在后台添加一个地址,就会成
http://你的域名/id=1=&url=http://你添加的地址。
第二:
oncontextmenu="self.event.returnValue=false" onselectstart="return false"
把这段代码加在<body>里
就达到了右边琐定和左边摆甩的效果。
这个代码是禁止保存网页的
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<noscript><iframe src=*.html></iframe></noscript>
<BASE onmouseover="window.status=';www.jxhtml.com';;return true">
<script language="JavaScript">
<!--
if (window.Event)
document.captureEvents(Event.MOUSEUP);
function nocontextmenu()
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu; // for IE5
document.onmousedown = norightclick; // for all others
//-->
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onselectstart="return false">
</BODY>
</HTML>
这个就用来禁止右键了, 不过这个还是可以被保存的
<script language="javascript">
<!--
if (window.Event)
document.captureEvents(Event.MOUSEUP);
function nocontextmenu()
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu; // for IE5
document.onmousedown = norightclick; // for all others
//-->
</script> |
|