posted on Dec, 11 2006 @ 01:08 AM
here is the xml
< ?xml version="1.0" encoding="UTF-8" ?>
< description>
< div id="content">
< div id="sidebar">
< div id="menu">
< p class="h4">
< a onClick="ajaxLoader('xmlhelp/music.xml','vid')"MUSIC< /a>
PROJECTS
< /div>
< p>This menu is dynamic to the application you are using< /p>
< /vid>
< /div>
< div id="Vid">
< p align="center" class="h1">HELP FILE< /p>
< p>This help file is meant to provide information to common issues in using this website.
If you are having problems aside from anything explained here please send us an E-mail about it.
Also please remember this website is still being constructed so please excuse any bugs you may run across that is all.< br>
This help file is incomplete right now, please bear with us while we upload all the data.
< /p>
< /div>
< /div>
< /description>
and here is the JS
function ajaxLoader(url,id)
[
if (document.get) [
var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
]
if (x)
[
x.onreadystatechange = )
[
if (x.readyState == 4 && x.status == 200)
[
el = document.get(id);
el. = x.responseText;
]
]
x.open("GET", url, true);
x.send(null);
]
]
ok so this is called in the html file like this
< html>
< head>
< link rel="stylesheet" type="text/css" href=".ml.css">
< script "JavaScript1.2" src=".scripts.js">< /script>
< /head>
< body id="body" ="ajaxLoader('xml/index.xml','content')">
< div id="middle">
< marquee style="color:blue; font-size:14px; font-weight: normal; font-style: normal; font-family: Arial; border: 1px solid" border="1">
Welcome to ChronostarGraphics.com, the the official site of the Chronostar Universe! This is our new website, and it is the 5th generation in that!
< /div>
< div id="content">
< /div>
< div id="footer">
HOME |
UDF ARCHIVE |
DVD SERVICES |
PROJECTS |
CONTACT US |
HELP
< /p>
< /div>
< /body>
< /html>
[edit on 12/11/2006 by razor1000]