<div id="gmail"> <div id="forerror" style="color:red;display:none;"></div> <div id="loading" class="thmtxt">Retrieving new emails...</div> <div id="content" style="display:none;"background-color:#000;height:200px;"" > <div id="subject" ></div> <div id="date" class='thmtxt'></div> <div id="msgbody" class='thmtxt'></div> </div> </div> <script> $(document).ready(function(){ gmail(); }) </script>