我做了个网站,但是运行起来,页面的数据不能复制,如何解决?
解决方案 »
- wcf问题:超出最大名称表字符计数配额 (16384)。
- 请问用什么控件?
- 【Repeater】根据第二列 来取第一列的自动增加序号
- 有没有好的web统计图表控件,能生成柱状图,饼图之类.
- 这是什么错误?怎么办?
- 有个域名,想把自己做的.html页面挂在上网,让人都看到 怎么做?
- 求助
- 一个一直没有解决的问题!ajax调用返回DataSet调试时可以看到数据,但是在javascript中取值的时候老是undefined,怎么回事情呀?
- 这个问题谁能解决阿?VB传C#中文乱码!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- 大家试试这个和Session、数组有关的SQL语句?
- 菜鸟:关于串行化的问题
- 添加的js文件怎么不可用?
你看看有没有类似于document.onSelect document.onDrag document.on.....反正就是这些类似的东西,如果他后面写的是return false的话,就证明这个页面被JavaScript强制禁止复制了。有问题,请继续
<script language="javascript">
function GetId(id)
{
WinOpen(Form1.url.value,id)
}
function WinOpen(src,id)
{
window.open(src + "?id=" + id,'', 'width=700,height=1000,left=300,top=20,scrollbars =yes');
}
</script>
<script language="Javascript" src="link/images/floating.js"></script>
<script language="Javascript" src="link/images/lbpopup.js"></script>
</HEAD>
<body leftMargin="15" topMargin="0" rightMargin="15" MS_POSITIONING="GridLayout" onselectstart="return false;"
onLoad="initPopup();">
<SCRIPT language="JavaScript">
self.onError=null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
function heartBeat() {
if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
if(diffY != lastScrollY) {
percent = .1 * (diffY - lastScrollY);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) document.all.szsuspend.style.pixelTop += percent;
if(IE) document.all.szsuspend1.style.pixelTop += percent;
if(NS) document.szsuspend.top += percent;
if(NS) document.szsuspend1.top += percent;
lastScrollY = lastScrollY + percent;
}
if(diffX != lastScrollX) {
percent = .1 * (diffX - lastScrollX);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) document.all.szsuspend.style.pixelLeft += percent;
if(IE) document.all.szsuspend1.style.pixelLeft += percent;
if(NS) document.szsuspend.left += percent;
if(NS) document.szsuspend1.left += percent;
lastScrollX = lastScrollX + percent;
}
}
function checkFocus(x,y) {
stalkerx = document.szsuspend.pageX;
stalkerx1 = document.szsuspend1.pageX;
stalkery = document.szsuspend.pageY;
stalkery1 = document.szsuspend1.pageY;
stalkerwidth = document.szsuspend.clip.width;
stalkerwidth1 = document.szsuspend1.clip.width;
stalkerheight = document.szsuspend.clip.height;
stalkerheight1 = document.szsuspend1.clip.height;
if( (x > stalkerx && x < (stalkerx+stalkerwidth)) && (y > stalkery && y < (stalkery+stalkerheight))) return true;
else return false;
if( (x > stalkerx1 && x < (stalkerx1+stalkerwidth1)) && (y > stalkery1 && y < (stalkery1+stalkerheight1))) return true;
else return false;
}
function grabIt(e) {
if(IE) {
whichIt = event.srcElement;
while (whichIt.id.indexOf("szsuspend") == -1) {
whichIt = whichIt.parentElement;
if (whichIt == null) { return true; }
}
whichIt.style.pixelLeft = whichIt.offsetLeft;
whichIt.style.pixelTop = whichIt.offsetTop;
currentX = (event.clientX + document.body.scrollLeft);
currentY = (event.clientY + document.body.scrollTop);
} else {
window.captureEvents(Event.MOUSEDOWN);
if(checkFocus (e.pageX,e.pageY)) {
whichIt = document.szsuspend;
StalkerTouchedX = e.pageX-document.szsuspend.pageX;
StalkerTouchedY = e.pageY-document.szsuspend.pageY;
whichIt = document.szsuspend1;
StalkerTouchedX = e.pageX-document.szsuspend1.pageX;
StalkerTouchedY = e.pageY-document.szsuspend1.pageY;
}
}
return true;
}
function moveIt(e) {
if (whichIt == null) { return false; }
if(IE) {
newX = (event.clientX + document.body.scrollLeft);
newY = (event.clientY + document.body.scrollTop);
distanceX = (newX - currentX); distanceY = (newY - currentY);
currentX = newX; currentY = newY;
whichIt.style.pixelLeft += distanceX;
whichIt.style.pixelTop += distanceY;
if(whichIt.style.pixelTop < document.body.scrollTop) whichIt.style.pixelTop = document.body.scrollTop;
if(whichIt.style.pixelLeft < document.body.scrollLeft) whichIt.style.pixelLeft = document.body.scrollLeft;
if(whichIt.style.pixelLeft > document.body.offsetWidth - document.body.scrollLeft - whichIt.style.pixelWidth - 20) whichIt.style.pixelLeft = document.body.offsetWidth - whichIt.style.pixelWidth - 20;
if(whichIt.style.pixelTop > document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5) whichIt.style.pixelTop = document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5;
event.returnValue = false;
} else {
whichIt.moveTo(e.pageX-StalkerTouchedX,e.pageY-StalkerTouchedY);
if(whichIt.left < 0+self.pageXOffset) whichIt.left = 0+self.pageXOffset;
if(whichIt.top < 0+self.pageYOffset) whichIt.top = 0+self.pageYOffset;
if( (whichIt.left + whichIt.clip.width) >= (window.innerWidth+self.pageXOffset-17)) whichIt.left = ((window.innerWidth+self.pageXOffset)-whichIt.clip.width)-17;
if( (whichIt.top + whichIt.clip.height) >= (window.innerHeight+self.pageYOffset-17)) whichIt.top = ((window.innerHeight+self.pageYOffset)-whichIt.clip.height)-17;
return false;
}
return false;
}
function dropIt() {
whichIt = null;
if(NS) window.releaseEvents (Event.MOUSEDOWN);
return true;
}
if(NS) {
window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN);
window.onmousedown = grabIt;
window.onmousemove = moveIt;
window.onmouseup = dropIt;
}
if(IE) {
document.onmousedown = grabIt;
document.onmousemove = moveIt;
document.onmouseup = dropIt;
}
if(NS || IE) action = window.setInterval("heartBeat()",1);
</SCRIPT>
把这个删除就可以了