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.

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

报告相同问题?