前台:
用javascript处理双击事件
用javascript处理双击事件
<script type="text/javascript">
function msnchat()
{
var e = window.event.srcElement;
window.location.href="msnim:chat?contact="+e.value;
}
</script>
<!--msn联系列表开始-->
<select id="msnbox" style="height: 200px; width: 100%"
ondblclick="msnchat();" size="4" name="listboxmsn">
<option value="kbt@163.com">yc</option>
<option value="sang@hotmail.com">21</option>
<option value="888@hotmail.com">321</option>
<option value="5@163.com">41</option>
<option value="6@163.com">15</option>
<option value="7@163.com">61</option>
<option value="8@163.com">71</option>
</select>
<!--msn联系列表结束-->
function msnchat()
{
var e = window.event.srcElement;
window.location.href="msnim:chat?contact="+e.value;
}
</script>
<!--msn联系列表开始-->
<select id="msnbox" style="height: 200px; width: 100%"
ondblclick="msnchat();" size="4" name="listboxmsn">
<option value="kbt@163.com">yc</option>
<option value="sang@hotmail.com">21</option>
<option value="888@hotmail.com">321</option>
<option value="5@163.com">41</option>
<option value="6@163.com">15</option>
<option value="7@163.com">61</option>
<option value="8@163.com">71</option>
</select>
<!--msn联系列表结束-->