网址:  http://www.ay330.com/busgg/mas/mas.html  (用的是古树FLASH幻灯片效果)问题:打开网址后,不能直接显示幻灯片效果, 为什么,访问新浪,QQ ,迅雷的网站的图片新闻,可以直接看到啊? 而我的老是显示空白,要不就是没有加载影片,要不就是被ActiveX阻止? 好像现在flash会被IE浏览器阻止,还有鼠标点击下,才可以显示。
唉,问题太多了。
我只想做一个上面的幻灯片效果,用什么办法都行,只要可以显示。
哇哇哇。我好歹也算是开发SSH的人了,最怕的就是 javascript了。求助高手,万分感谢。
------------------------------------------------------------------------------------
目录结构:mas/mas.html
         mas/pixviewer.swf
         mas/images/0.jpg ,1.jpg, 2.jpg,3.jpg..........
---------------------------------------------------------------------------------
pixviewer.swf  (好像是跳转页面的作用)---------------------------------------------------------------------------------
mas.html: (下面代码,很多人都很熟悉了吧)<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>【马鞍山风景】</title>
</head><body bgcolor="#333333">
<div style="width:846px; height:576px; position:absolute; left:8%; top:2%; margin-left:0px; margin-top:0px;">
<!--焦点图开始-->
<script type="text/javascript">
<!--
var interval_time=5 //图片停顿时间,单位为秒,为0则停止自动切换
var focus_width=846 //宽度
var focus_height=576 //高度
var text_height=20 //标题高度
var text_align= 'center' //标题文字对齐方式(left、center、right)
var swf_height = focus_height+text_height //相加之和最好是偶数,否则数字会出现模糊失真的问题var pics= 'images/0.jpg|images/1.jpg|images/2.jpg|images/3.jpg|images/4.jpg|images/5.jpg|images/6.jpg|images/7.jpg|images/8.jpg|images/8.jpg|images/8.jpg|images/10.jpg|images/11.jpg|images/12.jpg|images/13.jpg|images/14.jpg|images/15.jpg'//图片地址
var links='http://www.ay330.com|http://www.ay330.com|http://www.ay330.com|http://www.ay330.com|http://www.ay330.com|http://www.ay330.com|http://www.ay330.com|http://www.ay330.com|http://www.ay330.com|http://www.ay330.com|http://www.ay330.com|http://www.ay330.com|http://www.ay330.com|http://www.ay330.com|http://www.ay330.com|http://www.ay330.com';//相对于图片的链接地址
var texts=texts='封面|第1页|第2页|第3页|第4页|第5页|第6页|第7页|第8页|第9页|第10页|第11页|第12页|第13页|第14页|第15页' ;//标题文字
 
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">');
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+'&text_align='+text_align+'&interval_time='+interval_time+'">');
document.write('<embed src="pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&text_align='+text_align+'&interval_time='+interval_time+'" menu="false" bgcolor="#ffffff" 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></div>
</body>
</html>
---------------------------------------------------------------------------------

解决方案 »

  1.   

    点击这个链接后,什么都不要操作。它就不会自动显示,而是要在 空白的地方鼠标点击下,才会出来。---------------------------------------------------------------------------------------------
    这个javascript代码生成了flash文件,据说微软要Adobe收购计划破产,微软就故意搞了个flash 要点一下,才加载!
    ----------------------------------------------------------------------------------------------