I had a script laying around that did something like this vertically. It's pretty much up to date, so I figured how hard could it be to change it to horizontal? I think I've worked that out. It uses jquery-1.2.6.pack.js and requires the body to have no margin or padding, a 'fixed_container' division for the page as well a bit of other markup:
HTML Code:
<body>
<div id="fixed_container">
<div class="left_cover"></div>
<div class="right_cover"> </div>
<div class="slidebut">
<input class="but" type="button" value="Reveal">
</div>
Your content goes here
</div>
</body>
It also requires at least a valid HTML 4.01 Transitional DOCTYPE. The button can be disabled, so that the effect occurs on page load, and the background for the curtains may be set via css style:
http://home.comcast.net/~jscheuer1/s...rz_curtain.htm
Use your browser's 'view source' to get the code.
Bookmarks