大家是否可以帮我研究一下榕树下的js代码原理 不知道什么技术实现的,很奇怪在看http://www.rongshu.com/channels/gy/3002.htm 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 0027.css:.mmnn1{ BEHAVIOR: url(/htc/0018.htc)}.mmnn2{ BEHAVIOR: url(/htc/0017.htc); POSITION: relative}0017.htc:<PUBLIC:EVENT id=finfly name=onFinishedFly /><PUBLIC:METHOD name=tick /><PUBLIC:METHOD name=startFly /><PUBLIC:PROPERTY name=from /><PUBLIC:PROPERTY name=fromX /><PUBLIC:PROPERTY name=fromY /><PUBLIC:PROPERTY name=delay /><SCRIPT language="JScript">/*(c)copyright 2001 rain1977.comer ([email protected])http://www.dhtmlet.com*/var currCount;var flyCount;var flying;var msecs;var oTop,oLeft;msecs=50;flyCount=20;flying=false;style.visibility="hidden";window.attachEvent("onload",onload);function onload() {if (delay!="none") window.setTimeout(uniqueID+".tick()", delay);}function tick() {if (flying==false) startFly(); else doFly();}function startFly() {if (fromX==null && fromY==null) {if (from=="top") {style.posTop=-offsetTop-offsetHeight;} else if (from=="bottom") {style.posTop=window.document.body.clientHeight;} else if (from=="right" ) {style.posLeft=window.document.body.clientWidth;} else {style.posLeft=-offsetLeft-offsetWidth;}} else {style.posTop=fromY;style.posLeft=fromX;}style.visibility="visible";flying=true;oTop=style.posTop;oLeft=style.posLeft;currCount=0;doFly();}function doFly() {var dt,dl;currCount++;dt=oTop/flyCount;dl=oLeft/flyCount;style.posTop-=dt;style.posLeft-=dl;if (currCount<flyCount) {window.setTimeout(uniqueID+".tick();", msecs);} else {style.posTop=0;style.posLeft=0;flying=false;evObj=createEventObject();evObj.setAttribute("resulty",uniqueID);finfly.fire(evObj);}}</SCRIPT>0018.htc:<event name="onFadeDone" id="FadeDone" /><property name="duration" /><property name="offstart" /><method name="fadeo" /><method name="doFade" /><attach event="ondocumentready" handler="startOnLoad" /> <script>/*(c)copyright 2001 rain1977.comer ([email protected])http://www.dhtmlet.com*/function startOnLoad() {if (offstart!=null) {if (offstart=="") offstart=0;fadeo(offstart);}}function fadeo(internalPause) {if (duration==null) duration=5;if (internalPause=="") internalPause=0;element.style.width=element.offsetWidth;element.style.filter='blendTrans(duration="+duration+")';window.setTimeout(element.uniqueID+".doFade()",internalPause);}function doFade() {if (element.filters.blendTrans.status==0) {element.filters.blendTrans.Apply();if (element.style.visibility=="hidden") {element.style.visibility="visible";} else {element.style.visibility="hidden";}element.filters.blendTrans.Play();}}</script> js 图片或矩形缩放问题 急急急 jquery.form.js插件上传图片的问题 父子窗口页面刷新的问题 如何实现文件下载 参数传递问题 js创建可重用对象的简单问题 请教关于JS对象名传递后的使用. 关于confirm()的问题 动态调整img的大小 请大侠指点怎么屏蔽“F11”键和“Ctrl+P”? 一个关于打印applet的问题,在线,跟帖有分,百分等待。。 关于iframe与同步参数问题了,在本论坛我已经发了3个类似问题,3*20分了
.mmnn1
{
BEHAVIOR: url(/htc/0018.htc)
}
.mmnn2
{
BEHAVIOR: url(/htc/0017.htc);
POSITION: relative
}0017.htc:
<PUBLIC:EVENT id=finfly name=onFinishedFly />
<PUBLIC:METHOD name=tick />
<PUBLIC:METHOD name=startFly />
<PUBLIC:PROPERTY name=from />
<PUBLIC:PROPERTY name=fromX />
<PUBLIC:PROPERTY name=fromY />
<PUBLIC:PROPERTY name=delay />
<SCRIPT language="JScript">
/*(c)copyright 2001 rain1977.comer ([email protected])
http://www.dhtmlet.com*/var currCount;
var flyCount;
var flying;
var msecs;
var oTop,oLeft;
msecs=50;
flyCount=20;
flying=false;
style.visibility="hidden";
window.attachEvent("onload",onload);
function onload() {
if (delay!="none") window.setTimeout(uniqueID+".tick()", delay);
}
function tick() {
if (flying==false) startFly(); else doFly();
}function startFly() {
if (fromX==null && fromY==null) {
if (from=="top") {style.posTop=-offsetTop-offsetHeight;
} else if (from=="bottom") {style.posTop=window.document.body.clientHeight;
} else if (from=="right" ) {style.posLeft=window.document.body.clientWidth;
} else {style.posLeft=-offsetLeft-offsetWidth;}
} else {style.posTop=fromY;style.posLeft=fromX;}
style.visibility="visible";
flying=true;
oTop=style.posTop;
oLeft=style.posLeft;
currCount=0;
doFly();
}function doFly() {
var dt,dl;
currCount++;
dt=oTop/flyCount;
dl=oLeft/flyCount;
style.posTop-=dt;
style.posLeft-=dl;
if (currCount<flyCount) {window.setTimeout(uniqueID+".tick();", msecs);
} else {style.posTop=0;style.posLeft=0;flying=false;
evObj=createEventObject();
evObj.setAttribute("resulty",uniqueID);
finfly.fire(evObj);}
}
</SCRIPT>0018.htc:
<event name="onFadeDone" id="FadeDone" />
<property name="duration" />
<property name="offstart" />
<method name="fadeo" />
<method name="doFade" />
<attach event="ondocumentready" handler="startOnLoad" />
<script>
/*(c)copyright 2001 rain1977.comer ([email protected])
http://www.dhtmlet.com*/function startOnLoad() {
if (offstart!=null) {
if (offstart=="") offstart=0;
fadeo(offstart);}
}function fadeo(internalPause) {
if (duration==null) duration=5;
if (internalPause=="") internalPause=0;
element.style.width=element.offsetWidth;
element.style.filter='blendTrans(duration="+duration+")';
window.setTimeout(element.uniqueID+".doFade()",internalPause);
}function doFade() {
if (element.filters.blendTrans.status==0) {
element.filters.blendTrans.Apply();
if (element.style.visibility=="hidden") {element.style.visibility="visible";
} else {element.style.visibility="hidden";}
element.filters.blendTrans.Play();}
}</script>