C# 广告~~!!! http://www.millions.hk/大家帮帮忙,看看这个页面的切换广告的代码怎么写? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这跟C#有什么关系?是Flash效果,比较大众化的了,如果你想看其中的ActionScript,可以去下载一个相应软件查看(Action Script Viewer)有几年没有学习Flash了,呵呵 广告都有50分啊.... 既然是Flash效果.. 那么我帮不到你了. <SCRIPT language=javascript type=text/javascript><!--var focus_width=1000//Flash图片宽度var focus_height=404//Flash图片高度var text_height=0//标题文字高度var swf_height = focus_height+text_height//Flash高度=图片高度+文字高度/*关键:图片、链接、文字传输参数设置;以“|”号分隔显示的图片序数以pics图片张数为准,links、texts可以为空或少于pics数但可能会导至链接或标题出错*/var pics='images/2.jpg|images/1.jpg|images/3.jpg|images/4.jpg|images/5.jpg'var links='Product.asp?id=Par38|Product.asp?id=SP|Product.asp?id=P100|Product.asp?id=P100|Product.asp?id=P100'var texts=''document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="top.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000">');document.write('<param name="menu" value="false"><param name=wmode value="opaque">');//关键:参数传入document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');document.write('<embed src="top.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#000000" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write('</object>');//--></SCRIPT> FLASH可以读取XML及纯文本文档,好象有个LoadVar函数,你把FLASH下载下来,用Action Script View去看他的脚本语言就是了 4楼的是一种给Flash传递数据的方法 用js写的,网上有很多这样的代码,跟C#没有什么关系,如果读取数据库中的广告的话,就用到C#了,只是单独做这样的效果,用flash做效果,js调用,或者直接调用都可以. 微软企业库配置vs2008的项目是否可行? 数据库查询问题!寻找最佳解决方案! C#与JAVA的一个同样程序代码的问题 gridview 在RowDataBound中绑定FooterTemplate里面的数据 C#与 PROCEDURE的问题 控制台风格的Windows窗体界面如何实现? 分页控件怎么用 反射应用问题,请高手诊断 wpf中遍历datagrid的行,获取某一行某一列的状态 这个用索引器怎么做 界面加载的问题 C#文件上传
<SCRIPT language=javascript type=text/javascript>
<!--
var focus_width=1000//Flash图片宽度
var focus_height=404//Flash图片高度
var text_height=0//标题文字高度
var swf_height = focus_height+text_height//Flash高度=图片高度+文字高度
/*
关键:图片、链接、文字传输参数设置;以“|”号分隔
显示的图片序数以pics图片张数为准,links、texts可以为空或少于pics数
但可能会导至链接或标题出错
*/
var pics='images/2.jpg|images/1.jpg|images/3.jpg|images/4.jpg|images/5.jpg'
var links='Product.asp?id=Par38|Product.asp?id=SP|Product.asp?id=P100|Product.asp?id=P100|Product.asp?id=P100'
var texts=''
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="top.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
//关键:参数传入
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="top.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#000000" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
//-->
</SCRIPT>