Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type='text/javascript' src='http://p1.lt/jq.js'></script>
- <script type="text/javascript" src="http://p1.lt/js.js"></script>
- <script>
- function citata(user){
- document.getElementById("minichatzin").value += " "+user+": -> ";
- }
- function reloadPage()
- {
- location.reload()
- }
- function loadChat(username)
- {
- var xmlhttp;
- if (window.XMLHttpRequest)
- {
- xmlhttp = new XMLHttpRequest();
- }
- else
- {
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.onreadystatechange = function()
- {
- if (xmlhttp.readyState === 4 && xmlhttp.status === 200)
- {
- document.getElementById("myDiv2").innerHTML = xmlhttp.responseText;
- }
- };
- xmlhttp.open("GET", "minichat2.php?id=&username=" + username, true);
- xmlhttp.send();
- }
- function minichatwrite()
- {
- zin = document.getElementById("minichatzin").value;
- var xmlhttp;
- if (window.XMLHttpRequest)
- {
- xmlhttp = new XMLHttpRequest();
- }
- else
- {
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.onreadystatechange = function()
- {
- var node = document.getElementById('error'),
- textContent = node.textContent;
- if (xmlhttp.readyState === 4 && xmlhttp.status === 200)
- {
- document.getElementById("error").innerHTML = xmlhttp.responseText;
- setTimeout(function(){document.getElementById("error").innerHTML = textContent;},3000);
- document.getElementById("minichatzin").value = "";
- }
- };
- xmlhttp.open("GET", "minichat.php?zinute=" + zin, true);
- xmlhttp.send();
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement