明輝手游網(wǎng)中心:是一個(gè)免費(fèi)提供流行視頻軟件教程、在線學(xué)習(xí)分享的學(xué)習(xí)平臺(tái)!

友情連接瀏覽器

[摘要]1、拷貝下面的代碼到你的html文件的<head>和</head>之間 <SCRIPT language=JavaScript> <!-- function...
1、拷貝下面的代碼到你的html文件的<head>和</head>之間
<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,一個(gè)好站,一個(gè)MP3"
    document.stationform.author.value = "【天虹】";}   
  else if (document.stationform.stationselect.options[2].selected)     
  {  document.stationform.disc.value = "有獨(dú)有的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 = "現(xiàn)有歌詞2681首"
    document.stationform.author.value = "【ipis】";}
else if (document.stationform.stationselect.options[5].selected)     
  {  document.stationform.disc.value = "網(wǎng)上原創(chuàng)請(qǐng)您推薦妙文佳作"
    document.stationform.author.value = "【koki】";}   
  else if (document.stationform.stationselect.options[6].selected)     
  {  document.stationform.disc.value = "電腦圖形設(shè)計(jì),flash在線教材大全"
    document.stationform.author.value = "【MSB】";}
else if (document.stationform.stationselect.options[7].selected)     
  {  document.stationform.disc.value = "如果是mm這邊進(jìn),姐妹們說悄悄話了"
    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>超凡時(shí)速</option>
<option>紅牌樓</option>
<option>蟑螂音樂歌詞庫</option>
<option>網(wǎng)文觀止</option>
<option>MSB圖形世界</option>
<option>準(zhǔn)我自我</option>
</select></td>
<td><div align="left"><p>站長(zhǎng)大名<br>
<input type="text" name="author" size="40"> <br>
站點(diǎn)主題<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>

說明:將第一段代碼中的"鏈接地址"和"站長(zhǎng)名稱""站點(diǎn)簡(jiǎn)介"改為你自己的友情連接內(nèi)容,將第二段代碼中的站點(diǎn)名稱修改為相對(duì)應(yīng)的站點(diǎn)。




標(biāo)簽:友情連接瀏覽器