此内容为类似于QQ或MSN的javascript代码
<A href='javascript:void(0)' hidefocus=false id='btCommand'><FONT color=#ff0000>" + this.message + "</FONT></A>
这个链接 是根据btCommand控制他的onclick 属性的,那为什么不能直接在这里写 onclick='http://www.baidu.com'呢?
还有,href hidefocus 属性在里面又是分别控制什么的啊.?
如果我在href='http://www.baidu.com'这样是不能链接的...
这里写的this.message太不灵活了...
难道只能是<a href='; hidefocus='' id='btCommand'>this.message</a>如果我的this.message =<a href=""> aaaa </a> <a href="#"> bbbbbb </a> <a href="#"> ccccccc </a>
这样每个东东所链接的不同,这样又该怎么写?
<A href='javascript:void(0)' hidefocus=false id='btCommand'><FONT color=#ff0000>" + this.message + "</FONT></A>
这个链接 是根据btCommand控制他的onclick 属性的,那为什么不能直接在这里写 onclick='http://www.baidu.com'呢?
还有,href hidefocus 属性在里面又是分别控制什么的啊.?
如果我在href='http://www.baidu.com'这样是不能链接的...
这里写的this.message太不灵活了...
难道只能是<a href='; hidefocus='' id='btCommand'>this.message</a>如果我的this.message =<a href=""> aaaa </a> <a href="#"> bbbbbb </a> <a href="#"> ccccccc </a>
这样每个东东所链接的不同,这样又该怎么写?
onFocus="this.blur()"
它的值是一个布尔值,如hideFocus=true。也可省略赋值直接写hideFocus。
你给的代码如果没有hideFocus,那么鼠标点击该超链接,则外面出现一个虚线框,即为聚焦。而使用了hideFocus则不会有虚线框。<A href='http://www.baidu.com' hidefocus=false > <FONT color=#ff0000>aaaaaaaa </FONT> </A>
这样是可以的
onclick应该这么用.
<A href='#' hidefocus=false onclick="window.location.href='http://www.baidu.com'"> <FONT color=#ff0000>aaaaaaaa </FONT> </A> <a href="url"> aaaa </a>
url 就是你要指向的连接
你只要url不同连接就不同了..
难道只能是 <a href='; hidefocus='' id='btCommand'>this.message </a> 如果我的this.message = <a href=""> aaaa </a> <a href="#"> bbbbbb </a> <a href="#"> ccccccc </a>
这样每个东东所链接的不同,这样又该怎么写?
这段LZ 说的没太明白想问什么?
难道只能是 <a href='; hidefocus='' id='btCommand'>this.message </a> 如果我的this.message = <a href=""> aaaa </a> <a href="#"> bbbbbb </a> <a href="#"> ccccccc </a>
这样每个东东所链接的不同,这样又该怎么写?
================
这里写个循环看看行不...
这个链接 是根据btCommand控制他的onclick 属性的,那为什么不能直接在这里写 onclick='http://www.baidu.com'呢?
还有,href hidefocus 属性在里面又是分别控制什么的啊.?
如果我在href='http://www.baidu.com'这样是不能链接的...
================
建议LZ把代码贴出来看看...