单独使用FCKeditor的图片上传功能
时间:2010-09-12 来源:hlhcto
- //利用FCKeditor的图片上传功能
- function ShowFCKeditorForm(sUrl,iwidth,iheight)
- {
- var top = (window.screen.height-iheight)/2;
- var left = (window.screen.width-iwidth)/2;
- top=top-20;
- var feature ='top='+top+',left='+left+',scroll=auto,width='+iwidth+' resizable=yes,scrollbars=yes,height='+iheight;
- window.open(sUrl,'',feature);
- }
- function SetThumbFromSvr(value)
- {
- txtvalue=value;
- var url="/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=/FCKeditor/editor/filemanager/connectors/aspx/connector.aspx&From=inner&value="+value;
- ShowFCKeditorForm(url,800,600);
- }
- function SetUrl(fileurl)
- {
- document.getElementById(txtvalue).value=fileurl
- }
<asp:TextBox ID="txtThumb" runat="server" Width="200px"></asp:TextBox>
<input type="button" id="btn_selectpic" value="服务器" class="button_style" />
相关阅读 更多 +