Заявка вселенной
Добавить в избранное Карта сайта
 
Главная / Заявка вселенной
Заявка вселенной

<?php

echo '
<script type="text/javascript">
var t = 1;
var interval;

function ajaxload() {
document.getElementById("ajaxload").style.display = "block";


if (t>=7) {
clearInterval(interval);
document.getElementById("ajaxload").style.display = "none";
document.getElementById("okform").style.display = "block";
t = 1;
}

t++;
}

function sendwish() {
if (document.getElementById("message").value && document.getElementById("vorname").value) {

document.getElementById("osnovnaya").style.visibility = "hidden";
interval = setInterval("ajaxload()", 2000);
} else {
alert("Заполните все поля!");
}
}

function closeform() {
document.getElementById("okform").style.display = "none";
document.getElementById("osnovnaya").style.visibility = "visible";

document.getElementById("vorname").value = "";
document.getElementById("message").value = "";


}

</script>


<div style="margin-left: 40px; width: 600px; height: 774px; background: no-repeat top left url(/templates/siteground-j15-126/images/wish/wish_bg.png); vertical-align: top; padding: 20px;" id="wishform">

<div id="osnovnaya">
<table style="width: 500px; position: relative; top: 50px; left: 25px;" cellspacing="10" id="glavnaya_forma">
<tr>
<td align="left" valign="top" style="color: #ffffff;">Ваше имя</td>
<td align="center" valign="middle" width="384" height="35" style="background: no-repeat top left url(/templates/siteground-j15-126/images/wish/name_bg.png);"><input type="text" id="vorname" style="width: 90%; background-color: transparent; border: none;"></td>
</tr>
<tr>
<td align="left" valign="top" style="color: #ffffff;">Заявка</td>
<td align="center" valign="middle" width="384" height="141" style="background: no-repeat top left url(/templates/siteground-j15-126/images/wish/words_bg.png);">
<textarea style="width: 90%; height: 120px; background-color: transparent; border: none;" id="message"></textarea>
</td>
</tr>
<tr>
<td align="center" valign="top" colspan="2">
<img src="/templates/siteground-j15-126/images/wish/send_but.png" id="wishbut" onClick="sendwish();" style="cursor: pointer; width: 200px;">
</td>
</tr>
</table>
</div>

<div style="position: relative; top: -160px; left: 176px; width: 228px; height: 15px; display: none;" id="ajaxload" align="center">
<span style="color: #28CD3C; font-size: 16px; font-weight: bold;">Заявка обрабатывается...</span><br />
<img src="/templates/siteground-j15-126/images/loader.gif" style="margin-top: 5px;">
</div>

<table style="font-size: 16px; font-weight: bold; color: #28CD3C; position: relative; top: -160px; left: 147px; width: 306px; display: none; border: none; background-color: transparent;" id="okform">
<tr><td align="center">
Ваша заявка успешно отправлена!<br />
Скоро ваше желание сбудется!<br /><br />
<img src="/templates/siteground-j15-126/images/wish/update_but.png" onClick="closeform();" style="cursor: pointer; width: 200px; margin-top: 5px;" />
</td></tr>
</table>

</div>

';


?>

 
Поделись статьей с друзьями!