Results 1 to 7 of 7

Thread: java script to show/hide content in a box

  1. #1
    Join Date
    May 2009
    Posts
    3
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default java script to show/hide content in a box

    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

    Code:
    <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>
    Last edited by Snookerman; 05-21-2009 at 05:14 AM. Reason: added [code] tags

  2. The Following User Says Thank You to tasfiq For This Useful Post:

    Boorchmen (06-21-2009)

  3. #2
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default

    For the telephone numbers, what sort of box are you looking for, an input box or just a display.

  4. The Following User Says Thank You to forum_amnesiac For This Useful Post:

    Boorchmen (06-21-2009)

  5. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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.

  6. The Following User Says Thank You to Medyman For This Useful Post:

    Boorchmen (06-21-2009)

  7. #4
    Join Date
    May 2009
    Posts
    3
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    when click the state i just want that state's access number on the display where i want to show all this number.

  8. The Following User Says Thank You to tasfiq For This Useful Post:

    Boorchmen (06-21-2009)

  9. #5
    Join Date
    May 2009
    Posts
    3
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    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

  10. The Following User Says Thank You to tasfiq For This Useful Post:

    Boorchmen (06-21-2009)

  11. #6
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default quote

    Thank you, friends, for your sharing your ideas

  12. #7
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default post

    Great information, I will be linking back to you and going to look around at your other posts.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •