$(document).ready(function() { // 2. dite $("#hk-reg-dite2").hide(); $("#hk-reg-dite2-zobr").click(function() { $("#hk-reg-dite2").slideDown(); $("#hk-reg-dite2-zobr").hide(); }); // 3. dite $("#hk-reg-dite3").hide(); $("#hk-reg-dite3-zobr").click(function() { $("#hk-reg-dite3").slideDown(); $("#hk-reg-dite3-zobr").hide(); }); // 4. dite $("#hk-reg-dite4").hide(); $("#hk-reg-dite4-zobr").click(function() { $("#hk-reg-dite4").slideDown(); $("#hk-reg-dite4-zobr").hide(); }); // 2. dite $("#hk-reg2-dite2").hide(); $("#hk-reg2-dite2-zobr").click(function() { $("#hk-reg2-dite2").slideDown(); $("#hk-reg2-dite2-zobr").hide(); }); // 3. dite $("#hk-reg2-dite3").hide(); $("#hk-reg2-dite3-zobr").click(function() { $("#hk-reg2-dite3").slideDown(); $("#hk-reg2-dite3-zobr").hide(); }); // 4. dite $("#hk-reg2-dite4").hide(); $("#hk-reg2-dite4-zobr").click(function() { $("#hk-reg2-dite4").slideDown(); $("#hk-reg2-dite4-zobr").hide(); }); $("#hk-reg2-dotaznik").hide(); $("#hk-reg2-dotaznik-zobr").click(function() { $("#hk-reg2-dotaznik").slideDown(); $("#hk-reg2-dotaznik-zobr").hide(); }); $("#hk-reg2-podmreg").hide(); $("#hk-reg2-podmreg-zobr").click(function() { $("#hk-reg2-podmreg").slideDown(); }); //napoveda u jednotlivych poli $(".hk-napoveda input").focus(function() { $(".hk-reg-nap").animate({opacity: "hide", left: "230"}, "fast"); $(this).next("em").animate({opacity: "show", left: "219"}, "slow"); }); $(".hk-napoveda select").focus(function() { $(".hk-reg-nap").animate({opacity: "hide", left: "230"}, "fast"); }); // pri najeti mysi $(".hk-napoveda input").hover(function() { $(".hk-reg-nap").animate({opacity: "hide", left: "230"}, "fast"); $(this).next("em").animate({opacity: "show", left: "219"}, "slow"); }, function() { $(this).next("em").animate({opacity: "hide", left: "230"}, "fast"); }); //kontrola username $("#ujmeno").bind("keyup change focus select", function() { $.ajax({ type: "POST", url: "../../../inc/js/kontrola-username-v2.js.php?1328435291", data: "ujmeno=" + $("#ujmeno").val() + "&formtyp=" + $("#formtyp").val() + "&uid=" + $("#uid").val(), success: function(data) { $('#hk-checkuziv').html(data); } }); //$('#hk-checkuziv').text($("#ujmeno").val()); }); //schovani 4+ clanku v HK /* $(".hk-cl .hk-cl-nazvy-schovat").hide(); $(".hk-cl .hk-cl-nazvy-vice").click(function() { $(".hk-cl .hk-cl-nazvy-schovat").show(); }); */ $(".hk-cl .hk-cl-nazvy-vice").hide(); //clanky pro reg - predokna + zobr. clanku $("#hk-cl-statpookne").hide(); $("#hk-cl-zobrstat").click(function() { $("#hk-cl-predokno").hide(); $("#hk-cl-statpookne").slideDown(); }); });