***
Коды хэллоуинских рандомов
Страница: 1
Сообщений 1 страница 8 из 8
Поделиться22019-11-01 17:26:10
первый день, 5 человек,
осколки
Код:
<div id="halloween_people"></div>
<script type="text/javascript">var peoples = new Array(
"00",
"https://forumstatic.ru/files/0018/2c/5b/98123.png", "https://forumstatic.ru/files/0019/fe/b3/31969.png", "top: 320px; margin-left: -20px;",
"https://forumstatic.ru/files/0018/2c/5b/27631.png", "https://forumstatic.ru/files/0019/fe/b3/14491.png", "top: 220px; margin-left: 200px;",
"https://forumstatic.ru/files/0018/2c/5b/72937.png", "https://forumstatic.ru/files/0019/fe/b3/26951.png", "top: 220px; margin-left: 900px;",
"https://forumstatic.ru/files/0018/2c/5b/86057.png", "https://forumstatic.ru/files/0019/fe/b3/60424.png", "top: 520px; margin-left: 850px;",
"https://forumstatic.ru/files/0018/2c/5b/72999.png", "https://forumstatic.ru/files/0019/fe/b3/11337.png", "top: 600px; margin-left: 100px;",)
var varianthall = Math.round(Math.random()*5)+1;
var variantdiv = document.getElementById('halloween_people');
if (varianthall <=5) {
var hallid = 1+(varianthall-1)*3;
variantdiv.innerHTML += "<a href='"+peoples[hallid+1]+"'><div style='width: 100px; height: 100px; position: absolute; text-align: center; "+peoples[hallid+2]+"'><img src='"+peoples[hallid]+"' title='нажми меня'></div></a>"}
</script>Поделиться32019-11-01 17:26:31
второй день, 5 человек
тыквы
Код:
<div id="hall_pump" style="position: absolute; top: 0px; margin-left: 0px; background: url(https://forumstatic.ru/files/0018/2c/5b/81929.gif) top center no-repeat; width: 50px; display: none; height: 50px;" onclick="pidorasi()"></div>
<style>#hall_pump {cursor: pointer}</style>
<script type="text/javascript">
var k = 1;
var pumpkin = Math.round(Math.random()*3)+1;
var chastota = 50;
var pumpkins = new Array("00",
"https://forumstatic.ru/files/0019/fe/b3/16580.png",
"https://forumstatic.ru/files/0019/fe/b3/25912.png",
"https://forumstatic.ru/files/0019/fe/b3/26271.png",
"https://forumstatic.ru/files/0019/fe/b3/18537.png");
if ( Math.round(Math.random()*chastota) <= 1 ) {
document.getElementById('hall_pump').style.display = 'block';
}
function pidorasi()
{
if (k < 3)
{document.getElementById('hall_pump').style.top = Math.round(Math.random()*800)+'px';
document.getElementById('hall_pump').style.margin = "0 0 0 "+Math.round(Math.random()*800)+'px';
k = k+1}
else {
document.getElementById('hall_pump').innerHTML = '<a href="'+pumpkins[pumpkin]+'"><div style="width: 100%; height: 100%;"></div></a>';
window.open(pumpkins[pumpkin]);}
}
pidorasi();
</script>Поделиться42019-11-01 22:10:32
------------------------------
ЗАНОВО
Поделиться52019-11-01 22:12:17
ДИМОША
Код:
<a href="https://forumstatic.ru/files/0019/fe/b3/99600.png" target="_blank"><div id="hall_pump2" style="position: absolute; top: 20px; left: -100px; background: url(https://forumstatic.ru/files/0018/2c/5b/66129.gif) top center no-repeat; width: 80px; display: none; height: 100px; z-index: 10000;"></div></a>
<style>#hall_pump2 {cursor: pointer;
-webkit-animation: cloud_one 15s linear 1;
-moz-animation: cloud_one 15s linear 1;
-o-animation: cloud_one 15s linear 1;}
@-webkit-keyframes cloud_one {
0% {left: -100px;}
95% {left: 90%; opacity: 1;}
100%{left: 100%; opacity: 0;}
}
</style>
<script type="text/javascript">
var k = 1;
var chastota = 1;
var vibor = 10;
var kolvo = 5;
var pumpkin = Math.round(Math.random()*(kolvo-1)+1);
var rand = Math.round(Math.random()*chastota);
a = window.location.href;
b = 'https://hanamine.rusff.me/viewtopic.php?id=2';
c = b.length-1;
if (a[c] == b[c] && a[c-1] == b[c-1]) {
if ( rand == vibor ) {document.getElementById('hall_pump2').style.display = 'block';}
}
</script>Поделиться62019-11-01 22:22:23
ТЫКВЫ
Код:
<div id="hall_pump" style="position: absolute; top: 0px; margin-left: 0px; background: url(https://forumstatic.ru/files/0018/2c/5b/81929.gif) top center no-repeat; width: 50px; display: none; height: 50px; z-index: 10000;" onclick="pidorasi()"></div>
<style>#hall_pump {cursor: pointer}</style>
<script type="text/javascript">
var k = 1;
var chastota = 30;
var vibor = 15;
var kolvo = 4;
var pumpkin = Math.round(Math.random()*(kolvo-1)+1);
var pumpkins = new Array("00",
"https://forumstatic.ru/files/0019/fe/b3/16580.png",
"https://forumstatic.ru/files/0019/fe/b3/25912.png",
"https://forumstatic.ru/files/0018/2c/5b/35783.png",
"https://forumstatic.ru/files/0019/fe/b3/18537.png");
var rand = Math.round(Math.random()*chastota);
/* ЕСЛИ РАНДОМ СОВПАДАЕТ с vibor */
if ( rand == vibor ) {document.getElementById('hall_pump').style.display = 'block';}
/* ПЕРЕМЕЩЕНИЕ ТЫКВ */
function pidorasi()
{
if (k < 8)
{document.getElementById('hall_pump').style.top = Math.round(Math.random()*800)+'px';
document.getElementById('hall_pump').style.margin = "0 0 0 "+Math.round(Math.random()*800)+'px';
if (k < 7) {}
else {document.getElementById('hall_pump').innerHTML = '<a href="'+pumpkins[pumpkin]+'" target="_blank"><div style="width: 100%; height: 100%;"></div></a>';}
k = k+1}
else {}
}
pidorasi();
</script>Поделиться72019-11-01 22:56:52
ОСКОЛОЧКИ
Код:
<div id="halloween_people2"></div>
<script type="text/javascript">var peoples = new Array(
"00",
"https://forumstatic.ru/files/0018/2c/5b/13791.png", "https://forumstatic.ru/files/0019/fe/b3/42770.png", "top: 100px; margin-left: -10px;",
"https://forumstatic.ru/files/0018/2c/5b/24721.png", "https://forumstatic.ru/files/0019/fe/b3/35214.png", "top: 20px; margin-left: 200px;",
"https://forumstatic.ru/files/0018/2c/5b/39767.png", "https://forumstatic.ru/files/0019/fe/b3/57436.png", "top: 220px; margin-left: 870px;",
"https://forumstatic.ru/files/0018/2c/5b/39956.png", "https://forumstatic.ru/files/0019/fe/b3/30496.png", "top: 250px; margin-left: 700px;",
"https://forumstatic.ru/files/0018/2c/5b/21308.png", "https://forumstatic.ru/files/0019/fe/b3/94012.png", "top: 600px; margin-left: 600px;",)
var varianthall = Math.round(Math.random()*120)+1;
var variantdiv = document.getElementById('halloween_people2');
if (varianthall <=5) {
var hallid = 1+(varianthall-1)*3;
variantdiv.innerHTML += "<a href='"+peoples[hallid+1]+"'><div style='width: 100px; height: 100px; position: absolute; text-align: center; "+peoples[hallid+2]+"'><img src='"+peoples[hallid]+"' title='нажми меня'></div></a>"}
</script>Поделиться82019-11-02 16:58:50
Код:
<!--HTML-->
<div class="igla"></div>
<div class="igla" style="font-family: Sevenet7Cyr; color: #8e4921; font-size: 30px;"></div>
<div class="igla"></div>
<script type="text/javascript">
window.onload = function(){
(function(){
var date = new Date(), div = document.getElementsByClassName('igla');
div[0].innerHTML = 'Текущее время: 00:'+date.getMinutes()+':'+date.getSeconds();
div[1].innerHTML = 'Обратный отсчет: 00:'+(60-date.getMinutes())+':'+(60-date.getSeconds());
if (date.getSeconds() > 30 && date.getSeconds() <= 60)
{div[2].innerHTML = 'осколок';}
else {div[2].innerHTML = ''}
window.setTimeout(arguments.callee, 1000);
})();
};
</script>
<!--HTML-->
Страница: 1





























