Hacking Gmail

(Grace) #1

34 Part II — Getting Inside Gmail


In the code, the top section of the Inbox is produced by the following HTML,
shown in Listing 4-1.

Listing 4-1:The Top Section of the Gmail Inbox in HTML

<body>
<table width=”100%” cellspacing=”0” cellpadding=”0”>
<tbody>
<tr>
<td width=”149” valign=”top” rowspan=”2”>

<div id=”ds_inbox” style=”padding-top: 1ex;” class=”h”>
<img width=”143” height=”59” src=
“/gmail/help/images/logo.gif”></div></td>

<td valign=”top” align=”right”>
<div class=”s” style=”padding-bottom: 2px; text-align:
right;”>
<b>[email protected]</b> | <span id=”prf_g” class=
“lk”>Settings</span> | <a target=”_blank” href=”/support/”
class=”lc” id=”help”>Help</a> | <a target=”_top” onclick=
“return top.js._Main_OnLink(window,this,event)” class=”lk”
href=“?logout”>Sign out</a></div></td></tr>

<tr>
<td valign=”bottom”>
<div class=”s” id=”mt1”>
<table cellspacing=”0” cellpadding=”0”>
<tbody>
<tr>
<td valign=”bottom”>
<form onsubmit=”return top.js._MH_OnSearch(window,0)” style=
“padding-bottom: 5px; white-space: nowrap;” class=”s” id=”s”>
<input value=”” name=”q” maxlength=”2048” size=”28”>  
<input type=”submit” value=”Search Mail”>  
<input type=”submit” onclick=
“return top.js._MH_OnSearch(window,1)” value=
“Search the Web”>  </form></td>
<td>
<table cellspacing=”0” cellpadding=”0” style=
“vertical-align: top; padding-bottom: 4px;”>
<tbody>
<tr>
<td><span id=”mt_adv” style=”font-size: 65%;” class=
“lk”>Show search options</span>
  </td></tr>
<tr>
Free download pdf