当前位置:编程学习 > JS >>

Flash+XML滚动新闻代码 无图片 附源码下载

答案:用flash实现读取新闻连接的代码,方便一个50高度的地方显示外部连接,不错的黑色效果
index.html

复制代码 代码如下:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="Copyright" content="脚本之家 http://www.zhaoxi.net/" />
<meta name="description" content="脚本之家" />
<meta content="脚本之家" name="keywords" />
<title>Flash+XML滚动新闻代码-脚本之家</title>
</head>

<body>
<div align="center">



<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="440" height="50">
<param name="movie" value="flashnews.swf">
<param name="quality" value="high">
<embed src="flashnews.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="440" height="50"></embed>
</object>
</div>
</body>
</html>

textBanner.xml
复制代码 代码如下:

<news>
<content>
<标题>脚本之家</标题>
<链接>http://www.zhaoxi.net/</链接>
</content>
<content>
<标题>脚本之家2</标题>
<链接>http://www.zhaoxi.net/</链接>
</content>
<content>
<标题>脚本之家3</标题>
<链接>http://www.zhaoxi.net/</链接>
</content>
<content>
<标题>电脑教程吧</标题>
<链接>http://www.pcjc8.com/</链接>
</content>
</news>

打包文件下载

测试地址

上一个:javascript实现的动态添加表单元素input,button等(appendChild)
下一个:js 复制功能 支持 for IE/FireFox/mozilla/ns

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,