hassan-pc
|
پاسخAnswer 6 : یک کد میخوام توضیحش طولانی هستنقل قول از matinazhirاین کد هست که به صورت ابشاری متن رو نشون میده... کد: <center><form name="combowithtext"> <select name="example" size="1" onChange="showtext()"> <option value="http://boxgraph.mihanblog.com/"> موضوع1 </option> <option value="http://boxgraph.mihanblog.com/"> موضوع2 </option> <option value="http://boxgraph.mihanblog.com/"> موضوع3 </option> </select><input type="button" value="دريافت"onClick="gothere()"><br><textarea rows=5 cols=21 wrap="virtual" name="text"></textarea><script language="javascript"><!--var shortcut=document.combowithtextvar descriptions=new Array()//extend this list if neccessary to accomodate more selectionsdescriptions[0]=" متن1 "descriptions[1]=" متن2 "descriptions[2]=" متن3 "shortcut.text.value=descriptions[shortcut.example.selectedIndex]function gothere(){location=shortcut.example.options[shortcut.example.selectedIndex].value}function showtext(){shortcut.text.value=descriptions[shortcut.example.selectedIndex]}//--></script></form></center>
|
||||||||
| یکشنبه 05 آذر 1391 - 17:02 |
|