| Autor | Zpráva | ||
|---|---|---|---|
| Daniel47 Profil |
Ahoj, mám kód, ale funguje na počítači, ale nefunguje na serveru a nevíte kde je chyba?
Kód: <!DOCTYPE html>
<html lang="cs-cz">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="http://dettube-cz.euweb.cz/css/styl.css" type="text/css" />
</head>
<body>
<textarea id="EmojiCteniPridat"></textarea>
<br />
<style>
</style>
<small>Smajlíky:</small>
<button class="button-blue" onclick="EmojiFillPlus()"><b>+</b></button><button class="button-blue" onclick="EmojiFillMinus()"><b>-</b></button><span onclick="EmojiFillPridat ()"><p id="VypsaniEmoji"></p></span>
<script>
window.setInterval("EmojiLoopOne()", 15);
window.setInterval("EmojiLoopTwo()", 15);
window.setInterval("EmojiLoopThree()", 15);
function EmojiLoopOne() {
var DataEmoji = localStorage.getItem("EmojiFillDatabase");
EmojiFillDatabase = new Array("", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
localStorage.setItem("EmojiUloziste", EmojiFillDatabase[DataEmoji]);
document.getElementById("VypsaniEmoji").innerHTML = localStorage.getItem("EmojiUloziste");
}
function EmojiFillPlus() {
localStorage.setItem("EmojiFillDatabase", parseInt(localStorage.getItem("EmojiFillDatabase")) + 1);
}
function EmojiFillMinus() {
localStorage.setItem("EmojiFillDatabase", localStorage.getItem("EmojiFillDatabase") -1);
}
function EmojiFillPridat() {
document.getElementById("EmojiCteniPridat").value = document.getElementById('EmojiCteniPridat').value + localStorage.getItem("EmojiUloziste");
}
</script>
</body>
</html> |
||
|
Časová prodleva: 7 let
|
|||
0