Re: 請問有關這個圖片選單如何做...謝謝

看板Web_Design作者 (ChrisLiu)時間16年前 (2007/12/10 19:20), 編輯推噓3(304)
留言7則, 5人參與, 最新討論串2/2 (看更多)
※ 引述《OCG (空白)》之銘言: 一開始我先直接找 YUI 的 Example,不過竟然沒找到, (YUI Document:http://developer.yahoo.com/yui/) 所以就直接從原始碼下手。 主要是用了 YNWS.Util.rollingRotateAnim 這個類別 (var YNWS= YAHOO.Tw.News;) 好,廢話不多說, 根據原始碼,html 的部份你需要 <!--(begin) inc-news_feature_2007.jake --> <div class="yui-u first"> <div id="ynwsfn" class="ynwsmodule"> <div class="hd"></div> <div class="bd"> <div class="btn"> <p id="procBtn_ln" class="rollnk"> <a href="#" class="roll1 on"><span>1</span></a> <a href="#" class="roll2"><span>2</span></a> <a href="#" class="roll3"><span>3</span></a> <a href="#" class="roll4"><span>4</span></a> <a href="#" class="roll5"><span>5</span></a> </p> <a href="#" id="lBtn_ln" class="prv"><span>Prev</span></a> <a href="#" id="rBtn_ln" class="nxt"><span>Next</span></a> </div> <p class="title-fn"></p> <div id="itemContainer_ln" class="viewBox"> <ul id="itemList_ln"> // 第一頁面的兩張圖 // --- Page 1 Begin --- <li> <div><table> <tr> <th><a href="連結一"><img src="圖片一"/></a></th> <td class="split"></td> <th><a href="連結二"><img src="圖片二"/></a></th> </tr> <tr> <td><a href="連結一">說明一</a></td> <td class="split"></td> <td><a href="連結二">說明二</a></td> </tr> </table></div> </li> // --- Page 1 End --- // 請依照上面格式複製貼上,做第二個頁面的兩張圖… 以此類推 </ul> </div> </div> </div> </div> <!--(end) inc-news_feature_2007.jake --> js 的部份,剛剛喵了一下,應該是把他吃掉就好 http://tw.yimg.com/i/tw/news/yimg/lsm_news_ext_070606.js 當然必要的 YUI 還是要引入 理論上把 rollingRotateAnim 部份留著就好 那段 code 看起來還好(不過我沒有很仔細看啦…) 不知道有沒有 API 可以查... 大概是這樣~ 他裏面一些變數應該可以猜得到。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.62.42.9

12/10 21:04, , 1F
原po是正妹 (逃)
12/10 21:04, 1F

12/10 22:13, , 2F
樓上... 是豬...
12/10 22:13, 2F

12/11 01:14, , 3F
感謝美女大大...Q_Q
12/11 01:14, 3F

12/11 09:35, , 4F
另外一個給你參考.http://zend.lojcomm.com.br/icarousel/
12/11 09:35, 4F

12/13 00:36, , 5F
我參考 wxyy大的網頁作一個範例
12/13 00:36, 5F

12/13 00:36, , 6F
不知道為什麼沒成功QQ http://0rz.tw/233nD
12/13 00:36, 6F

12/14 00:28, , 7F
-.- 搞定了
12/14 00:28, 7F
文章代碼(AID): #17NI3nlq (Web_Design)
文章代碼(AID): #17NI3nlq (Web_Design)