") ; else document.write("" + dialogArguments.lang["DlgImgTitleInsert"] + " ") ; // Get the IMG tag. function getImageHtml() { return '' ; } // Returns a formatted image attribute. Used by getImageHtml(). function attr(name, value) { if (!value || value == "") return "" ; return ' ' + name + '="' + value + '"' ; } // Update any image (the selected or preview one) function updateImage(imgTarget) { if (txtURL.value == "") imgTarget.style.display = "none" ; else { imgTarget.style.removeAttribute("display") ; imgTarget.src = txtURL.value ; setAttribute(imgTarget, "alt" , txtAlt.value) ; setAttribute(imgTarget, "width" , txtWidth.value) ; setAttribute(imgTarget, "height", txtHeight.value) ; setAttribute(imgTarget, "vspace", txtVSpace.value) ; setAttribute(imgTarget, "hspace", txtHSpace.value) ; setAttribute(imgTarget, "border", txtBorder.value) ; setAttribute(imgTarget, "align" , cmbAlign.options[ cmbAlign.selectedIndex ].value) ; } } function setAttribute(element, attribute, value) { if (value == null || value == "") element.removeAttribute(attribute, 0) ; // 0 = case insensitive else element.setAttribute(attribute, value, 0) ; // 0 = overwrite } // Fired when any field change to update the preview image. function updatePreview() { updateImage(imgPreview) ; } // Fired when the user press the OK button function ok() { if ( imageSource == null ) window.returnValue = getImageHtml() ; else { updateImage( imageSource ) ; window.returnValue = null ; } window.close() ; } // Fired when the user press the CANCEL button. function cancel() { window.returnValue = null ; window.close() ; } // Fired when the user load the window. It sets the fields with the // actual values if an image is selected in the editor. function setDefaults() { // First of all, translate the dialog box texts dialogArguments.AvailableLangs.TranslatePage(document) ; if (image == null) return ; if (image.getAttribute("src",2) != null) txtURL.value = image.getAttribute("src",2) ; if (image.getAttribute("alt",2) != null) txtAlt.value = image.getAttribute("alt",2) ; if (image.getAttribute("width",2) != null) txtWidth.value = image.getAttribute("width",2) ; if (image.getAttribute("height",2) != null) txtHeight.value = image.getAttribute("height",2) ; if (image.getAttribute("vspace",2) != null) txtVSpace.value = image.getAttribute("vspace",2) > 0 ? image.getAttribute("vspace",2) : "" ; if (image.getAttribute("hspace",2) != null) txtHSpace.value = image.getAttribute("hspace",2) > 0 ? image.getAttribute("hspace",2) : "" ; if (image.getAttribute("border",2) != null) txtBorder.value = image.getAttribute("border",2) ; if (image.getAttribute("align") != null) { for (var i = 0 ; i < cmbAlign.options.length ; i++) { if (cmbAlign.options[i].value == image.getAttribute("align")) { cmbAlign.options[i].selected = true ; break ; } } } updatePreview() ; } // Fired when the width or height input texts change function sizeChanged(axe) { // Verifies if the aspect ration has to be mantained if (imageOriginal && chkLockRatio.checked) { if ((axe) == "Width") { if (txtWidth.value != "") { if (! isNaN(txtWidth.value)) txtHeight.value = Math.round( imageOriginal.height * ( txtWidth.value / imageOriginal.width ) ) ; } else txtHeight.value = "" ; } else if (txtHeight.value != "") { if (! isNaN(txtHeight.value)) txtWidth.value = Math.round( imageOriginal.width * ( txtHeight.value / imageOriginal.height ) ) ; } else txtWidth.value = "" ; } updatePreview() ; } // Fired when the Lock Ratio checkbox is clicked function onLockRationClick() { sizeChanged("Width") ; } // Fired when the Reset Size button is clicked function resetSize() { if (! imageOriginal) return ; txtWidth.value = imageOriginal.width ; txtHeight.value = imageOriginal.height ; updatePreview() ; } // Fired when the user click in the "Sent it to the Server" button. function uploadFile() { var sFile = frmUpload.FCKeditor_File.value ; if (sFile == "") { alert( dialogArguments.lang["DlgImgAlertSelect"] ) ; return ; } var sExt = sFile.match( /\.[^\.]*$/ ) ; sExt = sExt ? sExt[0].toLowerCase() : "." ; if ( sUploadAllowedExtensions.indexOf( sExt ) < 0 ) { alert( dialogArguments.lang["DlgImgMsgWrongExt"] ) ; return ; } var oWindow = openNewWindow("", "UploadWindow", iUploadWindowWidth, iUploadWindowHeight) ; frmUpload.submit() ; oWindow.setImage = setImage ; } function browserServer() { var oWindow = openNewWindow(sBrowseURL, "BrowseWindow", iBrowseWindowWidth, iBrowseWindowHeight) ; oWindow.setImage = setImage ; } function openNewWindow(sURL, sName, iWidth, iHeight, bResizable, bScrollbars) { var iTop = (screen.height - iHeight) / 2 ; var iLeft = (screen.width - iWidth) / 2 ; var sOptions = "toolbar=no" ; sOptions += ",width=" + iWidth ; sOptions += ",height=" + iHeight ; sOptions += ",resizable=" + (bResizable ? "yes" : "no") ; sOptions += ",scrollbars=" + (bScrollbars ? "yes" : "no") ; sOptions += ",left=" + iLeft ; sOptions += ",top=" + iTop ; var oWindow = window.open(sURL, sName, sOptions) oWindow.focus(); return oWindow ; } function setImage(sImageURL) { if (image != null) { image = new Image() ; image.src = sImageURL ; } imageOriginal = new Image() ; imageOriginal.onload = resetSize ; imageOriginal.src = sImageURL ; txtURL.value = sImageURL ; updatePreview() ; }
URL
   


Alternative Text

Width 
Height 
Lock Ratio


Border 
HSpace 
VSpace 
Align 
   
Preview
Magnus es, domine, et laudabilis valde: magna virtus tua, et sapientiae tuae non est numerus. et laudare te vult homo, aliqua portio creaturae tuae, et homo circumferens mortalitem suam, circumferens testimonium peccati sui et testimonium, quia superbis resistis: et tamen laudare te vult homo, aliqua portio creaturae tuae.tu excitas, ut laudare te delectet, quia fecisti nos ad te et inquietum est cor nostrum, donec requiescat in te. da mihi, domine, scire et intellegere, utrum sit prius invocare te an laudare te, et scire te prius sit an invocare te. sed quis te invocat nesciens te? aliud enim pro alio potest invocare nesciens. an potius invocaris, ut sciaris? quomodo autem invocabunt, in quem non crediderunt? aut quomodo credent sine praedicante? et laudabunt dominum qui requirunt eum. quaerentes enim inveniunt eum et invenientes laudabunt eum. quaeram te, domine, invocans te, et invocem te credens in te: praedicatus enim es nobis. invocat te, domine, fides mea, quam dedisti mihi, quam inspirasti mihi per humanitatem filii tui, per ministerium praedicatoris tui.