"); // 初始值 function InitDocument(){ SearchSelectValue(d_filter, sFilter); SearchSelectValue(d_align, sAlign.toLowerCase()); d_fromurl.value = sFromUrl; d_alt.value = sAlt; d_border.value = sBorder; d_bordercolor.value = sBorderColor; s_bordercolor.style.backgroundColor = sBorderColor; d_width.value = sWidth; d_height.value = sHeight; d_vspace.value = sVSpace; d_hspace.value = sHSpace; } // 图片来源单选点击事件 function RadioClick(what){ if (what=="url"){ d_checkfromfile.checked=false; d_fromurl.disabled=false; d_checkfromurl.checked=true; d_file.myform.uploadfile.disabled=true; }else{ d_checkfromurl.checked=false; d_file.myform.uploadfile.disabled=false; d_checkfromfile.checked=true; d_fromurl.disabled=true; } } // 上传帧调入完成时执行 function UploadLoaded(){ // 初始radio RadioClick(sCheckFlag); } // 上传错误 function UploadError(sErrDesc){ AbleItems(); RadioClick('file'); divProcessing.style.display="none"; try { BaseAlert(d_file.myform.uploadfile,sErrDesc); } catch(e){} } // 文件上传完成时执行,带入上传文件名 function UploadSaved(sPathFileName){ d_fromurl.value = sPathFileName; ReturnValue(); } // 本窗口返回值 function ReturnValue(){ sFromUrl = d_fromurl.value; sAlt = d_alt.value; sBorder = d_border.value; sBorderColor = d_bordercolor.value; sFilter = d_filter.options[d_filter.selectedIndex].value; sAlign = d_align.value; sWidth = d_width.value; sHeight = d_height.value; sVSpace = d_vspace.value; sHSpace = d_hspace.value; if (sAction == "MODI") { oControl.src = sFromUrl; oControl.alt = sAlt; oControl.border = sBorder; oControl.style.borderColor = sBorderColor; oControl.style.filter = sFilter; oControl.align = sAlign; oControl.width = sWidth; oControl.height = sHeight; oControl.style.width = sWidth; oControl.style.height = sHeight; oControl.vspace = sVSpace; oControl.hspace = sHSpace; }else{ var sHTML = ''; if (sFilter!=""){ sHTML=sHTML+'filter:'+sFilter+';'; } if (sBorderColor!=""){ sHTML=sHTML+'border-color:'+sBorderColor+';'; } if (sHTML!=""){ sHTML=' style="'+sHTML+'"'; } sHTML = ''+sAlt+''; dialogArguments.insertHTML(sHTML); var oTempElement = dialogArguments.eWebEditor.document.getElementById("eWebEditor_TempElement_Img"); oTempElement.src = sFromUrl; oTempElement.removeAttribute("id"); } window.returnValue = null; window.close(); } // 点确定时执行 function ok(){ // 数字型输入的有效性 d_border.value = ToInt(d_border.value); d_width.value = ToInt(d_width.value); d_height.value = ToInt(d_height.value); d_vspace.value = ToInt(d_vspace.value); d_hspace.value = ToInt(d_hspace.value); // 边框颜色的有效性 if (!IsColor(d_bordercolor.value)){ BaseAlert(d_bordercolor,'提示:\n\n无效的边框颜色值!'); return false; } if (d_checkfromurl.checked){ // 返回值 ReturnValue(); }else{ // 上传文件判断 if (!d_file.CheckUploadForm()) return false; // 使各输入框无效 DisableItems(); // 显示正在上传图片 divProcessing.style.display=""; // 上传表单提交 d_file.myform.submit(); } } // 使所有输入框无效 function DisableItems(){ d_checkfromfile.disabled=true; d_checkfromurl.disabled=true; d_fromurl.disabled=true; d_alt.disabled=true; d_border.disabled=true; d_bordercolor.disabled=true; d_filter.disabled=true; d_align.disabled=true; d_width.disabled=true; d_height.disabled=true; d_vspace.disabled=true; d_hspace.disabled=true; Ok.disabled=true; } // 使所有输入框有效 function AbleItems(){ d_checkfromfile.disabled=false; d_checkfromurl.disabled=false; d_fromurl.disabled=false; d_alt.disabled=false; d_border.disabled=false; d_bordercolor.disabled=false; d_filter.disabled=false; d_align.disabled=false; d_width.disabled=false; d_height.disabled=false; d_vspace.disabled=false; d_hspace.disabled=false; Ok.disabled=false; }
图片来源
上传:
网络:
显示效果
说明文字:
边框粗细: 边框颜色:
特殊效果: 对齐方式:
图片宽度: 图片高度:
上下间距: 左右间距:
  
汇赢彩票平台 易尚彩票平台 多赢彩票平台 澎湃彩票平台 小九彩票平台 九虹彩票平台 星彩彩票平台 亿丰彩票平台 丽盈彩票平台 金罗盘彩票平台