227、有选择地选取链接

227、有选择地选取链接

以下代码加入<head>区域

以下代码加入<body>区域

<SCRIPT LANGUAGE="JavaScript">

 

<!--HIDE

 

 function changeIt(newLoc)  {

 

      document.links[0].href=newLoc

 

}

 

//STOP HIDING-->

 

</SCRIPT>

 

<A HREF="../../../../www.xinnew.com/default.htm">

 

<h4>去看看</h4></A>

 

<FORM>

 

<INPUT TYPE="radio" NAME="choices" onClick=

 

     "changeIt('../../../../www.cctv.com/default.htm')">

 

中央电视台<br>

 

<INPUT TYPE="radio" NAME="choices" onClick=

 

   "changeIt('../../../../www.sarft.gov.cn/default.htm')">

 

广电总局<br>

 

<INPUT TYPE="radio" NAME="choices" onClick=

 

   "changeIt('../../../../www.qdcatv.com.cn/default.htm')">

 

青岛有线台<br>

Write a comment

Comments: 0