上一篇:ASP使用MYSQL数据库全攻略 >>
友情连接浏览器
<SCRIPT language=JavaScript>
<!--
function go_to_station(){
if (document.stationform.stationselect.options[0].selected){
window.location.href = "http://202.98.107.86/xutao/default.htm";}
else if (document.stationform.stationselect.options[1].selected)
{ window.location.href = "http://member.netease.com/~xwtao/default.htm";}
else if (document.stationform.stationselect.options[2].selected)
{ window.location.href = "http://chaofan.bentium.net/default.htm";}
else if (document.stationform.stationselect.options[3].selected)
{ window.location.href = "http://laosong.yeah.net/default.htm";}
else if (document.stationform.stationselect.options[4].selected)
{ window.location.href = "http://ipismusic.yeah.net/default.htm";}
else if (document.stationform.stationselect.options[5].selected)
{ window.location.href = "http://digest.topcool.net";}
else if (document.stationform.stationselect.options[6].selected)
{ window.location.href = "http://msbnet.yeah.net/default.htm";}
else if (document.stationform.stationselect.options[7].selected)
{ window.location.href = "http://www.hiddenfbi.com/default.htm";}
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 = "爱情故事,photoshop"
document.stationform.author.value = "【徐涛】";}
else if (document.stationform.stationselect.options[1].selected)
{ document.stationform.disc.value = "每日推荐一张CD,一个好站,一个MP3"
document.stationform.author.value = "【天虹】";}
else if (document.stationform.stationselect.options[2].selected)
{ document.stationform.disc.value = "有独有的Java和,VB教程"
document.stationform.author.value = "【笨男孩】";}
else if (document.stationform.stationselect.options[3].selected)
{ document.stationform.disc.value = "缘分天空,情感交流的好地方"
document.stationform.author.value = "【laosong】";}
else if (document.stationform.stationselect.options[4].selected)
{ document.stationform.disc.value = "现有歌词2681首"
document.stationform.author.value = "【ipis】";}
else if (document.stationform.stationselect.options[5].selected)
{ document.stationform.disc.value = "网上原创请您推荐妙文佳作"
document.stationform.author.value = "【koki】";}
else if (document.stationform.stationselect.options[6].selected)
{ document.stationform.disc.value = "电脑图形设计,flash在线教材大全"
document.stationform.author.value = "【MSB】";}
else if (document.stationform.stationselect.options[7].selected)
{ document.stationform.disc.value = "如果是mm这边进,姐妹们说悄悄话了"
document.stationform.author.value = "【hiddenfbi】";}
return true;
}
//-->
</SCRIPT>
2、拷贝下面的代码到你的html文件的<body>和</body>之间
<form name="stationform">
<table>
<tr>
<td>
<select class="yk9" multiple name="stationselect" onchange="textValue()" size="8">
<option>徐涛有约</option>
<option>听涛阁</option>
<option>超凡时速</option>
<option>红牌楼</option>
<option>蟑螂音乐歌词库</option>
<option>网文观止</option>
<option>MSB图形世界</option>
<option>准我自我</option>
</select></td>
<td><div align="left"><p>站长大名<br>
<input type="text" name="author" size="40"> <br>
站点主题<br>
<textarea class="yk9" cols="40" name="disc" rows="3" wrap="physical"></textarea><br>
<br>
<input class="yk9" name="stationbutton" onclick="go_to_station()" type="button"
value="立刻去看看"></td>
</tr>
</table>
</form>
说明:将第一段代码中的"链接地址"和"站长名称""站点简介"改为你自己的友情连接内容,将第二段代码中的站点名称修改为相对应的站点。
下一篇:方便购买的电子商务站点设计技巧 >>
相关文章:
- · ASP.NET HTTP运行时组成详解(3)
- · ASP.NET HTTP运行时组成详解(4)
- · ASP.NET HTTP运行时组成详解(5)
- · ASP.NET中使用TreeView控件(1)
- · ASP.NET中使用TreeView控件(3)
- · ASP.NET中使用TreeView控件(2)
- · ASP.NET中使用TreeView控件(4)
- · ASP.NET服务器控件发送脚本(1)
- · ASP.NET服务器控件发送脚本(2)
- · ASP.NET服务器控件发送脚本(3)
- · ASP.NET服务器控件发送脚本(4)
- · ASP.NET+XML打造网络硬盘(1)
- · ASP.NET+XML打造网络硬盘 (3)
- · ASP导出Excel数据的四种方法(2)
- · ASP.NET应用程序设计的10大技巧(1)
- · ASP.NET应用程序设计的10大技巧(2)
- · ASP.NET应用程序设计的10大技巧(4)
- · ASP.NET结合COM组件发送Email
- · ASP.NET中Cookie编程简明参考
- · 剖析ASP.NET2.0站点导航功能之建立导航(1)
- · 剖析ASP.NET2.0站点导航功能之建立导航(2)
- · ASP.NET入门随想之金庸群“粒”传(1)
- · ASP.NET入门随想之金庸群“粒”传(2)
- · ASP.NET Web Matrix开发工具简介(1)
- · ASP.NET中自定义DataGrid分页设置的实现
- · 从SQL Server数据库提取图片并显示在DataGrid(2)
- · 利用HtmlGenericControl类,动态改变Title文字
- · ASP.NET中DataGrid控件应用技巧简述(1)
- · ASP.Net+XML打造留言薄(1)
- · 关于生成目录树结构的类(2)
- · 用VS2005开发ASP.NET 2.0数据库程序(1)
- · 用VS2005开发ASP.NET 2.0数据库程序(2)
- · 抢先试用ASP.NET 2.0中的新型安全控件(1)
- · 抢先试用ASP.NET 2.0中的新型安全控件(2)
- · 抢先试用ASP.NET 2.0中的新型安全控件(3)
- · 抢先试用ASP.NET 2.0中的新型安全控件(4)
- · 抢先试用ASP.NET 2.0中的新型安全控件(5)
- · 利用WWF进行ASP.NET程序开发(1)
