开发者

Next image without refreshing the whole page (on click)

开发者 https://www.devze.com 2023-02-23 13:32 出处:网络
Hi all am trying to \"on click\" go to the next image (I\'ll post code it will be easyer to understand what am trying to do)

Hi all am trying to "on click" go to the next image (I'll post code it will be easyer to understand what am trying to do)

  <form id="selector">
         <select onchange="i开发者_开发知识库nitChapSelector();"></select>
         <select onchange="initPageSelector();"></select>
         <select onchange="initDisplay();"></select>
         </select>
  </form>
         <a href="#" onclick="moveToNextPage(); return false;"><img id="display" src="js/VKmanga/spinner.gif"></a>

but the only way I know is href="#" but that just refreshes the whole page Is there any other ways I can make this work?

Am new to html/php so please forgive me if this above code is all wrong Thanks

Also am working in a forum template if that means anything


Uhm, href="#" should not refresh the whole page. Are you sure there aren't errors in moveToNextPage()? You could also try javascript:void(0) in the href="...": it should do absolutely nothing.

0

精彩评论

暂无评论...
验证码 换一张
取 消