Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Mar 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to change the word at part of name of...

    how to change the word at "part of the name of FAMILY...." to Family,Genus or species once i choose one of them?

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    The word where? To choose where? When? can you explain clear your aim?
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    New to the CF scene
    Join Date
    Mar 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    once i choose d word Genus, Part of FAMILY name should change to Part of Genus Name..
    If i choose Species, part of Family Name should change to Part of Species name.

    but now, once i choose, it still remain the same.anyone can tell me how to make it change?

  • #4
    New to the CF scene
    Join Date
    Mar 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    can anyone tell me d code for it?
    i need it..thanks

  • #5
    JUD
    JUD is offline
    New Coder
    Join Date
    Jul 2005
    Location
    I'm right here
    Posts
    92
    Thanks
    0
    Thanked 2 Times in 2 Posts
    If I understand you correctly, this is what you need

    PHP Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <
    html xmlns="http://www.w3.org/1999/xhtml">
    <
    head>
    <
    meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <
    title>Untitled Document</title>
    <
    script type="text/javascript">
    /*<![CDATA[*/
        
    function changeType(frm){
            
    document.getElementById("type").innerHTML "<em>" frm.typeSet.options[frm.typeSet.selectedIndex].value "</em>";
        }
    /*]]>*/
    </script>
    </head>

    <body>
    <form>
    Please enter 
    <select name="typeSet" onchange="changeType(this.form)">
    <option value="Family" selected="selected">Family</option>
    <option value="Genus">Genus</option>
    <option value="Species">Species</option>
    </select>
    name or part of <span id="type"><em>Family</em></span> name:
    <input type="text" size="40" />
    </form>
    </body>
    </html> 


  •  

    Posting Permissions

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