Line 216: | Line 216: | ||
cursor:text; | cursor:text; | ||
} | } | ||
− | + | .Herbsay{ | |
+ | width:610px; | ||
+ | height:230px; | ||
+ | float:left; | ||
+ | } | ||
Line 336: | Line 340: | ||
<div id='qnaClose'>X</div> | <div id='qnaClose'>X</div> | ||
<div id='dialog'> | <div id='dialog'> | ||
+ | |||
+ | <div id="box" style="overflow:hidden;height:230px;width:610px;"> | ||
+ | <div style="width:610px;"> | ||
+ | <div class="Herbsay"> | ||
<p> Oh hello ther,I am Charlie,a trusty member of the "Herb Tasters" and also the brainiest E. coli in the colony. | <p> Oh hello ther,I am Charlie,a trusty member of the "Herb Tasters" and also the brainiest E. coli in the colony. | ||
<br> | <br> | ||
Line 345: | Line 353: | ||
<br> | <br> | ||
Muhahahahaha</p> | Muhahahahaha</p> | ||
+ | </div> | ||
+ | |||
+ | <div class="Herbsay"> | ||
+ | <p> Oh hello ther,I am Charlie,a trusty member of the "Herb Tasters" and also the brainiest E. coli in the colony. | ||
+ | <br> | ||
+ | I know all the secrets of Chinese herbs and their magical healing powers. | ||
+ | <br> | ||
+ | If you are up to a challenge,find me at team HSiTW at the jamboree. | ||
+ | <br> | ||
+ | I am the one in a straw hat,showing them pearls.I will be waiting. | ||
+ | <br> | ||
+ | Muhahahahaha</p> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | |||
</div> | </div> | ||
− | <div id='qnaNextBt'>Next ⇒</div> | + | <div id='qnaNextBt' onclick="hz_slidebar(-1,'box');">Next ⇒</div> |
− | <div id='qnaPrevBt'>⇐ Prev</div> | + | <div id='qnaPrevBt' onclick="hz_slidebar(1,'box');" >⇐ Prev</div> |
</div> | </div> | ||
<div id='convopen'>...</div> | <div id='convopen'>...</div> | ||
Line 621: | Line 649: | ||
} | } | ||
}); | }); | ||
+ | |||
+ | |||
+ | var ft = 50; | ||
+ | function hz_slidebar(n,t) | ||
+ | { | ||
+ | //一次捲動的px,越大越快但也越不連貫 | ||
+ | var s=5; | ||
+ | //控制往左或往右捲 | ||
+ | document.getElementById(t).scrollLeft += n*s; | ||
+ | ft=ft-s; | ||
+ | //上面每次會減掉s,減到0時就會停止 | ||
+ | if(ft==0) | ||
+ | //停止時再重新設定成原本的寬度 | ||
+ | ft= 50; | ||
+ | else | ||
+ | //未停止時,就繼續執行,後面的數字是delay的毫秒,數字越大越慢 | ||
+ | setTimeout("hz_slidebar("+n+",'"+t+"')",1); | ||
+ | } | ||
+ | |||
+ | |||
</script> | </script> | ||
Revision as of 20:10, 30 November 2016
Oh hello ther,I am Charlie,a trusty member of the "Herb Tasters" and also the brainiest E. coli in the colony.
I know all the secrets of Chinese herbs and their magical healing powers.
If you are up to a challenge,find me at team HSiTW at the jamboree.
I am the one in a straw hat,showing them pearls.I will be waiting.
Muhahahahaha
Oh hello ther,I am Charlie,a trusty member of the "Herb Tasters" and also the brainiest E. coli in the colony.
I know all the secrets of Chinese herbs and their magical healing powers.
If you are up to a challenge,find me at team HSiTW at the jamboree.
I am the one in a straw hat,showing them pearls.I will be waiting.
Muhahahahaha