Log in

View Full Version : java script to show/hide content in a box



tasfiq
05-21-2009, 12:42 AM
I am looking for a java script where I can select the state and show that states phone numbers in a box.I have done the follwoing for all state. What it does it shows all the list on the screen but I want state by state on mouse click. i.e when I select california then I just want all the numbers from ca to show in that box. Please help


<td colspan="2" height="82" >
<b><font face="Bimini" size="4">Local Access Numbers by State:</font></b><BR><BR>

<font face="Tahoma" size="1">| <a href='#AR'><font face='Tahoma' size='1' color='blue'>AR</FONT></a> | <a href='#AZ'><font face='Tahoma' size='1' color='blue'>AZ</FONT></a> | <a href='#CA'><font face='Tahoma' size='1' color='blue'>CA</FONT></a> | <a href='#CO'><font face='Tahoma' size='1' color='blue'>CO</FONT></a> </td>
----------------------------------
<tr bgColor="#CC99FF">
<td bgcolor="#0000FF" height="20" ><font face="Tahoma" size="2"><a name="AR"></a><b><font color="#FFFFFF">ARKANSAS</font></b></font></td>
<td align="right" bgcolor="#0000FF" height="20" width="40'><a href="#"><font face="Tahoma" size="1" color="#FFFFFF">Back to Top</font></a></td>
</tr>

<tr bgColor="#CC99FF">
<td bgcolor="#0000FF" height="20" ><font face="Tahoma" size="2"><a name="AZ"></a><b><font color="#FFFFFF">ARIZONA</font></b></font></td>
<td align="right" bgcolor="#0000FF" height="20"><a href="#"><font face="Tahoma" size="1" color="#FFFFFF">Back to Top</font></a></td>
</tr>

<tr bgColor="#CC99FF">
<td bgcolor="#0000FF" height="20" ><font face="Tahoma" size="2"><a name="CA"></a><b><font color="#FFFFFF">CALIFORNIA</font></b></font></td>
<td align="right" bgcolor="#0000FF" height="20"><a href="#"><font face="Tahoma" size="1" color="#FFFFFF">Back to Top</font></a></td>
</tr>

<tr bgColor="#DBDBDB">
<td height="18"><font face="Tahoma" size="2">(213) 408-8790</font></td>
<td height="18" align="center"><font face="Tahoma" size="2">Los Angeles</font></td>
</tr>

<tr bgColor="#FFFFFF">
<td height="18"><font face="Tahoma" size="2">(310) 500-2812</font></td>
<td height="18" align="center"><font face="Tahoma" size="2">Inglewood</font></td>
</tr>

forum_amnesiac
05-21-2009, 07:04 AM
For the telephone numbers, what sort of box are you looking for, an input box or just a display.

Medyman
05-21-2009, 01:35 PM
Look into jQuery. It's very simple to do what you want with it.

More importantly though, you're using a lot of deprecated code (e.g. <font>). You should read up on modern HTML standards and learn how to style your site properly.

tasfiq
05-21-2009, 03:55 PM
when click the state i just want that state's access number on the display where i want to show all this number.

tasfiq
05-21-2009, 03:56 PM
I am really new to web design and looking for something that is easy enough to do my site. Please provide me help if you could.
Thanks

Boorchmen
06-21-2009, 02:26 AM
Thank you, friends, for your sharing your ideas

Boorchmen
06-21-2009, 06:52 PM
Great information, I will be linking back to you and going to look around at your other posts.