Search
Recommended Sites
Related Links






Valid XHTML 1.0 Transitional

Valid CSS!
   

Informative Articles

Amara Flash Photo Animation Software supports Ken Burns Motion Effects
Amara Software has just launched its Amara Flash Photo Animation Software, allowing users to bring motion to their still photos in a slideshow, with lots of options such as pan and zoom (the 'Ken Burns' effect), as well as pauses, text over...

How To Make a Web Page
If you are able to create a document using a word processor like word then you are able to make a web page. Here we will look at how to make a web page using the Trellian WebPage page editor. Trellian Webpage is a WYSIWYG (what you see is...

Quick Web Site Start-up and Promotion Guide
The biggest problem I've always had promoting my web site is keeping myself focused. After all, what should I be doing? Publishing my own e-zine, placing classified ads, looking for link exchange partners, writing articles... My head is beginning to...

The Secrets to Building a Successful Web Site
If you're doing business on the Internet, one of the most important aspects of your success is your web site. If your web site doesn't look professional, no matter what product you're offering, your chance of success will be minimal. Before you...

To Hire or not to Hire a Website Designer
In the early years of the internet the actual design of a website was either very basic or had to be done using a software package that needed a specialist to use it. Not surprisingly, website designers were in short supply and could command huge...

 
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.