yes, just change the "src" of "img" tag and "href" of "a" tag dynamically

解决方案 »

  1.   

    karma(无为) thank you .
    I see.Chang the i value, that all right ;
      

  2.   

    another method is to pass the starting value and ending value along with the URL, for example, http://nizvoo.myrice.com/image.html?8,15then add links at the bottom 
    <a href="http://nizvoo.myrice.com/image.html?0,7>Prev Page</a>
    <a href="http://nizvoo.myrice.com/image.html?16,23>Next Page</a>inside your code, get those two numbers, say, a and b, then do
    for ( i = a ; i <= b ; i ++ ) {
    if ( i%4 == 0 ) 
    .....