关于window.open的弱问题 <a onclick=window.open('add.asp') style="cursor:hand">new</a> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <a href="#" onclick=window.open('add.asp')>new</a> 或<a href="javascript:onclick=window.open('add.asp')"> new</a> 在css中设置超链接的 style="cursor:hand" <a href="#" onclick="window.open('add.asp')">new</a> <a href=javascript:void(null) onclick=window.open('add.asp') style="cursor:hand">new</a> 这个问题很麻烦,,我的解决办法是使用HTC,绑定到任何标记都有链接效果<PUBLIC:COMPONENT><PUBLIC:ATTACH onevent="domouseover()" event="onmouseover"/><PUBLIC:ATTACH onevent="domouseout()" event="onmouseout"/></PUBLIC:COMPONENT><script language="JScript">element.runtimeStyle.color="black";element.runtimeStyle.textDecoration="none";function domouseover(){ element.runtimeStyle.color="red"; element.runtimeStyle.textDecoration="underline";}function domouseout(){ element.runtimeStyle.color="black"; element.runtimeStyle.textDecoration="none"; }</script>HTML文件 <script>.richLink{ text-decoration : none; color:black; cursor:hand; behavior:url(htc/link1.htc); font-family : 宋体; font-size:9pt;}</script><!--使用span代替A --><span onclick="self.open('showinfo.asp?PartID=101&InfoID=10','_blank','width=650,height=500,scrollbars=1')" class="richTR">链接文字</span> 错了,应该是 richLink,名字可以自己定<span onclick="self.open('showinfo.asp?PartID=101&InfoID=10','_blank','width=650,height=500,scrollbars=1')" class="richLink">链接文字</span> <a href="javascript:" onclick=window.open('add.asp')>new</a> <h1>xinghaizhihang<span>w我的uery</span></h1> 改成中文为什么显示不出来? Ext list 动态读取数据 用js如何获取asp.net中radiobuttonlist中的文本值? textarea的格式 有没有可输入的下拉框js插件 JS入门问题 js的百分数的正则验证 为什么我一个onchange事件不会执行? textbox里面取值问题 jquery请教怎样在input[radio]单击时引发事件 求此超链接效果代码 各位,能给一个Javascript结合HTC做验证的例子吗?
<PUBLIC:COMPONENT>
<PUBLIC:ATTACH onevent="domouseover()" event="onmouseover"/>
<PUBLIC:ATTACH onevent="domouseout()" event="onmouseout"/>
</PUBLIC:COMPONENT>
<script language="JScript">
element.runtimeStyle.color="black";
element.runtimeStyle.textDecoration="none";
function domouseover()
{
element.runtimeStyle.color="red";
element.runtimeStyle.textDecoration="underline";
}
function domouseout()
{
element.runtimeStyle.color="black";
element.runtimeStyle.textDecoration="none";
}</script>
HTML文件
<script>
.richLink{
text-decoration : none;
color:black;
cursor:hand;
behavior:url(htc/link1.htc);
font-family : 宋体;
font-size:9pt;
}
</script>
<!--使用span代替A -->
<span onclick="self.open('showinfo.asp?PartID=101&InfoID=10','_blank','width=650,height=500,scrollbars=1')" class="richTR">链接文字</span>
<span onclick="self.open('showinfo.asp?PartID=101&InfoID=10','_blank','width=650,height=500,scrollbars=1')" class="richLink">链接文字</span>