Search
Recommended Sites
Related Links






Valid XHTML 1.0 Transitional

Valid CSS!
   

Informative Articles

Apache, MySQL & PHP for Windows
"Even if you are a seasoned PHP, MySQL and Apache guru, the checklist below will still be helpful in your installation process." Apache, MysQL and PHP for Windows could be a nice nice thing to have on your Windows workstation. You...

Content Management Systems (CMS): What They Are And Why We Love Them.
There is a buzz in the online community about a technology that empowers the average computer user with the ability to create and maintain their very own web presence. In the past, individuals who took interest in having and operating their own...

HTML Email Newsletter Designs for Better Results
An email newsletter is a newsletter we find on the internet where the readers can get to read news on the internet, just as one may read ordinary newspapers. Various online newsletters available cover many topics. We can get stories on...

Make your Web Site Earn You Money
Make your Web Site Earn You Money The success or failure of a web site relies heavily on its design. Designing a web site involves several procedures such as creating mock-ups, defining interfaces, database design, system platform and web...

Tips on Creating a Site Map
A quick search on Google for advice on creating a site map initially threw up many links to software you could buy or download for free to create a site map. But why do you need a site map? Basically as websites get larger and more...

 
Showing and Hiding HTML elements using Layers

A long time back I visited a site that had a very fancy, animated navigation bar. Now, as a professional web developer, I'm not in favor of DHTML-supported, fancy navigation bars, but it was very fascinating. What they had done was, whenever you hovered your cursor over a link, a big, comics-type dialog balloon appeared to give further details of that link. I wondred how they did it, but then it slipped out of my mind.

That technique uses layers and Cascading Style Sheet definitions, and I'm going to tell you here, how it is done. Nothing pyrotechnic, but it'll pay a way to more complex tasks.

First, the demo. I believe once you visually see it, you'll understand better what I'm trying to accomplish here. Given below is a link. If you take your cursor over the link, an image appears somewhere on the screen. By tweaking you can control the placements. You can see the demo, along with the online version of this article at:

http://www.bytesworth.com/learn/dhtml00001.asp

I've purposely made the image appear over a text area so that you don't think it is a simple rollover image effect. The image actually appears above the text.

Below lies the code that of the effect that appears above.

First the HTML part that defines the general link and the division that defines the placement of the image. Take note of the CSS definitions required to set the z-index and the "hide" attributes. Before testing the code, remember to remove the preceding dots that I have appended so that your email software doesn't read the code as some "process-able" content.

.Bring Your Cursor Here and See The Image
.
.
.

Sign up for PayPal and start accepting credit card payments instantly.