Search
Recommended Sites
Related Links






   

Informative Articles

Build a Web Site that Works...Even for a Safari Hobby!
My life's greatest passion is a safari hobby. And what would that be, you ask. ...Simply the conservation of wildlife and the environment. I do this after hours from my 7 to 5 job. And that's how this story started. Read this story to learn how to...

Creating Keyword Rich Pages
Once you have established the keywords for which you should optimize your site for the search engines, it is time to figure out how you can get a high ranking in the search engines for those keywords. The solution is to create Keyword Rich Pages...

Making the most of your webserver
When a company has a site they wish to host somewhere, especially small businesses with limited funds, they normally take advantage of special rates available from a hosting provider. There is nothing wrong with that, but it can cause some problems...

The Most Simple Way to Mask Your Email-address
We all know that spammers are looking for your email-address. You can mislead them easily in order to prevent receiving spamming emails. The most simple way to do this is by providing your email-address as a logo. The most easy way to do this...

Web Site Design Mistakes – Database Parameters In URLs
Creating a web site takes thought, planning and execution. Unfortunately, many designs are dead in the water before they are even published as far as search engine optimization is concerned. Whatever you do, avoid these critical mistakes. Database...

 
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
.
.
.