账号通
    

账号  

密码  

4607

查看

3

回复
主题:生成首页的问题 [收藏主题] 转到:  
langzunet 当前离线

1

主题

0

广播

0

粉丝
添加关注
级别:学前班

用户积分:212 分
登录次数:7 次
注册时间:2006/12/19
最后登录:2006/12/19
langzunet 发表于:2006/12/19 11:56:00   | 显示全部帖子 查看该作者主题 楼主 

我在首页中加入了以下代码:

<SCRIPT language=javaScript src="images/time.js"
type=text/javascript></SCRIPT>
</DIV>
<DIV class=list_2_center_1>
<script type="text/javascript">
<!--
var focus_width=430
var focus_height=175
var text_height=0
var swf_height = focus_height+text_height
/*图片*/
var pics='topimg/4-1.jpg|topimg/4-2.jpg|topimg/4-3.jpg|topimg/4-4.jpg|topimg/4-5.jpg|topimg/4-6.jpg'
/*链接*/
var links='zt/audition.htm|photo/|zt/game.htm|zt/sheji.htm|zt/topmusic.htm|blog/'
/*文字*/
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="topimg/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+'">');
document.write('<embed src="images/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#FFFFFF" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write('</object>');
//-->
</script>
使用别的程序时没有问题,但使用科汛的时候生成首页时产生的死循环(提示:影片中某个脚本导致adobe flash player9速度降低.如果继续运行,电脑将有一段时间没有响应,是否要终止此脚本)生成后代码如下:

<SCRIPT type=text/javascript>
      <!--
var focus_width=430
var focus_height=175
var text_height=0
var swf_height = focus_height+text_height
/*图片*/
var pics='topimg/4-1.jpg|topimg/4-2.jpg|topimg/4-3.jpg|topimg/4-4.jpg|topimg/4-5.jpg|topimg/4-6.jpg'
/*链接*/
var links='zt/audition.htm|photo/|zt/game.htm|zt/sheji.htm|zt/topmusic.htm|blog/'
/*文字*/
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="topimg/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+'">');
document.write('<embed src="images/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#FFFFFF" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write('</object>');
//-->
</SCRIPT>
<object codeBase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 height=175 width=430 classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000><param NAME="_cx" value="5080"><param NAME="_cy" value="5080"><param NAME="FlashVars" value=""><param NAME="Movie" value="topimg/pixviewer.swf"><param NAME="Src" value="topimg/pixviewer.swf"><param NAME="WMode" value="Opaque"><param NAME="Play" value="-1"><param NAME="Loop" value="-1"><param NAME="Quality" value="High"><param NAME="SAlign" value=""><param NAME="Menu" value="0"><param NAME="Base" value=""><param NAME="AllowScriptAccess" value="sameDomain"><param NAME="Scale" value="ShowAll"><param NAME="DeviceFont" value="0"><param NAME="EmbedMovie" value="0"><param NAME="BGColor" value="FFFFFF"><param NAME="SWRemote" value=""><param NAME="MovieData" value=""><param NAME="SeamlessTabbing" value="1"><param NAME="Profile" value="0"><param NAME="ProfileAddress" value=""><param NAME="ProfilePort" value="0"><param NAME="AllowNetworking" value="all"><param NAME="AllowFullScreen" value="false">
<embed src="images/pixviewer.swf" wmode="opaque" FlashVars="pics=topimg/4-1.jpg|topimg/4-2.jpg|topimg/4-3.jpg|topimg/4-4.jpg|topimg/4-5.jpg|topimg/4-6.jpg&links=zt/audition.htm|photo/|zt/game.htm|zt/sheji.htm|zt/topmusic.htm|blog/&texts=|||&borderwidth=430&borderheight=175&textheight=0" menu="false" bgcolor="#FFFFFF" quality="high" width="430" height="175" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>

此问题怎么解决?

注:风讯\动易\DEDE\帝国,调试无错.

 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.06250秒 powered by KesionCMS 9.0