Discuz教程网

求助FLASH+XML动态调用数据库里的图片

[复制链接]
authicon 半路出家 发表于 2010-10-26 02:08:36 | 显示全部楼层 |阅读模式

下面是XML的内容,我想把图片地址部分变成调用数据库里的图,请高手指点呀
<?xml version="1.0" encoding="UTF-8"?>
<gallery>
   
   <photo>
      <filename>./img/img01.jpg</filename>
      <phototitle>图片1</phototitle>
   </photo>
   <photo>
      <filename>./img/img02.jpg</filename>
      <phototitle>图片2</phototitle>
   </photo>
   <photo>
      <filename>./img/img03.jpg</filename>
      <phototitle>图片3</phototitle>
   </photo>
   <photo>
      <filename>./img/img04.jpg</filename>
      <phototitle>图片4</phototitle>
   </photo>
   <photo>
      <filename>./img/img05.jpg</filename>
      <phototitle>图片5</phototitle>
   </photo>
   <photo>
      <filename>./img/img06.jpg</filename>
      <phototitle>图片6</phototitle>
   </photo>
   <photo>
      <filename>./img/img07.jpg</filename>
      <phototitle>图片7</phototitle>
   </photo>
   <photo>
      <filename>./img/img08.jpg</filename>
      <phototitle>图片8</phototitle>
   </photo>
   <photo>
      <filename>./img/img09.jpg</filename>
      <phototitle>图片9</phototitle>
   </photo>
   <photo>
      <filename>./img/img10.jpg</filename>
      <phototitle>图片10</phototitle>
   </photo>
   <photo>
      <filename>./img/img11.jpg</filename>
      <phototitle>图片11</phototitle>
   </photo>
   <photo>
      <filename>./img/img12.jpg</filename>
      <phototitle>图片12</phototitle>
   </photo>
   <photo>
      <filename>./img/img13.jpg</filename>
      <phototitle>图片13</phototitle>
   </photo>
   <photo>
      <filename>./img/img14.jpg</filename>
      <phototitle>图片14</phototitle>
   </photo>
   <photo>
      <filename>./img/img15.jpg</filename>
      <phototitle>图片15</phototitle>
   </photo>
</gallery>



上一篇:(实用)div+CSS强制实现网站图片等比缩放兼容各大主流浏览器
下一篇:网站内部优化之长尾关键词布署及内链接
authicon 国国PS 发表于 2010-10-26 02:17:59 | 显示全部楼层

没有人回答,是太难还是不想回答呀
authicon 寅生 发表于 2010-10-26 12:17:28 | 显示全部楼层

那你在输出xml文件的时候就应该读出数据库,然后把相应的图片地址输出到这个xml文件中
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 20:13

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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