开发者

How to implement a Kayak-style country/currency dropdown using jQuery?

Is there a jQuery plugin that approximates the functionality of the country/currency dropdown on the Kayak homepage?

I need to do something开发者_如何学JAVA similar on my own site and don't want to reinvent the wheel if possible.


Example (it seriously can be done in many variations)

<style>
    #currencyLink { position: relative; } // we make anchor for the absolutely positioned #currencyList
    #currencyList { display: none; position: absolute; top: 0px; left: 0px } // you may need to tweak these values
</style>

<div id="header">
     <div id="currencyLink"><span onclick=" $('#currencyList').toggle(); ">Show currencies</span>
         <div id="currencyList">
              <a href="#">Currency 1</a>
              <a href="#">Currency 2</a>
              <a href="#">Currency 3</a>
         </div>
     </div>
</div>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜