推 monoceroi:做 CSS .selected{} 然後用 jQ 看網址 07/10 13:12
→ monoceroi:抓 href 對應該網址的元件做 addClass 07/10 13:13
→ monoceroi:這個會比較方便懶人,日後要改也不會大傷腦筋 07/10 13:14
→ monoceroi:$("#.. a[href="+ url + "]").addClass('sel'); 07/10 13:16
推 ateclean:樓上的方法好有趣~ 有沒有demo可以看呀? 07/10 15:09
→ ateclean:我也是用jQ去判斷網址完成同樣的目的 不過還是看不懂 07/10 15:10
→ ateclean:$("#.. a[href="+ url + "]")是要選誰 XDD 07/10 15:10
→ fotofolio:url要一個個手動製作的樣子? 07/10 15:17
→ monoceroi:URL 之前找個函數幫忙撈 location 切割一下就有啦 07/10 15:21
→ monoceroi:對了,上面那個碼是假的碼 XD 07/10 15:22