1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Bannière bas</title>
<script type="text/javascript">
var pos=97
var running='no'
var moveup;
var movedown;
function Moveup(){
banniere=document.getElementById('mp3player')
if(running=='down'){clearInterval(movedown)}
if (running=='up'){return false;}
moveup=setInterval(function(){
if(pos<83){clearInterval(moveup);
running='no'}
else{banniere.style.top=pos+"%";
pos--;
running='up';}
},1);
}
function Movedown (){
banniere=document.getElementById('mp3player')
if (running=='up'){clearInterval(moveup);}
if (running=='down'){return false;}
movedown=setInterval(function(){
if(pos>97){clearInterval(movedown);
running='no'}
else{banniere.style.top=pos+"%";
pos++;
running='down';}
},1);
}
</script>
</head>
<body style="overflow:hidden;margin:0px;height:100%;">
<div id="mp3player" style="position:absolute; left:0px; top:97%; width:100%; font-size:12px;height:200px;cursor:pointer; background-color:violet" onclick="Moveup()">
<a href="javascript:void(0)" style="font-size:20px;" onclick="Moveup()">Menu</a>
<div style="background-color:yellow;color:white;">
<input type="button" onclick="Movedown()" value="x" style="float:right;width:20px;height:20px;margin:0;padding:0;line-height:5px;" /><br />
<a href="javascript:alert('coucou 1')" onclick="Movedown()">lien 1</a><br />
<a href="javascript:alert('coucou 2')" onclick="Movedown()">lien 2</a><br />
<a href="javascript:alert('coucou 3')" onclick="Movedown()">lien 3</a><br />
<a href="javascript:alert('coucou 4')" onclick="Movedown()">lien 4</a><br />
</div>
</div>
</body>
</html> |
Partager