MyException - 我的异常网
当前位置:我的异常网» ASP » ASP中,UBB代码中,为什么Quote不能一段一段地进行

ASP中,UBB代码中,为什么Quote不能一段一段地进行引用呢(2)

www.myexceptions.net  网友分享于:2013-04-10  浏览:3次

bod = re.Replace(bod,"<img src=images\email.gif align=absmiddle border=0><a href=$1 style=font-size:9pt>$2</a>")
re.Pattern = "\[email](.[^\[]*)\[\/email]"
bod = re.Replace(bod,"<img src=images\email.gif align=absmiddle border=0><a href=mailto:$1 style=font-size:9pt>$1</a>")
re.Pattern="\[fly\](.*)\[\/fly\]"
bod=re.Replace(bod,"<marquee width=90% behavior=alternate scrollamount=3>$1</marquee>")
re.Pattern="\[move\](.*)\[\/move\]"
bod=re.Replace(bod,"<MARQUEE scrollamount=3>$1</marquee>")
re.Pattern="\[SHADOW=*([0-9]*),*(#*[a-z0-9]*),*([0-9]*)\](.[^\[]*)\[\/SHADOW]"
bod=re.Replace(bod,"<table width=$1 ><tr><td style=""filter:shadow(color=$2, strength=$3)"">$4</td></tr></table>")
re.Pattern="\[GLOW=*([0-9]*),*(#*[a-z0-9]*),*([0-9]*)\](.[^\[]*)\[\/GLOW]"
bod=re.Replace(bod,"<table width=$1 ><tr><td style=""filter:glow(color=$2, strength=$3)"">$4</td></tr></table>")
'多媒体标签

   re.Pattern="\[QT=*([0-9]*),*([0-9]*)\](.[^\[]*)\[\/QT]"
   bod=re.Replace(bod,"<embed src=$3 width=$1 height=$2 autoplay=true loop=false controller=true playeveryframe=false cache=false scale=TOFIT bgcolor=#000000 kioskmode=false targetcache=false pluginspage=http://www.apple.com/quicktime/>")
   re.Pattern="\[MP=*([0-9]*),*([0-9]*)\](.[^\[]*)\[\/MP]"
   bod=re.Replace(bod,"<object align=middle classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 class=OBJECT id=MediaPlayer width=$1 height=$2 ><param name=ShowStatusBar value=-1><param name=Filename value=$3><embed type=application/x-oleobject codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 flename=mp src=$3 width=$1 height=$2></embed></object>")
   re.Pattern="\[RM=*([0-9]*),*([0-9]*)\](.[^\[]*)\[\/RM]"
   bod=re.Replace(bod,"<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA class=OBJECT id=RAOCX width=$1 height=$2><PARAM NAME=SRC VALUE=$3><PARAM NAME=CONSOLE VALUE=Clip1><PARAM NAME=CONTROLS VALUE=imagewindow><PARAM NAME=AUTOSTART VALUE=true></OBJECT><br><OBJECT classid=CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA height=32 id=video2 width=$1><PARAM NAME=SRC VALUE=$3><PARAM NAME=AUTOSTART VALUE=-1><PARAM NAME=CONTROLS VALUE=controlpanel><PARAM NAME=CONSOLE VALUE=Clip1></OBJECT>")
   re.Pattern="(\[FLASH\])(.[^\[]*)(\[\/FLASH\])"
   bod= re.Replace(bod,"<a href=""$2"" TARGET=_blank style=font-size:9pt><IMG SRC=images/swf.gif border=0 alt=点击开新窗口欣赏该FLASH动画! height=16 width=16>[全屏欣赏]</a><br><OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=500 height=400><PARAM NAME=movie VALUE=""$2""><PARAM NAME=quality VALUE=high><embed src=""$2"" quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width=500 height=400>$2</embed></OBJECT>")
   re.Pattern="(\[sound\])(.[^\[]*)(\[\/sound\])" 
   bod=re.Replace(bod,"<a href=""$2"" target=_blank><IMG SRC=images/mid.gif border=0 alt='背景音乐'></a><bgsound src=""$2"" loop=""-1"">")

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有