<style type="text/css">
ul { margin:0; padding:0; list-style:none;}
li { text-align:left; line-height:160%; cursor:hand;}
#linename1 {border:0;border-bottom:dotted 1px #C8C8C8;}
#linemenu1 {width:150px; height:150px;border:solid 0px #C8C8C8;padding:5px; overflow:auto;}
</style>
<script language="javascript" type="text/javascript">
//返回左边距
function getRealLeft(o){
var l=o.offsetLeft;
while(o=o.offsetParent)l+=o.offsetLeft;
return(l);
}
//返回上边距
function getRealTop(o){
var t=o.offsetTop;
while(o=o.offsetParent)t+=o.offsetTop;
return(t);
}
function showmenu(e) {
linemenu1.style.top = getRealTop(e);
linemenu1.style.left = getRealLeft(e);
linemenu1.style.display = '';
}
function choose(v) {
document.getElementById('linename1').value = v;
linemenu1.style.display = 'none';
}
</script>
<input name="linename1" id="linename1" type="text" onclick="showmenu(this)" value="选择浏览所有国际线路"/>
<div id="linemenu1" style="display:none;">
<ul>
<% set rs1=Server.CreateObject("adodb.recordset")
sql="select * from newsclass where classid=20"
rs1.open sql,conn,1,1
%>
<% set rs=Server.CreateObject("adodb.recordset")
sql="select * from news where news_class="&rs1("classid")&" order by news_addtime desc"
rs.open sql,conn,1,1
do while not rs.eof
%>
<li onclick="choose('<%=rs("news_title")%>')"><%=rs("news_title")%></li>
<% rs.movenext
loop
%>
</ul>
</div>