dlg ins image









function attr(name, value) {
if (!value || value == "") return "";
return ' ' + name + '="' + value + '"';
}
function insertImage() {
window.returnValue = '';
window.close();
}
function cancel() {
window.returnValue = null;
window.close();
}


function setDefaults() {
if (dialogArguments.RichEditor.selectedImage != null) {
image = dialogArguments.RichEditor.selectedImage;
editmode = true;
fm = document.forms[0];
if (image.src)
url.value = image.src
if (image.alt)
alt.value = image.alt
if (image.width)
width.value = image.width
if (image.height)
height.value = image.height
if (image.vspace)
vspace.value = image.vspace
if (image.hspace)
hspace.value = image.hspace
if (image.border)
border.value = image.border
if (image.align) {
for (var i = 0; i < align.options.length; i++) {
if (align.options[i].value == image.align) {
align.options[i].selected = true;
break;
}
}
}
}
}

function updateImage() {
image.width = width.value;
image.height = height.value;
image.vspace = vspace.value;
image.hspace = hspace.value;
image.border = border.value;
image.align = align.options[ align.selectedIndex ].value;
window.returnValue = null
window.close();
}

var image = null // selected image if there is one

// we need to set
var editmode = false // are we editing an image?
if (dialogArguments.RichEditor.selectedImage != null) {
editmode = true;
document.write("Edit Image");
} else {
document.write("Insert Image");

}







Picture Info 

 
Url:


 
Alt Text:
Align:

Left
Abs Bottom
Abs Middle
Baseline
Bottom
Middle
Right
Text Top
Top


 


Border:
Width:
Height:
Vspace:
Hspace:







 


if (editmode) {
document.write("");
} else {
document.write("");
}








Wyszukiwarka

Podobne podstrony:
popup ins image
dlg ins table
dlg ins smile
dlg ins smile
dlg ins char
image
function pdf execute image
G28 Mirror Image
java awt image IndexColorModel
java awt image ImageConsumer
image
image

więcej podobnych podstron