怎样用span实现新跳出窗口的链接? 為什么不直接用A﹐如果你不要它的樣式就改掉就行了嘛﹐<a href=more.asp target=_blank style="color:#000000">更多<img src='img/more.gif' width=29 height=9 border=0></a> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果非要span而且不用window.open还有<span style="cursor:hand" onclick="javascript:var oForm=document.createElement('form');oForm.target=this.target;oForm.action='more.asp?typeid=1';oForm.method='GET';oForm.appendChild(document.createElement('<input type=hidden name=typeid value=1>'));document.appendChild(oForm);oForm.submit();" title='更多的' target="_blank">更多 <img src='img/more.gif' width=29 height=9 border=0></span>钻牛角尖 因为<span>不会出现链接的下划线和鼠标焦点啊,漂亮一些啊。 我把它整理成函数算了,因为更多的链接不止一个,多谢了:)<script language="javascript">function openWindowURL(url,id) {var oForm=document.createElement('form');oForm.target=this.target;oForm.action=url;oForm.method='GET';oForm.appendChild(document.createElement('<input type=hidden name=typeid value='+id+'>'));document.appendChild(oForm);oForm.submit();}</script><span style="cursor:hand" onclick="javascript:openWindowURL('more.asp?typeid=1',1);" title='更多的'>更多 <img src='img/more.gif' width=29 height=9 border=0>js版很活跃啊,反应快。 求救!!如何让这段CSS支持IE浏览器! 框架收收缩问题??? 请问JS的执行顺序问题 关于自己写个类似fckeditor的东西 有获取相同类型控件的函数么? 禁止狀態欄中出現鏈接地址,以及禁用右鍵但不彈出任何信息 jqgird升级到4.40,但是该日的的列仍然冻结不了。 当点击某个超连接的同时提交表单中的内容,这JavaScript语言要怎么写? 请大家帮忙,怎样判断 javascript 中的一个变量是否声明过或者为空 前端框架选择 按钮与字的问题,只点击字没又反映,这是什么原因? 请帮忙。。。(急,在线等待) 超简单问题
function openWindowURL(url,id) {
var oForm=document.createElement('form');
oForm.target=this.target;
oForm.action=url;
oForm.method='GET';
oForm.appendChild(document.createElement('<input type=hidden name=typeid value='+id+'>'));
document.appendChild(oForm);
oForm.submit();
}
</script><span style="cursor:hand" onclick="javascript:openWindowURL('more.asp?typeid=1',1);" title='更多的'>更多 <img src='img/more.gif' width=29 height=9 border=0>js版很活跃啊,反应快。