2副对联,关掉一个另外一个也关掉了,这怎么做的

mqjshanghai 2005-06-01 02:08:34
像sina上的2副flash对联怎么实现的
...全文
89 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
snower01 2005-06-02
  • 打赏
  • 举报
回复
标记
mqjshanghai 2005-06-02
  • 打赏
  • 举报
回复
好,谢谢.我明天试试看
windear 2005-06-01
  • 打赏
  • 举报
回复
mark
windear 2005-06-01
  • 打赏
  • 举报
回复
mark
泉畔人家 2005-06-01
  • 打赏
  • 举报
回复
把上边的<script>放在〈body〉中
把src=image/pingxuan.swf 改成你要显示的Flash
jackycxg 2005-06-01
  • 打赏
  • 举报
回复
看看他的原代码吧
泉畔人家 2005-06-01
  • 打赏
  • 举报
回复
做的div 关闭时隐藏
例子
<SCRIPT language=JavaScript event=FSCommand() for=px>
followDiv1.style.visibility='hidden';
followDiv2.style.visibility='hidden';
</SCRIPT>

<SCRIPT language=JavaScript>
var delta=0.15
var collection;
function floaters() {
this.items = [];
this.addItem = function(id,x,y,content)
{
document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute; width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');

var newItem = {};
newItem.object = document.getElementById(id);
newItem.x = x;
newItem.y = y;

this.items[this.items.length] = newItem;
}
this.play = function()
{
collection = this.items
setInterval('play()',10);
}
}
function play()
{

for(var i=0;i<collection.length;i++)
{
var followObj = collection[i].object;
var followObj_x = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
var followObj_y = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);

if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
followObj.style.left=followObj.offsetLeft+dx;
}

if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
followObj.style.top=followObj.offsetTop+dy;
}
followObj.style.display = '';
}
}

var theFloaters = new floaters();
theFloaters.addItem('followDiv1','document.body.clientWidth-112',25,'<EMBED id=px src=image/pingxuan.swf width=100 height=278 quality=high TYPE="application/x-shockwave-flash"></EMBED>');
theFloaters.addItem('followDiv2',12,25,'<EMBED id=px src=image/pingxuan.swf width=100 height=278 quality=high TYPE="application/x-shockwave-flash"></EMBED>');
theFloaters.play();

</SCRIPT>

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧