玫铃 发表于 2007 年 1 月 2 日 20:04:19

论坛中出现图像和连接相矛盾的情况,这是怎么回事呢?

这个是论坛代码有关图像和连接的代码,大家看看有没有冲突
                        '#IMAGE
                        if isFound(str,"") > 0 AND isFound(str,"javascript:") = 0 then
                                imageIndex = imageIndex + 1
                               
                                str= Replace(str,"[img=","<br><a onfocus=this.blur() href=#><img onclick=""userImage" & imageIndex & """ onload=""javascript:if(this.width>screen.width/2)this.width=screen.width/2"" id='userImage" & imageIndex & "' src=")
                                str= Replace(str,"[img=","<br><a onfocus=this.blur() href=#target=_blank><imgname='userImage" & imageIndex & "' onload=""autoResize('document.images.userImage" & imageIndex & "')"" src=")
                                str = Replace(str,"]","></a>")
                                                        isChange = false
                        End if
                        '#END IMAGE
                       
                        '#LINK
                        if isFound(str,"") > 0 AND isFound(str,"javascript:") = 0 then
                                str= Replace(str,"[link=","<a href=")
                                str = Replace(str,"","></a>")
                                isChange = true
                        End if
                        '#END LINK

现象:
有图片的时候连接会出现这样的情况:
http://lannl.com/music.htm(即,连接代码失效)

但是如果仅仅有连接而没有图像的时候连接就是正常的。

[ 本帖最后由 玫铃 于 2007-1-2 20:38 编辑 ]

monkey5882 发表于 2007 年 1 月 2 日 20:25:28

抵制无回贴状态。。。。。

esnak 发表于 2007 年 1 月 2 日 20:37:51

不懂,消灭无板凳状态
你什么论坛啊

玫铃 发表于 2007 年 1 月 2 日 20:41:33

http://lannl.com/3/viewtopic.asp?forumid=1&id=157,你看出有什么矛盾吗?

[ 本帖最后由 玫铃 于 2007-1-2 20:43 编辑 ]
页: [1]
查看完整版本: 论坛中出现图像和连接相矛盾的情况,这是怎么回事呢?