Show me the money!

X-Team PagePeel, v1.0

Demo/Instructions

This component achieves a smooth graphic "peeling" effect on a page corner, without the use of Flash.

The Peel itself, and the revealed content is simply HTML and Images

Implementation is very simple.

  1. Include the Script and Stylesheet references
    <link rel="stylesheet" type="text/css" href="pagepeel.packed.css" />
    <script src="http://lib.sinaapp.com/js/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="pagepeel-jquery.js"></script>
  2. Add the required markup to your page.
    <div id="pagepeel" class="xteam-pagepeel">
        <span class="peel">
            <map name="peelmap">
                <area shape="poly" coords="0,0,614,0,614,614,0,0" title="Go!" href="#" class="peel-hotzone" />
            </map>
            <img src="page-peel.png" alt="" class="peel" />
            <span class="back corner"></span>
            <span class="back link">
                <img src="trans.gif" alt="" ="map" usemap="#peelmap" />
                <span class="peel-content">
                    <!-- Your HTML Content Goes here -->
                </span>
            </span>
        </span>
    </div>
  3. Instantiate the PagePeel component.
    <script type="text/javascript">
        var peel = new Xteam.Ui.PagePeel('#pagepeel');      
    </script>
  4. Specify options for your PagePeel (optional).
    The following shows the options set to their default values
    <script type="text/javascript">
        var peel = new Xteam.Ui.PagePeel('#pagepeel', {
            fullOpenOnClick: true,
            fullOpenIsSticky: true,
            fullOpenCloseOnBodyClick: true
        });     
    </script>
本代码由懒人建站网 收集整理
懒人建站 http://www.51xuediannao.com

我们为您提供-HTML+CSS模板,HTML+CSS教程,JS广告代码,HTML+CSS导航菜单,FLASH焦点图片,国外网页设计欣赏与模板和CSS技巧。;
懒人建站只收录实用和能提高用户体验的代码
我们只想解放出你的部分写代码时间来思考更高层次的设计,而不是要你懒惰、拼凑。