BananAlbum et positionnement CSS

Fermé
niko.la - 7 févr. 2008 à 13:07
 dryway - 10 sept. 2010 à 09:56
Bonjour à tous,

Alors voilà, j'ai un problème avec un album photo créé à partir du logiciel Jalbum et son positionnement CSS dans une page.

Mon problème est à l'adresse suivante : http://www.dominiqueguillo.com/album/album.php

Comme vous pouvez le voir en cliquant sur le lien, ma page est constituée de cadres fixes en CSS (menu, en-tête et pied de page).
Et dans cette page, l'album photo passe par dessus l'en-tête et le pied de page lorsqu'on fait défiler... Je pense qu'il faut utiliser la propriété z-index, mais rien n'y fait je n'y arrive pas. Je pense aussi que le problème vient peut-être du script qui régit l'album, mais je n'y connaît rien en script...

Voici le code PHP de ma page :

<title>DominiqueGuillo.com : site officiel de Dominique Guillo
- photos</title>


<meta name="description" content="Site officiel de Dominique Guillo, l'acteur, réalisateur et chanteur." />

<meta name="keywords" content="dominique, guillo, guillot, site, officiel, crim, crim', sisko, siskowski, suspectes, moissons, océan, duval, moretti, megalopolis, acteur, realisateur, réalisateur, chanteur" />

<meta name="author" content="Nicolas BURGESS" />

<meta name="identifier-url" content="dominiqueguillo.com" />

<meta name="revisit-after" content="7 days" />

<meta name="robots" content="index, follow" />

<link rel="stylesheet" media="screen" type="text/css" title="Exemple" href="design.css" />
<script type="text/javascript" src="res/scripts.js"></script>
</head>


<body>

<div class="entete">
<?php include("entete1.php");
?></div>

<div class="menu">
<?php include("menu1.php");
?></div>

<div class="corps">
<div style="text-align: center;"><font color="white" face="Century Gothic" size="7">Photos</font></div>

<br />

<script type="text/javascript">
document.title = "photos";
respath = "res/";addvars = "&jalbum=true";
bgcolor = "#000000";
imgcolor = "#000000";
linecolor = "#999999";
addBananAlbum();
</script>

</div>

<div class="pied">
<?php include("pied1.php");
?></div>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2136877-1";
urchinTracker();
</script>
</body>
</html>

La feuille CSS qui régit la page :

a:link {
text-decoration : none;
color : #808080;
font-family : Verdana;
}
a:visited {
text-decoration : none;
color : #808080;
font-family : Verdana;
}
a:active {
text-decoration : none;
color : #808080;
font-family : Verdana;
}
a:hover {
text-decoration : underline;
color : #808080;
font-family : Verdana;
}

body
{
background-color: #000000;
}

.entete
{
width: 100%;
position: fixed;
top: 0px;
left: 0px;
right: 0px;
z-index: 1;
height: 50px;
background-color: #000000;
text-align: right;
border-bottom: 2px solid #808080;
}

.pied
{
position: fixed;
bottom: 0px;
left: 0px;
right: 0px;
height: 50px;
width: 100%;
z-index: 1;
text-align: center;
background-color: #000000;
border-top: 2px solid #808080;
padding-left: 90px;
}

.menu
{
text-align: left;
width: 170px;
height: auto;
position: fixed;
border-right: 2px solid #808080;
background-color: #000000;
left: 0px;
margin-left: 5px;
}

.corps
{
padding-left: 180px;
padding-top: 50px;
padding-bottom: 50px;
background-color: #000000;
text-align: justify;
z-index: 0;
}

.plan
{
padding-left: 180px;
padding-top: 50px;
padding-bottom: 50px;
background-color: #000000;
text-align: center;
}

Et enfin le script généré par Jalbum qui régit l'album...

function addBananAlbum() {
tmpbgcolor = bgcolor.replace("#","0x");
tmplinecolor = linecolor.replace("#","0x");
tmpimgcolor = imgcolor.replace("#","0x");

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload2.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="bananalbum"><param name="movie" value="'+respath+'BananAlbum.swf?browser=true&bgcolor='+tmpbgcolor+'&imgcolor='+tmpimgcolor+'&linecolor='+tmplinecolor+addvars+'" /><param name="loop" value="false" /><param name="quality" value="best" /><PARAM NAME=bgcolor VALUE='+bgcolor+'><param name="allowFullScreen" value="true" /><embed src="'+respath+'BananAlbum.swf?browser=true&bgcolor='+tmpbgcolor+'&imgcolor='+tmpimgcolor+'&linecolor='+tmplinecolor+addvars+'" loop="false" quality="best" bgcolor='+bgcolor+' allowFullScreen="true" width="100%" height="100%" name="bananalbum" type="application/x-shockwave-flash" pluginspage="https://get.adobe.com/flashplayer/" /></object>');
}

function downloadURL(theURL) {
w = 240;
h = 180;
x = (screen.width-w)/2;
y = (screen.height-h)/2;
downloadWin = window.open(theURL,"BananAlbum","status=yes,toolbar=no,resizable=yes,scrollbars=no,location=no,menubar=no,left="+x+",top="+y+",width="+w+",height="+h+"");
window.focus();
}

download = 0;
function downloadWin(theURL) {
image = theURL;
w = 240;
h = 180;
download = download+1;
border = 36;
x = (screen.width-w)/2;
y = (screen.height-h)/2;
window._w = window.open(window.respath+"download.html?image="+theURL,"BananAlbum"+download,"status=no,toolbar=no,resizable=no,scrollbars=no,location=no,menubar=no,left="+x+",top="+y+",width="+w+",height="+h+"");
window._w.image = theURL;
}
function movieWin(theURL) {
movie = theURL;
w = 740;
h = 580;
download = download+1;
x = (screen.width-w)/2;
y = (screen.height-h)/2;
window._w = window.open(theURL,"BananAlbum"+download,"status=yes,toolbar=no,resizable=yes,scrollbars=no,location=no,menubar=no,left="+x+",top="+y+",width="+w+",height="+h+"");
}
function resizeWin(image) {
var detect = navigator.userAgent.toLowerCase();
correctW = 8;
correctH = screen.height-screen.availHeight;
if (image.width<screen.availWidth && image.height<screen.availHeight) {
newWidth = image.width;
newHeight = image.height;
} else {
screenWH = screen.availWidth/(screen.availHeight-correctH);
imageWH = image.width/image.height;
if (screenWH>imageWH) {
// use height...
newHeight = screen.availHeight-border-correctH;
newWidth = newHeight*imageWH;
} else {
// use width...
newWidth = screen.availWidth-border;
newHeight = newWidth/imageWH;
}
}
if (document.all) { // IE
if (navigator.appVersion.indexOf("Mac")>-1){
window._w.moveTo((screen.width-newWidth)/2,(screen.height-newHeight)/2-correctH);
window._w.resizeTo(newWidth,newHeight-1);
} else {
window._w.moveTo((screen.width-newWidth)/2,(screen.height-newHeight-correctH)/2);
window._w.resizeTo(newWidth+correctW,newHeight+correctH);
}
} else { // Mozilla
if (navigator.appVersion.indexOf("Mac")>-1){
if (detect.indexOf("safari")>-1) {
window._w.moveTo((screen.width-newWidth)/2,(screen.height-newHeight)/2);
window._w.resizeTo(newWidth,newHeight+correctH);
} else {
window._w.moveTo((screen.width-newWidth)/2,(screen.height-newHeight)/2-correctH);
window._w.resizeTo(newWidth+correctW,newHeight);
// one more time for FireFox!
window._w.moveTo((screen.width-newWidth)/2,(screen.height-newHeight)/2-correctH);
}
} else {
window._w.moveTo((screen.width-newWidth)/2,(screen.height-newHeight+correctH)/2-correctH);
window._w.resizeTo(newWidth+correctW,newHeight+correctH);
} }
}
function showDiv() {
document.getElementById('imgShow').style.visibility="visible";
}

Merci d'avance de votre aide!
Nicolas

1 réponse

Salut,


je n'ai pas bien compris ton problème.
as-tu réussi à le résoudre ?

J'utilise bananAlbum dans mon site, j'ai eu des petits problèmes au départ mais maintenant j'arrive bien à la positionner et à le gérer.
Peut être que je peux t'aider.

al.ex
0
comment faire pour telecharger une photo
0
comment faire pour telecharger une photo sur un site qui utilise bananalbum
0