Une histoire de scrollbar
Bonjour
Je patouille un site tous les 6 mois, sans connaissances et en bidouillant au fil des infos trouvées sur le net : pardon d'avance pour ma nullité.
Problème : sur ma page, j'ai un petit diaporama qui défile en continu sur toute la largeur de ma page. Tout va bien, sauf que j'ai un scrollbar moche en bas de page, que bien entendu, je veux supprimer. Ce scrollbar correspond à mon diaporama, qui s'étire sans limite sur toute la largeur des logos que je fais défiler. D'après ce que j'ai trouvé sur le net, il manquerait à ma page un bidule genre Frame ou Frameset (??glurp??), que j'ai essayé d'intégrer dans ma page en recopiant des bouts de code trouvés ça et là qui n'ont pas marché (toute la page s'en va !).
Auriez-vous la solution ?
:roll:
Voici le code de la page :
Code:
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 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
| <html xmlns="undefined">
<head>
<title>COL</title>
<Script>
var pic = new Array()
function banner(name, width, link){
this.name = name
this.width = width
this.link = link
}
pic[0] = new banner............)
var speed = 2
var kk = pic.length
var ii
var hhh
var nnn
var myInterval
var myPause
var mode = 0
var imgArray = new Array(kk)
var myLeft = new Array(kk)
for (ii=0;ii<kk;ii++){
imgArray[ii] = new Image()
imgArray[ii].src = pic[ii].name
imgArray[ii].width = pic[ii].width
hhh=0
for (nnn=0;nnn<ii;nnn++){
hhh=hhh+pic[nnn].width
}
myLeft[ii] = hhh
}
function ready(){
for (ii=0;ii<kk;ii++){
if (document.images[ii].complete == false){
return false
break
}
}
return true
}
function startScrolling(){
if (ready() == true){
window.clearInterval(myPause)
myInterval = setInterval("autoScroll()",speed)
}
}
function autoScroll(){
for (ii=0;ii<kk;ii++){
myLeft[ii] = myLeft[ii] - 1
if (myLeft[ii] == -(pic[ii].width)){
hhh = 0
for (nnn=0;nnn<kk;nnn++){
if (nnn!=ii){
hhh = hhh + pic[nnn].width
}
}
myLeft[ii] = hhh
}
document.images[ii].style.left = myLeft[ii]
}
mode = 1
}
myPause = setInterval("startScrolling()",3000)
</Script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
body {background-image: url(IMAGES/Fond.png);
background-repeat: no-repeat;}
body,td,th {font-family: Arial, Helvetica, sans-serif;
color: #FF9900;
font-size: 14px;}
a:link {color: #FF9900;
text-decoration: none;}
a:visited {color: #FF9900;
text-decoration: none;}
a:hover {color: #FF3300;
text-decoration: none;}
a:active {color: #FF9900;
text-decoration: none;}
a {font-family: Arial, Helvetica, sans-serif;
font-size: 14px;}
.Style2 {
color: #666666;
font-size: 10px;
padding-left: 40px;
}
-->
</style>
<body bgcolor='#FFFFFF'>
<Script>
for (ii=0;ii<kk;ii++){
document.write('<img space=0 hspace=0 vspace=0 border=0 height=55 style=position:absolute;top:700;left:' + myLeft[ii] + '; src=' + pic[ii].name + ' onMouseOver=stop() onMouseOut=go()></a>')
}
</Script>
<table width="159" height="427" border="0">
</table>
</body>
</html> |