<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>运达&#039;s  blog &#187; phpcms</title>
	<atom:link href="https://www.yunda51.com/?feed=rss2&#038;tag=phpcms-2" rel="self" type="application/rss+xml" />
	<link>https://www.yunda51.com</link>
	<description>运达的博客</description>
	<lastBuildDate>Wed, 12 Nov 2025 07:58:26 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.19</generator>
	<item>
		<title>V9图片轮换广告如何添加多个？</title>
		<link>https://www.yunda51.com/?p=896</link>
		<comments>https://www.yunda51.com/?p=896#comments</comments>
		<pubDate>Thu, 16 May 2013 05:56:05 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[Phpcms]]></category>
		<category><![CDATA[php技术]]></category>
		<category><![CDATA[phpcms]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=896</guid>
		<description><![CDATA[V9图片轮换广告BUG一个网页上不能添加多个轮换广告？添加多个后调用出现错误，由于内置的JS调用只能调用单个的<a href="https://www.yunda51.com/?p=896" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>V9图片轮换广告BUG一个网页上不能添加多个轮换广告？添加多个后调用出现错误，由于内置的JS调用只能调用单个的。无法满足要求，那么方法如下： 将广告的数组调出来之后，是无法使用的，需要用eval 函数把字符串按照 PHP 代码来计算。<br />
代码如下：</p>
<div class="buy shortcodestyle">
{pc:get sql="SELECT setting FROM phpcms_poster WHERE spaceid = 12 AND type='images' AND disabled=0 ORDER BY listorder ASC" num="5"}<br />
{loop $data $r}<br />
&lt;!--?php eval("\$narry =$r[setting];"); ?--&gt; &lt;a href="{$narry[1][linkurl]}" target="_blank"&gt;&lt;img src="{$narry[1][imageurl]}" alt="{$narry[1][alt]}" width="690" height="200" /&gt;&lt;/a&gt;<br />
{/loop}<br />
{/pc}
</div>
<p>转载请注明转自:<a href="http://www.yunda51.com">运达's blog</a>  原文地址：<a href="http://www.yunda51.com/896.html">http://www.yunda51.com/896.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=896</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
