MozTW 討論區 https://forum.moztw.org/ |
|
分頁語法請教 https://forum.moztw.org/viewtopic.php?f=13&t=35337 |
第 1 頁 (共 1 頁) |
發表人: | catksm [ 2012-06-08, 21:16 ] |
文章主題 : | 分頁語法請教 |
<script type="text/javascript">function Clicklinks(){var u =0; for (var i = 0; i < document.links.length; ++i){ if(document.links[i].style.visibility == "hidden"){continue;} u++; window.open(document.links[i].href, "_blank"); document.links[i].style.visibility = "hidden"; document.links[i].style.display = "none"; if (u >= 5) {break; }}} </script></head> <input type="button" onclick="Clicklinks()" value="一次開啟 05 個分頁"> 請教語法高手 以上語法為 點選按鈕即可 開起分頁 設定數量 這樣語法可以增加按鈕 例如 開10 個開15 個 三種不同數量按鈕共存 然後皆可正常開起分頁嗎? |
發表人: | taglife [ 2012-06-08, 23:34 ] |
文章主題 : | Re: 分頁語法請教 |
按了沒反應耶?! |
第 1 頁 (共 1 頁) | 所有顯示的時間為 UTC + 8 小時 |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |