...

View Full Version : How to change the word at part of name of...



shinwai
05-26-2006, 09:16 AM
how to change the word at "part of the name of FAMILY...." to Family,Genus or species once i choose one of them?
http://i6.photobucket.com/albums/y215/cshing84/family.jpg

Kor
05-26-2006, 10:54 AM
The word where? To choose where? When? can you explain clear your aim?

shinwai
05-26-2006, 12:37 PM
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?

shinwai
05-27-2006, 02:45 AM
can anyone tell me d code for it?
i need it..thanks

JUD
05-27-2006, 05:42 AM
If I understand you correctly, this is what you need



<!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>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum