WEB开发网
开发学院图形图像Flash 网页中FLASH滚动的对联广告源码[修正] 阅读

网页中FLASH滚动的对联广告源码[修正]

 2008-01-24 11:19:37 来源:WEB开发网   
核心提示: <html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body topma

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body topmargin="0" marginwidth="0" >
<script language=JavaScript src="js/menus.js"></script>
<SCRIPT language=JavaScript event=FSCommand() for=c114l>floater.style.visibility='hidden';</SCRIPT>
<SCRIPT language=JavaScript event=FSCommand() for=c1142>floater1.style.visibility='hidden';</SCRIPT>
<DIV id=floater1 style="Z-INDEX: 100; VISIBILITY: visible; WIDTH: 115px; POSITION: absolute; TOP: 236px; left: 0px; height: 150px;">
<div align="center">
<EMBED src=http://www.webjx.com/htmldata/sort/swf/duilian.swf quality=high wmode=opaque WIDTH=100 HEIGHT=150 TYPE='application/x-shockwave-flash' id=c1142></EMBED>
</div>
</DIV>
<DIV id=floater
style="Z-INDEX: 100; RIGHT: 0px; VISIBILITY: visible; WIDTH: 110; POSITION: absolute; TOP: 236; height: 150px;">
<div align="center">
<EMBED src=http://www.webjx.com/htmldata/sort/swf/duilian.swf quality=high wmode=opaque WIDTH=100 HEIGHT=150 TYPE='application/x-shockwave-flash' id=c114l></EMBED>
</div>
</DIV>
<p>
</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
  
<p></p>
<p></p>
<p> </p>
</body>
</html>
menus.js文件:
self.onError = null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
<!-- STALKER CODE -->
function heartBeat(objectid) {
if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
if(diffY != lastScrollY) {
percent = .1 * (diffY - lastScrollY);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) {
objectid = objectid.split(";");
for (i = 0; i < objectid.length; i++) eval("document.all."+objectid[i]).style.pixelTop += percent;
}
if(NS) {
objectid = objectid.split(";");
for (i = 0; i < objectid.length; i++) eval("document."+objectid[i]).top += percent;
}
lastScrollY = lastScrollY + percent;
}
if(diffX != lastScrollX) {
percent = .1 * (diffX - lastScrollX);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) {
objectid = objectid.split(";");
for (i = 0; i < objectid.length; i++) eval("document.all."+objectid[i]).style.pixelLeft += percent;
}
if(NS) {
objectid = objectid.split(";");
for (i = 0; i < objectid.length; i++) eval("document."+objectid[i]).left += percent;
}
lastScrollX = lastScrollX + percent;
}
}
<!-- /STALKER CODE -->
if(NS IE) action = window.setInterval("heartBeat('floater1;floater2')", 2);

swf文件按钮的代码:

on (release)
{
getURL("FSCommand:");
}

上一页  1 2 

Tags:网页 FLASH 滚动

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接