Image

"Christoph Oehler" <[email protected]> Tue, 6 May 2003 16:06:08 +0200
Newsgroups gmane.editors.bitflux.devel
Message-ID <[email protected]>
Hallo zusammen

Habe das Datei insertPicture/index.html angepasst (attachment). Das
gewünschte Element :

<picture src="bild1.jpg"/>

wird nicht eingefügt ... was mache ich falsch?

Vielen Dank und Gruss
Christoph Oehler


 <<index.html>>

-- 
bx-editor-dev mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
index.html (text/html, 1.1 KB)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Bitflux Editor - Insert Image</title>
<script type="text/javascript">
//<![CDATA[
function BX_image_insert(url) {

    alert(url);

	var pictureRef = '<picture id="BX_id_'+parent.opener.BX_id_counter++ +'"  xmlns="http://www.w3.org/1999/xhtml" src="'+url+'" bxe_temporaryelement="yes"/>';
	alert(pictureRef);

	parent.opener.BX_id_counter++;
	parent.opener.BX_insertContent(pictureRef);

	window.close();

}

function BX_image_show() {
	var url = document.forms.image.url.value;

	document.getElementById("pic").innerHTML = "<img src='"+url+"'>";
}


//]]>
</script>
</head>
<body style="font-family: arial">
	<p>
		Bitte Bild auswählen ...
	</p>


<a href="javascript:BX_image_insert('bild1.jpg');">Bild 1</a>
<a href="javascript:BX_image_insert('bild2.jpg');">Bild 2</a>
<a href="javascript:BX_image_insert('bild3.jpg');">Bild 3</a>
<a href="javascript:BX_image_insert('bild4.jpg');">Bild 4</a>

</body>
</html>