[AjaxLoader]










Das Script erlaubt Ihnen, XML- Dateien in Ihre Webseite einzulesen.

[Code]

[zwischen <HEAD> und </HEAD>]

<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>

[IN den <BODY> Tag]

onload="ajaxLoader('demo.xml','contentLYR')"

[zwischen <BODY> und </BODY>]

<div id="contentLYR">
</div>

[Autor]

Eddie Traversa

[Download]

Kopieren Sie bitte den Code

Copyright © 1998- Nightfire Webworker Archiv Script No: 645