Category: Web Apps & Design

Javascript hide element on click

Javascript hide element on click

<script language=”javascript”> function hidelogin() { var ele = document.getElementById(‘loginform’); var text = document.getElementById(‘login’); ele.style.Display = “none”; text.innerHTML=”Please wait while we process your request”; setTimeout(function(){tout(“login”)},500); clearTimeout(); } function tout(div) { div = document.getElementById(‘login’); div.innerHTML=”Done”; }...

Creating Alternating colors in a table

Creating Alternating colors in a table

It’s pretty awesome to have a table with alternating colors for the rows for readability. You can create the stylesheet as mentioned here : table { background-color: teal } table, td, th { border:1px...