Display content in tight areas on your page, by displaying the content on top of any link used to activate it. The content floats above and overlaps anything beneath it. Think of it as adding another dimension to your webpage to create more space. This script is extremely handy for displaying search boxes, additional links etc. in a tight area, such as the sidebar column of a page. The content to reveal/ overlap in each case is simply contained inside a DIV on the page for easy customizing, and you can have multiple overlapping content on the page, each associated with a different link.
[ Example #1 ][ Example #2 ]
[ Example #3 ]
We have tested the code in IE6.0, Firefox1.5.0.1, Opera8.54, Netscape8.0.4 and AOL Explorer1.2. This script worked well in all platforms with no variations observed.
Depending on your knowledge of HTML and javascripts, this is an easy two (2) part copy and paste code that goes in both the <HEAD> and <BODY> sections of your document. The reconfigurations are made only within the <BODY> section of the code. These reconfigurations are for cosmetics and the adding of your material inside the overlapping box effect. This/these part(s) (As many as you need) you would paste anywhere within this section you want this effect to appear. See below:
<!---------- Start Code And Reconfigurations For <BODY> Section For Each Box ---------->
<p><b><a href="search.htm" onClick="return overlay(this, 'subcontent2')">
Another example</a></b><br /></p>
<!--Sub content to overlay link when clicked on.
Do not remove outermost <div id="subcontent2"> tag below. -->
<DIV id="subcontent2" style="position:absolute; display:none">
<div style="border: 9px solid black; background-color: lightyellow; width: 400px; height: 400px;
padding: 8px">
Add Your Content Here
<div align="right">
<a href="#" onClick="overlayclose('subcontent2'); return false">Close</a></div>
</div>
</DIV>
<!---------- End Code For <BODY> Section For Each Box ---------->
Explanations Of Above Color Coded Areas
The next thing we shall cover is the replacement of the text link by an image. Basically, all you do is remove the text and replace it with an uploaded image of your choice
We will cover the positioning of the links side by side as opposed to being on top of each other. The reason the links are on top of each other is because they are independent <div> id tags. This causes them not to be able to be positioned side by side. The work around for this is quite simple. Just place each <BODY> section of code for each overlapping content box inside a <table> Just grab the below [ Howto ] link and you are there.
[ Howto Position Side By Side ] |
[ Example ] |
[ Example ] |
[ Example ] |
We hope our tutorial was easy to follow and we covered everything in detail. If you would like to add this effect into your pages, grab the respective below link and you are there. If you have any problems with this or anything else, feel free to consult our [ FAQ ] and if you can't find the answer there, [ contact us ].
[ Get Code Here ]
[ Rate This Page ]
Search Our Site By Individual letter
[ A ]
[ B ]
[ C ]
[ D ]
[ E ]
[ F ]
[ G ]
[ H ]
[ I ]
[ J-K ]
[ L ] |
Little Tips Directory [ Page 1 ] [ Page 2 ] [ Page 3 ] [ Page 4 ] [ Page 5 ] [ Page 6 ] [ Page 7 ] |
[ Index Page 1 ]
[ Index Page 2 ]
[ Index Page 3 ]
[ Index Page 4 ]
[ Index Page 5 ] [ Index Page 6 ] [ Index Page 7 ] [ Index Page 8 ] [ Index Page 9 ] [ Index Page 10 ] [ Index Page 11 ] [ Index Page 12 ] [ Index Page 13 ] [ Form Index ] [ 2001 ] [ 2002 ] [ 2003 ] [ 2004 ] [ 2005 ] [ 2006 ] [ 2007 ] [ Disclaimer ] [ News Letter Archives ]
[ Navigation Page ]
[ Archives Of Published Material ] |
If you are part of the ever growing number of webmasters who enjoy
sharing your knowledge with others on web design, join The
Consigliere Ltd. web ring to broaden your scope of exposure.
Join Today
This Site Was Built And Is Maintained Exclusively by
The Webmaster @ Consigliere Ltd.
Copyright © Consigliere Ltd., All Rights Reserved. 2001-