求解,哪位朋友知道用Jscript能够作出背景图片透明渐变 filter : progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=0,finishOpacity=100); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <HTML><HEAD><TITLE>透明度</TITLE><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><META content="text/html; charset=gb2312" http-equiv=Content-Type><META content="Microsoft FrontPage 4.0" name=GENERATOR><style><!--body { font-family: Tahoma; font-size: 10pt; color: #FFFF00 }--></style></HEAD><BODY bgColor=#000000 text=yellow topMargin=10><p align="center"><SCRIPT language=JavaScript type=""><!--function high(which2){theobject=which2highlighting=setInterval("highlightit(theobject)",100)}function low(which2){clearInterval(highlighting)which2.filters.alpha.opacity=15}function highlightit(cur2){if (cur2.filters.alpha.opacity<200)cur2.filters.alpha.opacity+=20else if (window.highlighting)clearInterval(highlighting)}//--></SCRIPT><IMG align=middle alt="come here" border=0 height=247 onmouseout=low(this) onmouseover=high(this) src="ball.gif" style="FILTER: alpha(opacity=30)"> </BODY> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- saved from url=(0032)http://www.ie-zone.com/index.php --><HTML><!-- #BeginTemplate "/Templates/JsExample.dwt" --><HEAD><!-- #BeginEditable "doctitle" --> <TITLE>图形淡出淡隐 </TITLE><!-- #EndEditable --><META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK href="../fav.ico" rel="shortcut icon"><STYLE type=text/css>BODY { MARGIN: 25px 25px 25px}#all TD { FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"}INPUT { FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"}SELECT { FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"}P { FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"}TEXTAREA { FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"}#all A:active { COLOR: #7d070c}#all A:visited { COLOR: #7d070c}#all A:hover { COLOR: #336699}#all A:link { COLOR: #7d070c}</STYLE><SCRIPT language=JavaScript><!--function MM_goToURL() { //v3.0 var i, args=MM_goToURL.arguments; document.MM_returnValue = false; for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");}function JM_cc(ob){ob.select();js=ob.createTextRange();js.execCommand("Copy");}//--></SCRIPT><META content="MSHTML 5.50.4134.600" name=GENERATOR></HEAD><BODY id=all text=#000000 bgColor=#336699><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TR bgColor=#ffffff> <TD><IMG src="../images/sq_1.gif" width=11 height="14"></TD> <TD width="100%"></TD> <TD><IMG src="../images/sq_2.gif" width=11 height="14"></TD> </TR></TABLE><!-- #BeginEditable "Example%20and%20Sources" --> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TR bgColor=#ffffff> <TD><IMG src="../images/space.gif" width=11 height="1"></TD> <TD width="100%"> <table width="100%" border="0" cellpadding="8"> <tr> <td align="center"><!-- #BeginLibraryItem "/Library/js_title.lbi" --><script language="JavaScript">document.write("<font color=#7d070c style=\"font-size: 14px\">"+document.title+"</font>");</script><!-- #EndLibraryItem --></td> </tr> <tr> <td bgcolor="#f7f7f7">提示: 看下面的Banner,一会儿好象要消失,但又慢慢的显示出来,给人一种神秘莫测的感觉。<br> <img src="img/a01.gif" name="u" border=0 alt="Image" style="filter:alpha(opacity=0)"> <script language="JavaScript">//var d='true'var d=0function JM_fade(ob){if (d==0) {ob.filters.alpha.opacity+=1} else {ob.filters.alpha.opacity-=1}if (ob.filters.alpha.opacity==100){d=1;} else if (ob.filters.alpha.opacity==0){d=0}}setInterval("JM_fade(u)",10)</script> </td> </tr> </table> <br> 1.将下面的代码加入到<body>或<head>中 <input type="button" name="Button" value="复制代码到我的剪贴板" onclick="JM_cc(js_1)"> <br> <textarea name="js_1" cols="80" wrap="VIRTUAL" rows="10"><script language="JavaScript">//var d='true'var d=0function JM_fade(ob){if (d==0) {ob.filters.alpha.opacity+=1} else {ob.filters.alpha.opacity-=1}if (ob.filters.alpha.opacity==100){d=1;} else if (ob.filters.alpha.opacity==0){d=0}}setInterval("JM_fade(u)",10)</script></textarea> <br> <br> 2.在使用此效果的图片加上 name="u" 和 style="filter:alpha(opacity=0)"<br> <img src="http://www.ie-zone.com/banners/a01.gif" <font color="#990000">name="u"</font> border=0 alt="Image" <font color="#990000">style="filter:alpha(opacity=0)"</font>> </TD> <TD><IMG src="../images/space.gif" width=11 height="1"></TD> </TR></TABLE><!-- #EndEditable --><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TR bgColor=#ffffff> <TD><IMG src="../images/sq_3.gif" width=11 height="14"></TD> <TD width="100%"></TD> <TD><IMG src="../images/sq_4.gif" width=11 height="14"></TD> </TR></TABLE></BODY><!-- #EndTemplate --></HTML> Web上IMG淡入淡出的HTC封装http://blog.csdn.net/gjd111686/archive/2004/07/27/53323.aspx<style>IMG{ behavior:url('Img.htc');}</style>Img.htc<PUBLIC:COMPONENT><PUBLIC:attach event="ondocumentready" onevent="Init()"/><PUBLIC:attach event="onmouseover" onevent="DefineOn()"/><PUBLIC:attach event="onmouseout" onevent="DefineOff()"/><PUBLIC:method name="DefineInit"/><script>style.filter="alpha(opacity=20)";var timer;var initOffset;var onOffset=5;var offOffset=10;//偏移量function Init(){ initOffset=element.filters.alpha.opacity;}function DefineOn(){ clearInterval(timer) timer=window.setInterval("document.all['"+element.uniqueID+"'].DefineInit(0)",10);}function DefineOff(){ clearInterval(timer) timer=window.setInterval("document.all['"+element.uniqueID+"'].DefineInit(1)",10);}function DefineInit(bStatus){ opacty=element.filters.alpha.opacity; if(bStatus) { if(opacty>initOffset) { element.filters.alpha.opacity-=offOffset; } else { clearInterval(timer); } } else { if(opacty<100) { element.filters.alpha.opacity+=offOffset; } else { clearInterval(timer); } }}</script></PUBLIC:COMPONENT> 为什么我的这段代码,点击注册后,没有执行checkall() safari5下showModalDialog无法自动获得焦点 div ul li当前样式问题 如何用window.open打开宣传品最大化? 一个直接访问网页的问题?急!! jsp+js調用問題,麻煩幫我看看.100分送你.謝謝. JScript中怎么样创建和使用二维数组啊 求一个图片滚动+鼠标悬浮显示DIV层的效果、、、 新手使用Eclipse java Web编程问题救助 跪求资源 javascript中点击单选纽跳转页面 关于清除cookie的问题
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<META content="text/html; charset=gb2312" http-equiv=Content-Type><META content="Microsoft FrontPage 4.0" name=GENERATOR>
<style>
<!--
body { font-family: Tahoma; font-size: 10pt; color: #FFFF00 }
-->
</style>
</HEAD>
<BODY bgColor=#000000 text=yellow topMargin=10>
<p align="center">
<SCRIPT language=JavaScript type="">
<!--
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",100)}
function low(which2){clearInterval(highlighting)
which2.filters.alpha.opacity=15}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<200)
cur2.filters.alpha.opacity+=20
else if (window.highlighting)
clearInterval(highlighting)}
//--></SCRIPT><IMG align=middle alt="come here" border=0 height=247
onmouseout=low(this) onmouseover=high(this) src="ball.gif"
style="FILTER: alpha(opacity=30)">
</BODY>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0032)http://www.ie-zone.com/index.php -->
<HTML><!-- #BeginTemplate "/Templates/JsExample.dwt" --><HEAD>
<!-- #BeginEditable "doctitle" -->
<TITLE>图形淡出淡隐 </TITLE>
<!-- #EndEditable -->
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK href="../fav.ico" rel="shortcut icon">
<STYLE type=text/css>BODY {
MARGIN: 25px 25px 25px
}
#all TD {
FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"
}
INPUT {
FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"
}
SELECT {
FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"
}
P {
FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"
}
TEXTAREA {
FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"
}#all A:active {
COLOR: #7d070c
}
#all A:visited {
COLOR: #7d070c
}#all A:hover {
COLOR: #336699
}
#all A:link {
COLOR: #7d070c
}
</STYLE><SCRIPT language=JavaScript>
<!--
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function JM_cc(ob){
ob.select();js=ob.createTextRange();js.execCommand("Copy");
}
//-->
</SCRIPT><META content="MSHTML 5.50.4134.600" name=GENERATOR></HEAD>
<BODY id=all text=#000000 bgColor=#336699>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TR bgColor=#ffffff>
<TD><IMG src="../images/sq_1.gif" width=11 height="14"></TD>
<TD width="100%"></TD>
<TD><IMG src="../images/sq_2.gif" width=11 height="14"></TD>
</TR>
</TABLE>
<!-- #BeginEditable "Example%20and%20Sources" -->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TR bgColor=#ffffff>
<TD><IMG src="../images/space.gif" width=11 height="1"></TD>
<TD width="100%">
<table width="100%" border="0" cellpadding="8">
<tr>
<td align="center"><!-- #BeginLibraryItem "/Library/js_title.lbi" --><script language="JavaScript">
document.write("<font color=#7d070c style=\"font-size: 14px\">"+document.title+"</font>");
</script><!-- #EndLibraryItem --></td>
</tr>
<tr>
<td bgcolor="#f7f7f7">提示: 看下面的Banner,一会儿好象要消失,但又慢慢的显示出来,给人一种神秘莫测的感觉。<br>
<img src="img/a01.gif" name="u" border=0 alt="Image" style="filter:alpha(opacity=0)"> <script language="JavaScript">
//var d='true'
var d=0
function JM_fade(ob){if (d==0) {ob.filters.alpha.opacity+=1} else {ob.filters.alpha.opacity-=1}if (ob.filters.alpha.opacity==100){d=1;} else if (ob.filters.alpha.opacity==0){d=0}}
setInterval("JM_fade(u)",10)</script>
</td>
</tr>
</table>
<br>
1.将下面的代码加入到<body>或<head>中
<input type="button" name="Button" value="复制代码到我的剪贴板" onclick="JM_cc(js_1)">
<br>
<textarea name="js_1" cols="80" wrap="VIRTUAL" rows="10"><script language="JavaScript">
//var d='true'
var d=0
function JM_fade(ob){if (d==0) {ob.filters.alpha.opacity+=1} else {ob.filters.alpha.opacity-=1}if (ob.filters.alpha.opacity==100){d=1;} else if (ob.filters.alpha.opacity==0){d=0}}
setInterval("JM_fade(u)",10)</script>
</textarea>
<br>
<br>
2.在使用此效果的图片加上 name="u" 和 style="filter:alpha(opacity=0)"<br>
<img src="http://www.ie-zone.com/banners/a01.gif" <font color="#990000">name="u"</font>
border=0 alt="Image" <font color="#990000">style="filter:alpha(opacity=0)"</font>>
</TD>
<TD><IMG src="../images/space.gif" width=11 height="1"></TD>
</TR>
</TABLE>
<!-- #EndEditable -->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TR bgColor=#ffffff>
<TD><IMG src="../images/sq_3.gif" width=11 height="14"></TD>
<TD width="100%"></TD>
<TD><IMG src="../images/sq_4.gif" width=11 height="14"></TD>
</TR>
</TABLE></BODY><!-- #EndTemplate --></HTML>
http://blog.csdn.net/gjd111686/archive/2004/07/27/53323.aspx
<style>IMG
{
behavior:url('Img.htc');
}</style>Img.htc<PUBLIC:COMPONENT>
<PUBLIC:attach event="ondocumentready" onevent="Init()"/>
<PUBLIC:attach event="onmouseover" onevent="DefineOn()"/>
<PUBLIC:attach event="onmouseout" onevent="DefineOff()"/>
<PUBLIC:method name="DefineInit"/>
<script>
style.filter="alpha(opacity=20)";
var timer;
var initOffset;
var onOffset=5;
var offOffset=10;//偏移量
function Init()
{
initOffset=element.filters.alpha.opacity;
}
function DefineOn()
{
clearInterval(timer)
timer=window.setInterval("document.all['"+element.uniqueID+"'].DefineInit(0)",10);
}
function DefineOff()
{
clearInterval(timer)
timer=window.setInterval("document.all['"+element.uniqueID+"'].DefineInit(1)",10);
}
function DefineInit(bStatus)
{
opacty=element.filters.alpha.opacity;
if(bStatus)
{
if(opacty>initOffset)
{
element.filters.alpha.opacity-=offOffset;
}
else
{
clearInterval(timer);
}
}
else
{
if(opacty<100)
{
element.filters.alpha.opacity+=offOffset;
}
else
{
clearInterval(timer);
}
}
}
</script>
</PUBLIC:COMPONENT>