PHP gevorderde |
|
Wat doe ik hier verkeerd aan??
<body>
<div id="header">
<img src="../images/logo.png">
</div>
<div id="mainContainer">
<div id="content">
</div>
<div>
<a href="#" onclick="dynConObj.loadContent('content','includes/demo-dynamicContent-2.html');return false">Insert content from another file</a><br>
<a href="#" onclick="dynConObj.loadContent('content','includes/demo-dynamicContent.html');return false">Insert the first file again</a>
</div>
</div>
<script type="text/javascript">
dynConObj = new DHTMLSuite.dynamicContent(); // Creating object of class DHTMLSuite.dynamicContent
dynConObj.loadContent(content,'includes/demo-dynamicContent.html'); // Loading content into <div id="content">
</script>
</body>
<body> <div id="header"> <img src="../images/logo.png"> </div> <div id="mainContainer"> <div id="content"> </div> <div> <a href="#" onclick="dynConObj.loadContent('content','includes/demo-dynamicContent-2.html');return false">Insert content from another file</a><br> <a href ="#" onclick ="dynConObj.loadContent('content','includes/demo-dynamicContent.html');return false">Insert the first file again </a > </div> </div> <script type="text/javascript"> dynConObj = new DHTMLSuite.dynamicContent(); // Creating object of class DHTMLSuite.dynamicContent dynConObj.loadContent(content,'includes/demo-dynamicContent.html'); // Loading content into <div id="content"> </script> </body>
Alvast bedankt.
|