здравейте сички !
изкам да попитам дали мойе да се направи menu което да е направено с пада6ти бутони ?
начи ето го кода за пада6тия бутон :
<center>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>push me
</title>
<style type="text/css">
body {
background: silver;
}
.but_at {
color: silver;
background: black;
font-weight: bold;
width: 100;
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" name="push me "id="butt_1" class="but_at" value="push me "onfocus="if(this.blur)this.blur();" onclick="if(but_1height == 10)Ballancer();">
</body>
</html>
ако мое да се направи menu с такива бутони 6те е мн ефектно !
ако някой знае как може това да стане МОЛЯ да пи6е
6те има и +1
:!:
изкам да попитам дали мойе да се направи menu което да е направено с пада6ти бутони ?
начи ето го кода за пада6тия бутон :
<center>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>push me
<style type="text/css">
body {
background: silver;
}
.but_at {
color: silver;
background: black;
font-weight: bold;
width: 100;
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" name="push me "id="butt_1" class="but_at" value="push me "onfocus="if(this.blur)this.blur();" onclick="if(but_1height == 10)Ballancer();">
</body>
</html>
ако мое да се направи menu с такива бутони 6те е мн ефектно !
ако някой знае как може това да стане МОЛЯ да пи6е
6те има и +1