拷贝下面的代码到你的html文件的<head>和</head>之间;
<SCRIPT language=JavaScript>
<!--
function go_to_station(){
if (document.stationform.stationselect.options[0].selected){
window.location.href = "http://";}
else if (document.stationform.stationselect.options[1].selected)
{ window.location.href = "http://";}
else if (document.stationform.stationselect.options[2].selected)
{ window.location.href = "http://";}
else if (document.stationform.stationselect.options[3].selected)
{ window.location.href = "http://";}
else if (document.stationform.stationselect.options[4].selected)
{ window.location.href = "http://";}
else if (document.stationform.stationselect.options[5].selected)
{ window.location.href = "http://";}
else if (document.stationform.stationselect.options[6].selected)
{ window.location.href = "http://";}
else if (document.stationform.stationselect.options[7].selected)
{ window.location.href = "http://";}
return true;
}
//This is were you load the Discription and the Author
function textValue(){
if (document.stationform.stationselect.options[0].selected){
document.stationform.disc.value = "aaaaaaaa,photoshop"
document.stationform.author.value = "【aa】";}
else if (document.stationform.stationselect.options[1].selected)
{ document.stationform.disc.value = "bbbbbb"
document.stationform.author.value = "【bb】";}
else if (document.stationform.stationselect.options[2].selected)
{ document.stationform.disc.value = "cccccc"
document.stationform.author.value = "【cc】";}
else if (document.stationform.stationselect.options[3].selected)
{ document.stationform.disc.value = "dddddd"
document.stationform.author.value = "【dd】";}
else if (document.stationform.stationselect.options[4].selected)
{ document.stationform.disc.value = "eeeeee"
document.stationform.author.value = "【ee】";}
else if (document.stationform.stationselect.options[5].selected)
{ document.stationform.disc.value = "ffffffff"
document.stationform.author.value = "【ff】";}
else if (document.stationform.stationselect.options[6].selected)
{ document.stationform.disc.value = "ggggggg"
document.stationform.author.value = "【gg】";}
else if (document.stationform.stationselect.options[7].selected)
{ document.stationform.disc.value = "hhhhhh"
document.stationform.author.value = "【hh】";}
return true;
}
//-->
</SCRIPT>
拷贝下面的代码到你的html文件的<body>和</body>之间;
<TABLE><FORM name=stationform>
<TR>
<TD><SELECT class=yk9 multiple name=stationselect onchange=textValue()
size=8> <OPTION>aaaaa</OPTION> <OPTION>bbbbb</OPTION>
<OPTION>ccccc</OPTION> <OPTION>ddddd</OPTION>
<OPTION>eeeee</OPTION>
<OPTION>fffff</OPTION> <OPTION>ggggg</OPTION>
<OPTION>hhhhh</OPTION></SELECT>
<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><p><INPUT
class=yk9 name=stationbutton onclick=go_to_station() type="button"
value="立刻去看看"></p> </TD>
</TR>
</FORM>
</TABLE>
说明:将第一段代码中的"链接地址"和"站长名称""站点简介"改为你自己的友情连接内容,将第二段代码中的站点名称修改为相对应的站点。
|