php代码关于变量转义的问题
$('a.video', toolbar).click(function() {<br /> _this.save_bookmark();<br /> _this.hide_menu();<br /> $(this).xn_menu($('.video', menu), 0, 5000);<br /> setTimeout(function() {<br /> $('.video input.url', menu).focus().select();<br /> }, 100);<br /> });<br /> $('.video input.insert', menu).click(function() {<br /> var url = $('.video input.url', menu).val();<br /> var width = $('.video input.w', menu).val();<br /> var height = $('.video input.h', menu).val();<br /> _this.add_video(url, width, height);<br /> return true;<br /> });<br /> $('.video input.close', menu).click(function() {<br /> _this.hide_menu();<br /> _this.load_bookmark(true);<br /> return true;<br /> });
this.add_video = function(url, width, height) {<br /> width = intval(width);<br /> height = intval(height);<br /> var s = "<br><br><center><script type=\"text/javascript\" src=\"jwplayer/jwplayer.js\"></script><div id=\"mediaplayer\"></div> <script type=\"text/javascript\">jwplayer('mediaplayer').setup({'flashplayer': 'jwplayer/jwplayer.flash.swf','image': 'http://7vzuer.com1.z0.glb.clouddn.com/t013d040a81b623566f.jpg', 'id': 'playerID', 'width': '100%', 'aspectratio':'10:6', 'title':'"+height+"', 'tracks':'"+width+"', 'file': '"+url+"' });</script><br><br></center>";<br /> _this.paste(s);<br /> <br /> $('div.video', _this.menu).hide();<br /> };