分享

FLASH 图片幻灯片代码[168娱乐论坛]

 ekylin 2006-10-15
FLASH+图片幻灯片代码


<script type=text/javascript>
<!--
t=6; //secs per slide

// promos + links
prmo = new Array();
link = new Array();

prmo[0]="http://image./module/16_module_images/4483.jpg";link[0]="http://active./20060417april/";prmo[1]="http://image./module/16_module_images/4505.jpg";link[1]="http://product./58966/detail.shtml";prmo[2]="http://image./module/16_module_images/4521.jpg";link[2]="http://product./58282/detail.shtml";prmo[3]="http://image./module/16_module_images/4579.jpg";link[3]="http://product./55110/detail.shtml";prmo[4]="http://image./module/16_module_images/4578.jpg";link[4]="http://product./47673/detail.shtml";

//init
promos = "";
links = "";

// build flashvars
for (x=0;x<prmo.length;x++) {
promos += (x+1<prmo.length) ? prmo[x]+"|" : prmo[x];
links += (x+1<prmo.length) ? link[x]+"|" : link[x];
}

var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if ( plugin ) {
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i)
{
if (isNaN(parseInt(words)))
continue;
var MM_PluginVersion = words;
}
var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
document.write(‘‘<SCR‘‘ + ‘‘IPT LANGUAGE=VBScript>
‘‘); //FS hide this from IE4.5 Mac by splitting the tag
document.write(‘‘on error resume next
‘‘);
document.write(‘‘MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))
‘‘);
document.write(‘‘</SCR‘‘ + ‘‘IPT>
‘‘);
}


if ( MM_FlashCanPlay ) {
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="485" height="215" align="middle">‘‘);
document.write(‘‘<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="newimages/zgcol.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" />‘‘);
document.write(‘‘<param name="FlashVars" value="p=‘‘ + promos + ‘‘&l=‘‘ + links + ‘‘&t=‘‘ + t + ‘‘">‘‘);
document.write(‘‘<embed src="newimages/zgcol.swf" FlashVars="p=‘‘ + promos + ‘‘&l=‘‘ + links + ‘‘&t=‘‘ + t + ‘‘" quality="high" bgcolor="#ffffff" width="485" height="215" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" />‘‘);
document.write(‘‘</object>‘‘);
}
//-->
</script>

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多