Today is . Page created 04/05/07
Show-Hide Material |
We think this is a very nice effect to have on a page. The only downside is that you can have only one of these per page unless your page is in frames and then you can have one on each framed page. It supports <HTML>, textareas, [ Links ], images, , forms etc. The color of the border, background and font can be configured also.
Further down under Define Reconfigurations we show you where and howto.
This is an incredibly simple piece of javascript/dhtml coding, using one small javascript function placed in the HEAD of the html document, which changes the 'visibility' property of the specified DIV object. Using the visibility property of the DIV tag, means that anything placed between these tags can be hidden or shown whenever neccessary. Making it a potentially very powerful tool in the design of dynamic, interesting webpages. Allowing the user to experience greater interaction with the website.
We have tested the code in IE7.0, Firefox2.0.0.3, Opera9.10, Netscape8.1.2 and AOL Explorer1.5. This script worked well in all platforms with no variations observed.
Depending on your knowledge of HTML and javascripts, this is an easy three (3) part copy and paste code that goes in both the <HEAD> (no reconfigurations) section and <BODY> section (two parts) of your document.
The first part of the <BODY> section is basically the link so to speak to either "Show" or "Hide" the material. All you can do here is change the words to suit your needs.
<div id="control" style="position:relative;visibility:visible"> |
Here you either "Show" or "Hide" the material. All you can do here is change the words to suit your needs. "Do Not" remove the closing </div> tag |
The second or last part of the <BODY> section is to reconfigure the cosmetic appearance of the style sheet and to add your material.
Default <div id="code" style="position:relative;visibility:hidden;background:lightblue;
border:double;border-width:1px;padding:10px;"> Our Reconfigurations <font face="arial,georgia,helvetica"size="2"color="#dda0dd"> |
Define Reconfigurations
|
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 ]