flash 透明背景代码

<div style="background:url('/images/banner2.jpg') no-repeat;  width:800px; height:80px; overflow:hidden" />
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="800" height="80">
...

ASP/jsp自动清空IE缓存里的内容

有时候缓存会给程序带来很大的麻烦,这段代码是用来清空IE缓存里的内容 .

1.禁止客户端缓存要在<head>中加入类似如下内):

<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
...

复制文章内容自动加网址和版权信息的代码

复制文章内容自动加网址和版权信息的代码

<script>

document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "\r\n本篇文章来源于69BT博客"+location.href; clipboardData.setData("text", text); } }, 100 ) }

...