Размер файла: 5.44Kb
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
<script src="js/config.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="style.css"/>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico"/>
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8"/>
<title>Xmoder.wen.ru</title>
</head>
<body>
<div class="menu">¬Генерация урлов</div>
<div class="b">
<SCRIPT language="JavaScript">
<!--
// ------------- Генерация урлов ----------------------
function ProcGenUrl(p_param) {
v_from = document.forms["f_gen"].p_from.value;
v_to = document.forms["f_gen"].p_to.value;
v_len = document.forms["f_gen"].p_len.value;
v_mask = document.forms["f_gen"].p_mask.value;
setCookie("cook_from", v_from, now);
setCookie("cook_to", v_to, now);
setCookie("cook_len", v_len, now);
setCookie("cook_mask", v_mask, now);
if (!(document.forms["f_gen"].p_add.checked)) {document.getElementById('PREW').innerHTML = ""};
re = /%num%/gi;
for (i = eval(v_from); i <= eval(v_to); i++) {
v_rpl = i.toString();
if (v_rpl.length < eval(v_len)) {
v_zero="";
for (j = 1; j <= (eval(v_len) - v_rpl.length); j++) {v_zero = v_zero + "0";}
v_rpl = v_zero+v_rpl;
}
v_url = v_mask.replace(re, v_rpl);
document.getElementById('PREW').innerHTML=document.getElementById('PREW').innerHTML + "<a target=_blank href=" + v_url + ">" + v_url + "</a><br>";
}
}
//-->
</SCRIPT>
<form name="f_gen" method="post" action="">
<table width=100%>
<tr><td colspan="3">Путь с маской %num%.<br>Например: http://www/%num%.gif<br></td></tr>
<tr><td colspan="3" align=center><INPUT name="p_mask" style="width=96%" value="http://xmoder.wen.ru/pictures/%num%.jpg"></td></tr>
<tr><td width=10%>От:</td><td><input name="p_from" type="text" id="p_from" size="4" maxlength="4" value=1></td></tr>
<tr><td width=10%>До:</td><td><input name="p_to" type="text" class="input" id="p_to3" size="4" maxlength="4" value=10></td><td colspan="2" align="center"><input name="button" type="button" class="input" onClick="ProcGenUrl(0)" value="Сгенерировать"></td></tr>
<tr><td width=10%>Длина:</td><td><input name="p_len" type="text" class="input" id="p_len4" size="4" maxlength="4" value=0></td><td align=center><input class=chk type="checkbox" name="p_add" value="checkbox"> Добавить</td></tr>
<tr><td colspan="3"><br></td></tr>
<tr><td colspan="3" class=tbsml align=center><SPAN id=PREW></SPAN></td>
</table>
</form>
<SCRIPT language="JavaScript">
// ------------- Работа с кукой ----------------------
var caution = false
function setCookie(name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "")
if (!caution || (name + "=" + escape(value)).length <= 4000)
document.cookie = curCookie
else
if (confirm("Cookie exceeds 4KB and will be cut!"))
document.cookie = curCookie
}
function getCookie(name) {
var prefix = name + "="
var cookieStartIndex = document.cookie.indexOf(prefix)
if (cookieStartIndex == -1)
return null
var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length)
if (cookieEndIndex == -1)
cookieEndIndex = document.cookie.length
return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))
}
function deleteCookie(name, path, domain) {
if (getCookie(name)) {
document.cookie = name + "=" +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
"; expires=Thu, 01-Jan-70 00:00:01 GMT"
}
}
function fixDate(date) {
var base = new Date(0)
var skew = base.getTime()
if (skew > 0)
date.setTime(date.getTime() - skew)
}
var now = new Date()
fixDate(now)
now.setTime(now.getTime() + 31 * 24 * 60 * 60 * 1000)
var v_value = getCookie("cook_from");
if (v_value) document.forms["f_gen"].p_from.value = v_value;
var v_value = getCookie("cook_to");
if (v_value) document.forms["f_gen"].p_to.value = v_value;
var v_value = getCookie("cook_len");
if (v_value) document.forms["f_gen"].p_len.value = v_value;
var v_value = getCookie("cook_mask");
if (v_value) document.forms["f_gen"].p_mask.value = v_value;
</SCRIPT>
<!--------------------------->
<hr>
<!--------------------------->
<hr>
</div>
</div>
</div>
<div align="center"><div class="menu">Реклама</div>
<div class="cont">
<div align="center"><script src="js/reklhead.js" type="text/javascript"></script>
</div>
</div>
</div>
<div class="foot">
© <script src="js/imyasaita.js" type="text/javascript"></script><br/>
<!-- Ссылку убирать вам ни кто ни заприщает, но увожайте труд разробочика -->Mod by <a href="http://xmoder.wen.ru">Xmoder.wen.ru</a><br/>
</div>
<div class="counts">
Счётчики/Баннеры</br>
<script src="js/counter.js" type="text/javascript"></script>
<script language="JavaScript" src="http://free-one.ru/xml_gzip_status.php"></script>
</div>
</body>
</html>