[Beschreibung]
Das Script erlaubt Ihnen, XML- Dateien in Ihre Webseite einzulesen.
[Kompatibilität]
[Code]
<style type="text/css"> <!-- #contentLYR { position:absolute; width:200px; height:115px; z-index:1; left: 200px; top: 50px; } --> </style> <script type="text/javascript"> <!-- Begin /* This script and many more are available free online at The JavaScript Source!! http://www.nightfire.ch/java/ Created by: Eddie Traversa (2005) :: http://dhtmlnirvana.com/ */ function ajaxLoader(url,id) { if (document.getElementById) { var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); } if (x) { x.onreadystatechange = function() { if (x.readyState == 4 && x.status == 200) { el = document.getElementById(id); el.innerHTML = x.responseText; } } x.open("GET", url, true); x.send(null); } } //--> </script>
onload="ajaxLoader('demo.xml','contentLYR')"
<div id="contentLYR"> </div>
Eddie Traversa
Kopieren Sie bitte den Code