标题:网页生成后总提示"确实允许网页访问剪贴板",这是咋回事哦~~请教各位大虾! ...
只看楼主
changel
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2011-8-31
结帖率:0
已结贴  问题点数:20 回复次数:3 
网页生成后总提示"确实允许网页访问剪贴板",这是咋回事哦~~请教各位大虾!
<%@LANGUAGE="VBSCRIPT"%><!--#include file="Connections/conn.asp" -->
<%
Dim rspro
Dim rspro_numRows

Set rspro = Server.CreateObject("ADODB.Recordset")
rspro.ActiveConnection = MM_conn_STRING
rspro.Source = "SELECT * FROM pro ORDER BY addtime DESC"
rspro.CursorType = 0
rspro.CursorLocation = 2
rspro.LockType = 1
rspro.Open()

rspro_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = 15
Repeat1__index = 0
rspro_numRows = rspro_numRows + Repeat1__numRows
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>案例介绍-厦门致高点品牌策划联盟机构-厦门致高点信息科技有限公司</title>
<style type="text/css">
<!--
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    background-image: url(images/aboutbg.jpg);
}

-->
</style></head>

<body>
<!--#include file="top1.asp"=-->
<div style="width:1024px;margin-left:auto;margin-right:auto">
<table width="845" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#808080">
      <tr>
        <td width="112" height="365" align="right" valign="top" bgcolor="666666" ><!--#include file="left3.asp"=--></td>
        <td width="759" valign="top">
            <div style="width:100%;height:75px;background-color:#A7A5A5;text-align:right;padding-top:6px;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="11%">&nbsp;</td>
                <td width="89%"><td align="center" valign="top">

<img id="bpic" src="<%=(rspro.Fields.Item("pic").Value)%>" width="609" height="400" border="0" GALLERYIMG="no"  />
</td></tr>
</table>
</div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><div style="width:100%;height:75px;background-color:#A7A5A5;text-align:right;padding-top:350px;">
  <table width="100%" height="75" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="85%" align="left" nowrap="nowrap" valign="top">

  <div style="width:502px;text-align:left;margin-left:5px;overflow:hidden;" id="diver">
    <%
While ((Repeat1__numRows <> 0) AND (NOT rspro.EOF))
%>
      <img src="<%=(rspro.Fields.Item("pic").Value)%>" height="55" border="0" style="cursor:pointer;border:1px solid #ffffff;" onmouseover="javascript:this.style.borderColor='#cccccc';changeimg('<%=rspro("pic")%>');" onmouseout="javascript:this.style.borderColor='#ffffff';" galleryimg="no" />
      <%
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  rspro.MoveNext()
Wend
%>
</div>
  
</td>
      <td align="center" valign="middle"><script language="javascript">
var diver;
function scrolldiv(area){
diver=setInterval("divscroll('"+area+"')",50);
}
function divscroll(area){
if(area=="r"){
document.getElementById("diver").scrollLeft=document.getElementById("diver").scrollLeft+25;
}else{
document.getElementById("diver").scrollLeft=document.getElementById("diver").scrollLeft-25;
}
}
function stopscroll(){
clearInterval(diver);
}
function changeimg(url){
document.getElementById("bpic").src=url;
}
</script>
      <img src="images/upon.gif" border="0" align="absmiddle" style="cursor:pointer;" onmousedown="javascript:scrolldiv('l');" onmouseup="javascript:stopscroll();" onmouseout="stopscroll();" GALLERYIMG="no" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src="images/nexton.gif" border="0" align="absmiddle" style="cursor:pointer;" onmousedown="javascript:scrolldiv('r');" onmouseup="javascript:stopscroll();" onmouseout="stopscroll();" GALLERYIMG="no" />&nbsp;&nbsp;</td>
    </tr>
  </table>
</div></td>
              </tr>
            </table></td>
  </tr>
</table></td>
  </tr>
</table> </td>
  </tr>
</table></td>
  </tr>
  <tr>
    <td><div align="right" class="text8">
      </div></td>
  </tr>
</table>
</div>
<!--#include file="footx.asp"=-->
</body>
</html>
<%
rspro.Close()
Set rspro = Nothing
搜索更多相关主题的帖子: html 
2011-08-31 15:07
dzt0001
Rank: 13Rank: 13Rank: 13Rank: 13
等 级:蒙面侠
威 望:5
帖 子:1281
专家分:4998
注 册:2005-10-12
得分:20 
没看到有涉及到剪贴板的操作的代码,自己检查一下include file的文件里时候有相关的JS代码

----我怎能在别人的苦难面前转过脸去----
2011-08-31 15:39
changel
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2011-8-31
得分:0 
谢谢,不过我发现原因应该是IE版本的问题了,IE7,及以下版本不会,就只有IE8,或IE9会
2011-08-31 16:17
dzt0001
Rank: 13Rank: 13Rank: 13Rank: 13
等 级:蒙面侠
威 望:5
帖 子:1281
专家分:4998
注 册:2005-10-12
得分:0 
IE7及以上版本,调用剪贴板就会出现该提示,除非在IE的自定义级别中设置去掉提示。
IE6不会有提示。IE7也是有提示的。

 

----我怎能在别人的苦难面前转过脸去----
2011-08-31 16:25



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-348797-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.300716 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved