隐藏的对话框 联系页面 可以展开的联系页面
XML/HTML Code
- <div class="slide-out-div">
- <a class="handle" href="http://link-for-non-js-users">Content</a>
- <h3>Contact me</h3>
- <a href="http://www.freejs.net">www.freejs.net</a><br /><br />
- <p>这个是联系信息或者其他信息</p>
- </div>
JavaScript Code
- <script>
- $(function(){
- $('.slide-out-div').tabSlideOut({
- tabHandle: '.handle', //class of the element that will be your tab
- pathToTabImage: 'images/contact_tab.gif', //path to the image for the tab (optionaly can be set using css)
- imageHeight: '122px', //height of tab image
- imageWidth: '40px', //width of tab image
- tabLocation: 'left', //side of screen where tab lives, top, right, bottom, or left
- speed: 300, //speed of animation
- action: 'click', //options: 'click' or 'hover', action to trigger animation
- topPos: '200px', //position from the top
- fixedPosition: false //options: true makes it stick(fixed position) on scroll
- });
- });
- </script>
原文地址:http://www.freejs.net/article_jquerywenzi_226.html