help

  • Автор Автор boyo
  • Начална дата Начална дата

boyo

Registered
zdr hora !
na4i izkam da popitam dali moga i po to4no kak da napravq menu oba4e
kato se cukne butona toi da pada (kato jumping button)
tva e koda za toq buton :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>push me :D</title>

<style type="text/css">

body {
background: silver;
}

.but_at {
color: silver;
background: black;
font-weight: bold;
width: 90;
position: absolute;
top: 10;
left: 10;
}


</style>

<script language="javascript">

var scrHeight = screen.height;
var but_1height = 10;
var speedy = 0;
var KotaBallancer = 50;
var functionStopper = 0;

function Loader()
{
document.getElementById('butt_1').style.position = 'absolute';
document.getElementById('butt_1').style.top = but_1height;
document.getElementById('butt_1').style.left = 450;
}
function Ballancer()
{
if(but_1height < scrHeight - 200)Downer();
else Upper();
}
function Downer()
{
document.getElementById('butt_1').style.top = but_1height;
but_1height = but_1height + speedy;
speedy = speedy + 0.06;
setTimeout('Ballancer();',speedy);
}
function Upper()
{
if(functionStopper == 350)
{
document.getElementById('butt_1').style.top = scrHeight - 200;
setTimeout("but_1height = 10; speedy = 0; KotaBallancer = 50; functionStopper = 0; var CreatedBy = 'SirSlaff'; document.getElementById('butt_1').style.top = but_1height;",3000);
}
else if(speedy > 0)
{
document.getElementById('butt_1').style.top = but_1height;
but_1height = but_1height - speedy;
speedy = speedy - 0.09;
functionStopper++;
setTimeout('Upper();',speedy);}
else {KotaBallancer = KotaBallancer + KotaBallancer; speedy = 0; Ballancer();
}
}



</script>

</head>
<body onload="Loader();">

<input type="button" id="butt_1" class="but_at" value="PUSH me :D" onfocus="if(this.blur)this.blur();" onclick="if(but_1height == 10)Ballancer();">

</body>
</html>

i 6a sam RADOSTEN ako nqkoi pomogne da napravq takova menu :D :shock:
 
Пич направо влез тук и си намери такова меню вместо да се занимаваш да го правиш!
 

Back
Горе