<select>里面怎么插入图片?达到图片select的效果 http://dob.tnc.edu.tw/demo.php?s=681&authorSerial=74&demoStyle=&setDemoInFrame= 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://fason.nease.net/code/form/select/editselect2.htm 孟子的:<table cellpadding="0" cellspacing="0" border="0" width="300"> <tr> <td id="selectLength" width="100%" style="height:20px;padding:0px;border:2px inset #404040;border-right:0px;border-bottom:1px solid #D4D0C8;font-size:9pt;"> <div id="selectedValue" style="padding:2px;border:0px;width:100%;height:20px;font-size:9pt;vertical-align:bottom"></div> </td> <td width="20" style="height:20px;padding:0px;border-top:2px inset #404040;border-left:0px;border-right:1px solid #D4D0C8;border-bottom:1px solid #D4D0C8;font-size:9pt"> <img src="button2.gif" width="20" height="21" border="0" id="mm" onclick="mm_Click()" align="absmiddle"> </td> </tr></table><div id="dropdownOption" style="position:absolute;visibility:hidden;width:100%;border:1px solid #080808;z-index:1000"> <table width="100%" cellpadding="0" cellspacing="1" class="optionForSel" bgcolor="White"> <tr onmouseover="this.style.backgroundColor='#0099ff'" onmouseout="this.style.backgroundColor=''"> <td onclick="document.all.selectedValue.innerText=this.innerText"> <img src="http://lucky.myrice.com/images/copyright.gif" border="0" align="absmiddle" hspace="2"><a href="http://lucky.myrice.com">Visit1</a> </td> </tr> <tr> <td onmouseover="this.style.backgroundColor='#0099ff'" onmouseout="this.style.backgroundColor=''"onclick="document.all.selectedValue.innerText=this.innerText"> <img src='http://lucky.myrice.com/images/meng1.gif' border="0" align="absmiddle" hspace="2"><a href="http://lucky.myrice.com">Visit2</a> </td> </tr> <tr> <td onmouseover="this.style.backgroundColor='#0099ff'" onmouseout="this.style.backgroundColor=''"onclick="document.all.selectedValue.innerText=this.innerText"> <img src='http://lucky.myrice.com/images/meng2.gif' border="0" align="absmiddle" hspace="2"><a href="http://lucky.myrice.com">Visit3</a> </td> </tr> </table></div><script>function mm_Click(){ if(document.all.dropdownOption.style.visibility == 'visible') document.all.dropdownOption.style.visibility='hidden' else document.all.dropdownOption.style.visibility='visible'}function init(){document.all.dropdownOption.style.width = document.all.selectLength.clientWidth + 22;document.all.selectedValue.contentEditable = true;var strTop = 0;var strLeft = 0;var e1 = document.all.selectLength;while(e1.tagName != "BODY"){strTop += e1.offsetTopstrLeft += e1.offsetLefte1 = e1.offsetParent}document.all.dropdownOption.style.top = String(strTop + 24) + "px";document.all.dropdownOption.style.left = String(strLeft) + "px";}function clickE(){if(window.event.srcElement.id !='mm')document.all.dropdownOption.style.visibility='hidden';}document.onclick = clickEwindow.onload = init</script><br><br><input onclick="alert(document.all.selectedValue.innerText)" type="button" value="得到选中的值"> 一个人给点,, tdl982324,你不介意吧,,你一个人要那么多分干什么:)大家都分点 我想在网页中使用JAVASCRIPT把客户端剪贴板上的内容拷贝到网页中,怎么这段脚本却没有反应? 获取所有自定义函数对象及获取指定函数对象的问题 元素.attachEvent('onfocus',new function(){});执行顺序问题,高手来看看 js 如何清除客户端的浏览记录 Textarea自动缩进 HTML在线编辑器(textarea版,不是iframe版) 最新动态的效果! 一个关于frame的参数传递的问题 给大家一个非常酷的代码,,同时放分 up JAVASCRIPT如何使上层窗口刷新? 如何关闭用非模态窗口? 怎样去除一段文字中的分号?
<table cellpadding="0" cellspacing="0" border="0" width="300">
<tr>
<td id="selectLength" width="100%" style="height:20px;padding:0px;border:2px inset #404040;border-right:0px;border-bottom:1px solid #D4D0C8;font-size:9pt;">
<div id="selectedValue" style="padding:2px;border:0px;width:100%;height:20px;font-size:9pt;vertical-align:bottom"></div>
</td>
<td width="20" style="height:20px;padding:0px;border-top:2px inset #404040;border-left:0px;border-right:1px solid #D4D0C8;border-bottom:1px solid #D4D0C8;font-size:9pt">
<img src="button2.gif" width="20" height="21" border="0" id="mm" onclick="mm_Click()" align="absmiddle">
</td>
</tr>
</table>
<div id="dropdownOption" style="position:absolute;visibility:hidden;width:100%;border:1px solid #080808;z-index:1000">
<table width="100%" cellpadding="0" cellspacing="1" class="optionForSel" bgcolor="White">
<tr onmouseover="this.style.backgroundColor='#0099ff'" onmouseout="this.style.backgroundColor=''">
<td onclick="document.all.selectedValue.innerText=this.innerText">
<img src="http://lucky.myrice.com/images/copyright.gif" border="0" align="absmiddle" hspace="2"><a href="http://lucky.myrice.com">Visit1</a>
</td>
</tr>
<tr>
<td onmouseover="this.style.backgroundColor='#0099ff'" onmouseout="this.style.backgroundColor=''"onclick="document.all.selectedValue.innerText=this.innerText">
<img src='http://lucky.myrice.com/images/meng1.gif' border="0" align="absmiddle" hspace="2"><a href="http://lucky.myrice.com">Visit2</a>
</td>
</tr>
<tr>
<td onmouseover="this.style.backgroundColor='#0099ff'" onmouseout="this.style.backgroundColor=''"onclick="document.all.selectedValue.innerText=this.innerText">
<img src='http://lucky.myrice.com/images/meng2.gif' border="0" align="absmiddle" hspace="2"><a href="http://lucky.myrice.com">Visit3</a>
</td>
</tr>
</table>
</div><script>
function mm_Click()
{
if(document.all.dropdownOption.style.visibility == 'visible')
document.all.dropdownOption.style.visibility='hidden'
else
document.all.dropdownOption.style.visibility='visible'
}
function init(){
document.all.dropdownOption.style.width = document.all.selectLength.clientWidth + 22;
document.all.selectedValue.contentEditable = true;
var strTop = 0;
var strLeft = 0;
var e1 = document.all.selectLength;
while(e1.tagName != "BODY")
{
strTop += e1.offsetTop
strLeft += e1.offsetLeft
e1 = e1.offsetParent
}
document.all.dropdownOption.style.top = String(strTop + 24) + "px";
document.all.dropdownOption.style.left = String(strLeft) + "px";
}function clickE()
{
if(window.event.srcElement.id !='mm')
document.all.dropdownOption.style.visibility='hidden';
}document.onclick = clickE
window.onload = init
</script>
<br>
<br>
<input onclick="alert(document.all.selectedValue.innerText)" type="button" value="得到选中的值">
大家都分点