in Code is Poetry

Hide UnHide Divs using Display

Now that a simple layout using divs is created, its time to play hide and seek. See Example >>

Defined a variable “var = east” and assigned to “Div Id= east” using document.getElementById.”

The entire layout is split into multiple Divs like North, East, West and South.

And then the Plot thickens….

See another Example, where in, along with the Buttons, Text links are used to Hide UnHide Divs.
Other variation in this example is that according to the Hide/UnHide status, the corresponding button and text gets suitably hidden/shown.

Written By:

2 Comments

  1. Priya June 5, 2007
  2. MuthuAuthor June 6, 2007

Add a Comment