Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[疑问] 如何转化成ss能用??

[复制链接]
ankoor 发表于 2009-11-6 23:35:38 | 显示全部楼层 |阅读模式
其他网站的源代码如下:
<script language="javascript" type="text/javascript">
var swf = new sinaFlash("http://images.yoka.com/pic/div/2009/lifeflash.swf", "", "248", "254", "8", "#F4FAFA", true,"high");
swf.addParam("allowScriptAccess", "always");
swf.addParam("wmode", "opaque");
swf.addVariable("p_array", "http://p1.yokacdn.com/pic/index/140/2009/0426/U150P1T140D6F3498DT20091103113629.jpg||");
swf.addVariable("txt_array", "京城慈善手工店|最冒险的游戏|摩登酒店的夜晚");
swf.addVariable("link_array", "/life/mall/2009/1029266412.shtml|/life/mall/2009/1028266218.shtml|/life/mall/2009/pic103028671.shtml");
swf.write("imager_div");
</script>

替换成ss的代码如下:
<!--{block name="spacenews" parameter="catid/9,19/haveattach/1/showattach/1/order/i.dateline DESC/limit/0,1/cachetime/8000/cachename/picnews/tpl/data"}-->
<!--{loop $_SBLOCK['picnews'] $value}-->
<script type="text/javascript" src="http://images.yoka.com/pic/deco/2008/0826/sinaflash.js"></script>
<script language="javascript" type="text/javascript">
var swf = new sinaFlash("http://images.yoka.com/pic/div/2009/lifeflash.swf", "", "248", "254", "8", "#F4FAFA", true,"high");
swf.addParam("allowScriptAccess", "always");
swf.addParam("wmode", "opaque");
swf.addVariable("p_array", "<a href="$value[url]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" />|<img src="$value[a_thumbpath]"/>|<img src="$value[a_thumbpath]"/>");
swf.addVariable("txt_array", "$value[subject]|$value[subject]|$value[subject]");
swf.addVariable("link_array", "<a href="$value[url]" target="_blank">|<a href="$value[url]" target="_blank">|<a href="$value[url]" target="_blank">");
swf.write("imager_div");
</script>

替换后无法显示!!
 楼主| ankoor 发表于 2009-11-7 21:38:11 | 显示全部楼层
高手解决一下!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-16 23:50 , Processed in 0.020933 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表