2013-07-28, 07:50 AM
Regular Expression:
\[link1\](.*?)\[/link1\]
Replacement:
<input type="button" value="Open Link1 Window" onclick="window.open('$1','popUpWindow','height=500,width=500,left=400,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes');">
demo
[link1]http://static.mp3.zdn.vn/skins/mp3_main/flash/embed/zing_mp3_embed_v1.3.swf?xmlURL=http://mp3.zing.vn/xml/video-xml/LGxHyZmsVuQnpxCyLvJTFmkG&autostart=true[/link1] Nếu Như Anh Đến-Văn Mai Hương Video
[link1]http://www.youtube.com/embed/qycqF1CWcXg[/link1]
More infor
http://www.quackit.com/javascript/popup_windows.cfm
http://mp3.zing.vn/video-clip/Neu-Nhu-Anh-Den-Van-Mai-Huong/ZWZC7FFA.html
http://www.youtube.com/watch?v=qycqF1CWcXg
Autoplay youtube
[link1]http://www.youtube.com/embed/qycqF1CWcXg?autoplay=1[/link1]