
<%
'利用ASP查找文章里面的圖片,然后用新窗口打開
Public Function ReplacePic(s)
Dim re
Set re=New RegExp
re.IgnoreCase=True
re.Global=True
re.Pattern="<img(.[^>]*)>"
ReplacePic=re.replace(s,"<img onerror=""this.innerHTML='圖像無法獲取...'"" onclick=""window.open(this.src);"" alt=""點擊在新窗口中打開圖片"" onload=""if(this.width>400) this.width=400;"" class=""ContentPic"" $1 />")
Set re=Nothing
End Function
response.write ReplacePic(container)
%>
#maingame img {width:expression(this.width > 650 ? 650: true); max-width:650px;}
您發布的評論即表示同意遵守以下條款:
一、不得利用本站危害國家安全、泄露國家秘密,不得侵犯國家、社會、集體和公民的合法權益;
二、不得發布國家法律、法規明令禁止的內容;互相尊重,對自己在本站的言論和行為負責;
三、本站對您所發布內容擁有處置權。