214-564-5316
Saturday, February 04, 2012

Show / Hide Layers with a simple javascript and CSS

This is VERY simple code to show/hide layers.
It consists of a 6 line javascript, a link to show/hide the layer, and the layer itself in the form:
<div id="your_layer_name" style="display:none;"><blockquote>content goes here</blockquote></div>

Code:



HERE is the example (I've built a little table to hold the content to make it visually attractive but you could use CSS instead).

This is great for SEO as the "hidden" content is always visible to the search engines.




HomeContact Us Terms of ServicePrivacy PolicyEmail PolicyHostingLinksSite SearchBlog

There are 1 active visitors.
Texas Web Developers is a premiere website designer in the Dallas, Texas Web Designers community on BodyModified.com.