Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a href="#" onclick="loadGreetings()" ><?php echo lang("FOOTER_ABOUT_US"); ?></a>
- <a href="#"><?php echo lang("FOOTER_FAQ"); ?></a>
- <a href="<?php echo base_url(); ?>index.php/welcome/kontakt"><?php echo lang("FOOTER_CONTACT"); ?></a>
- <p id="ajax"></p>
- function loadGreetings() {
- //template lehelt w3schools.com
- if (window.XMLHttpRequest) {
- // code for IE7+, Firefox, Chrome, Opera, Safari
- xmlhttp=new XMLHttpRequest();
- } else { // code for IE6, IE5
- xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.onreadystatechange=function() {
- if (this.readyState==4 && this.status==200) {
- document.getElementById("views/ajax").innerHTML=this.responseText;
- }
- }
- xmlhttp.open("GET","greetings.txt"+str,true);
- xmlhttp.send();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement