RSS

Tip of the day

04 Mar

Display: None | Block

// block –> Display the layer
function showLayer(layerName)
{
if (document.getElementById) // Netscape 6 and IE 5+
{
var targetElement = document.getElementById(layerName);
targetElement.style.display = ‘block’;
}
}

// none –> hide the layer
function hideLayer(layerName)
{
if (document.getElementById){
var targetElement = document.getElementById(layerName);
targetElement.style.display = ‘none’;
}
}

Useful site : http://www.brainjar.com/

Happy Coding!.

Get glued to know more updates.

Have a nice day:-)

Advertisements
 
Leave a comment

Posted by on March 4, 2013 in Uncategorized

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: