css 中clip rect可以满足你的要求
解决方案 »
- 如何用上下键切换<select>菜单
- POST的问题
- 有没有模拟CMD命令提示符或UNIX SHELL的JS脚本参考?
- 能否用javascript在网页上响应用户鼠标在背景上画直线、画圆
- 这个效果要怎么实现牙
- form.all.xxx.value其中all的含义
- 请帮忙改一段代码,使其能适应FireFox浏览器。
- javascript的超级恶心问题!(急!!!!!!!在线等!!!!!!)
- 大难题,谁能解决问题
- contentWindow的兼容问题,刚才发了个,没人回答。。。。拜托帮帮忙,在线等。
- submit 一个form以后怎么得到返回值?
- 请教,IE自带画图控件Microsoft DirectAnimation Structured Graphics无法在浏览器显示!在线等!
部分在非编辑区域,透视到底图
就是这个功能
帮我讲解下原理 谢谢
新手学习中 呵呵
我要狂学JS
是不是 比如图片1.jpg做为底图,上面再在特定的区域设置一个position为absolute的DIV
能不能给个 具体的设置 示例
通过这个position为absolute的DIV 就能透视到下一个图层吗??
邮箱是 [email protected]
<div id="progress_bg" style="position:absolute;top:0px;left:0px;width: 500px; height: 100%;width:500px;background:url(http://diy.kadang.com/kadang/ecommerce/style/default/diy/images/diy_65.png);text-align:center;z-index:3;filter:alpha(Opacity=40)"></div>
<div id="progress_fg" style="position:absolute;top:0px;left:470;width: 50px; height: 20px;z-index:4;border-left:thin solid red;border-top:thin solid red;border-bottom:thin solid red">asdasd</div>
<div style="position:absolute;top:0px;left:500px;width:50px;z-index:7;border-right:thin solid red;border-top:thin solid red;border-bottom:thin solid red"> </div>
<div style="position:absolute;top:0px;left:500px;width: 100%; height: 100%;z-index:6;background-color:white"></div>
一半透明一半显示
图片可以使用shadow滤镜吗
邮箱是 [email protected]
msn同上
希望大家给我 讲解下原理
大家共同研究学习哈哈~~~
先谢谢大家
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> - http://www.never-online.net </title>
<meta http-equiv="ImageToolbar" content="no" />
<meta name="author" content="never-online, BlueDestiny"/>
<meta name="keywords" content="never modules, Mozilla CSS, C#, .net, Reference, BlueDestiny, never-online"/>
<meta name="description" content="javascript reference, c sharp artilces"/>
<meta name="creator.name" content="never-online, BlueDestiny" />
<style type="text/css" media="all" title="Default">
.myFilterWrap { position:relative; border:1px solid #555; }
.myFiltercss { position:absolute; clip:rect(0 0 0 0); }
</style>
<script type="text/javascript">
//<![CDATA[
// http://www.never-online.net
// by never-online
var mysrc = "http://zi.csdn.net/2007.04/windows%20internal4.16.gif"; function myFilter (src, dir, isfilterin) { if (!document.body) return false;
var cachep = new Image(); cachep.src = src;
var nDelay = 10; var strFt = ""; var wrap = document.createElement("DIV");
var image = document.createElement("IMG");
wrap.className = "myFilter";
document.body.appendChild(wrap);
image.height = cachep.height; image.width = cachep.width;
image.src = cachep.src; image.className = "myFiltercss";
wrap.appendChild(image); function fnFt (dir) {
if (1==dir) {
return "rect("+(cnt++)+" auto auto auto)";
} else if (2==dir) {
return "rect(auto "+(cnt++)+" auto auto)";
} else if (3==dir) {
return "rect(auto auto "+(cnt++)+" auto)";
} else if (4==dir) {
return "rect(auto auto auto "+(cnt++)+")";
} else {
return "rect("+(cnt++)+" "+(cnt++)+" "+(cnt++)+" "+(cnt++)+")";
}
};
var cnt = 0; cachep.onload = function Fn () {
image.style.clip = fnFt(1);
if (cnt<=100) this._timeout=window.setTimeout(Fn, nDelay);
else window.clearTimeout(this._timeout);
}; }
//]]>
</script>
</head> <body id="www.never-online.net">
<script type="text/javascript">
//<![CDATA[
myFilter.call(this, mysrc);
//]]>
</script>
</body>
</html>
要怎样实现?