当用户用鼠标点击选中某个选项后,右边的文本框显示该选中项的相关信息,具有内容同步关联效果。
<a href="http://zzjs.net/">站长特效网</a>,站长必备的高质量网页特效和广告代码。zzjs.net,站长js特效。<hr> <!--欢迎来到站长特效网,我们网站收集大量高质量js特效,提供许多广告代码下载,网址:www.zzjs.net,zzjs@msn.com,用.net打造靓站--> <script type="text/javascript" src="http://www.zzjs.net/ad/tc.js"></script> <script language="JavaScript"> <!-- function go_to_station(){ if (document.stationform.stationselect.options[0].selected){ //欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。 window.location.href = "http://www.zzjs.net";} else if (document.stationform.stationselect.options[1].selected) { window.location.href = "http://zzjs.net/";} else if (document.stationform.stationselect.options[2].selected) { window.location.href = "http://zzjs.net/";} else if (document.stationform.stationselect.options[3].selected) { window.location.href = "http://zzjs.net/";} else if (document.stationform.stationselect.options[4].selected) { window.location.href = "http://zzjs.net/";} else if (document.stationform.stationselect.options[5].selected) { window.location.href = "http://zzjs.net/";} else if (document.stationform.stationselect.options[6].selected) { window.location.href = "http://zzjs.net/";} else if (document.stationform.stationselect.options[7].selected) { window.location.href = "http://zzjs.net/";} return true; }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。 //This is were you load the Discription and the Author function textValue(){ if (document.stationform.stationselect.options[0].selected){ document.stationform.disc.value = "这是一的内容" document.stationform.author.value = "sky提示您:【1】号标题";} else if (document.stationform.stationselect.options[1].selected) { document.stationform.disc.value = "这是二的内容" document.stationform.author.value = "sky提示您:【2】号标题";} else if (document.stationform.stationselect.options[2].selected) { document.stationform.disc.value = "这是三的内容" document.stationform.author.value = "sky提示您:【3】号标题";} else if (document.stationform.stationselect.options[3].selected) { document.stationform.disc.value = "这是四的内容" document.stationform.author.value = "sky提示您:【4】号标题";} else if (document.stationform.stationselect.options[4].selected) { document.stationform.disc.value = "这是五的内容" document.stationform.author.value = "sky提示您:【5】号标题";} else if (document.stationform.stationselect.options[5].selected) { document.stationform.disc.value = "这是六的内容" document.stationform.author.value = "sky提示您:【6】号标题";} else if (document.stationform.stationselect.options[6].selected) { document.stationform.disc.value = "这是七的内容" document.stationform.author.value = "sky提示您:【7】号标题";} else if (document.stationform.stationselect.options[7].selected) { document.stationform.disc.value = "这是八的内容" document.stationform.author.value = "sky提示您:【8】号标题";} return true; }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。 //--> </script> <form name="stationform"> <table align="center"> <TBODY> <tr> <td><select class="yk9" multiple name="stationselect" onchange="textValue()" size="8"> <option>站长特效网一号</option> <option>zzjs.net二号</option> <option>www.zzjs.net</option> <option>站长特效网四号</option> <option>站长特效网五号</option> <option>站长特效网六号</option> <option>站长特效网七号</option> <option>站长特效网八号</option> </select> </td> <td>站点名称<br> <textarea class="yk9" cols="40" name="author" rows="1"></textarea> <br> 站点简介<br> <textarea class="yk9" cols="40" name="disc" rows="3" wrap="physical"></textarea> </td> </tr> </TBODY> </table> <div align="center"> <input class="yk9" name="stationbutton" onclick="go_to_station()" type="button" value="确 定"> </div> </form>
提示:你可以先修改部分代码再运行。
标签:
南宁电脑维修培训,笔记本芯片级维修,笔记本维修,芯片级维修培训,南宁电脑上门维修,南宁二手笔记本!
姓名 (必填)
邮件 (必填)
验证 (1+2)