douhan8009 2011-02-25 19:35
浏览 10
已采纳

使用Ajax / PHP一次显示两个图像

So I'm basically trying to display a book-layout in a modal box with images; that is, I want to load two images at the same time, side by side in the same window. It would look something like this:

<< |0.jpg| |1.jpg| >>

<< |2.jpg| |3.jpg| >>

<< |4.jpg| |5.jpg| >>

etc etc... Viewers would be able to click NEXT and PREVIOUS to go back and forth between the pairs of images.

Is there a way to do this, or is it way too much trouble to bother with?

Any thoughts or suggestions would be greatly appreciated. Thanks in advance!

  • 写回答

1条回答 默认 最新

  • dongqiao3927 2011-02-25 20:22
    关注

    Unless you want to physically combine two images on your server and send them out as a single image to the user, couldn't you just have something like:

    <div class="book">
       <div class="leftpage"><img src="0.jpg"></div>
       <div class="rightpage"><img src="1.jpg"></div>
    </div>
    

    with the appropriate navigation links and whatnot inserted as well.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改