Demande d'aide sur mon script rotatif

bolix Messages postés 1 Date d'inscription dimanche 5 novembre 2000 Statut Membre Dernière intervention 4 avril 2005 - 4 avril 2005 à 15:32
cs_crashtest Messages postés 105 Date d'inscription lundi 16 février 2004 Statut Membre Dernière intervention 28 août 2005 - 4 avril 2005 à 21:54
Lut a tous,
G modifier l'emplacement d'une photo sur mon script et celui ci ne marche +.
si kelkun pouvez voir se qui ne va pas se serait génial. Ca doit etre une petite merde.
le script doit faire descendre l'image centrale et 3 liens doivent se mettre a tourner o tour.
merci a tous

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>



<style>
A:hover {
BACKGROUND-COLOR: lime
}
</style>
<!--
a{text-decoration:none}
//-->
<style>
TABLE.nav TD {
BACKGROUND-COLOR: #000066; BORDER-BOTTOM: silver 3px outset; BORDER-LEFT: silver 3px outset; BORDER-RIGHT: silver 3px outset; BORDER-TOP: silver 3px outset; COLOR: white; FONT: bold 9pt Arial; PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px; WIDTH: 100px
}
TABLE.nav TD A {
COLOR: white; FONT: bold 9pt Arial; TEXT-DECORATION: none
}
TABLE.nav TD A:hover {
BACKGROUND-COLOR: blue
}
TD#search {
BACKGROUND-COLOR: #006600
}
TD#help {
BACKGROUND-COLOR: #cc6666
}
</style>
<style>
A {
TEXT-DECORATION: none
}
</style>
<style>
.fly {
COLOR: #5050ff; FONT-FAMILY: arial; FONT-SIZE: 20px; POSITION: absolute; VISIBILITY: hidden; Z-INDEX: 2
}
.logo {
COLOR: #4646ff;
FONT-FAMILY: comic;
FONT-SIZE: 80px;
LEFT: 295px;
POSITION: absolute;
TOP: 39px;
VISIBILITY: visible;
z-index: 0;
}
.desc {
COLOR: #6464ff; FONT-FAMILY: arial; FONT-SIZE: 15px; LEFT: 294px; POSITION: absolute; TEXT-ALIGN: center; TOP: 466px; VISIBILITY: hidden; WIDTH: 400px
}
BODY {

}
P {

}
A {
COLOR: #a6caf0
}
</style>
<script language="JavaScript">
<!--
/* Show an object */
function showObject(object) {
object.visibility = VISIBLE;
}


/* Hide an object */
function hideObject(object) {
object.visibility = HIDDEN;
}


/* Slide the company logo from top to middle */
function slideLogo(from, to) {
if (from < to) {
company.top = (from += 100);
setTimeout('slideLogo(' + from + ',' + to + ')', 75);
}
else initObjects();
}


/* Rotate selected objects */
function rotateObjects() {
for (var i = 0; i < pos.length; i++) {
pos[i] += inc; objects[i].visibility = 'visible';
objects[i].left = (r * Math.cos(pos[i])) + xoff
objects[i].top = (r * Math.sin(pos[i])) + yoff;
}
rotateTimer = setTimeout("rotateObjects()", 75);
}


/* Initialize selected objects for rotation */
function initObjects() {
/* Here is the array of HTML elements that will be rotated, from fly1 to fly4
Just put the shortcut variables to the HTML elements in this little array
and they will be rotated automatically */
objects = new Array(fly1, fly2, fly3, fly4);
pos = new Array();
pos[0] = 0;
for (var i = 1; i < objects.length; i++) {
pos[i] = parseFloat(pos[i - 1] + ((2 * pi) / objects.length));
}
rotateObjects();
}


/* Variables for rotating objects */
var objects;
var pos;
var r = 200; // radius
var xoff = 460; // x offset
var yoff = 300; // y offset
var pi = Math.PI; // get pi
var inc = pi / 180; // degrees per rotation cycle
var objects; // objects to be rotated
var pos; // position for objects


function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i[AUTRES.htm ]

[http:\\perso.wanadoo.fr\grumo\La Loi.htm
Loi]



[http:\\perso.wanadoo.fr\grumo\formulaires.htm
E-mail]



[http:\\perso.wanadoo.fr\grumo\Conseils.htm
Conseils]





Décret de loi



E-mail et demande de soirée



Conseils






<script language="JavaScript">


/* Simple version detection */ var isNS (navigator.appName "Netscape" && parseInt(navigator.appVersion) >= 4);
/* These constants were not discussed in the article. They can be used in place
of hidden and visible because on occasion Navigator has problems with the two */
var HIDDEN = (isNS) ? 'hide' : 'hidden';
var VISIBLE = (isNS) ? 'show' : 'visible';


/* Create shortcut variables for different absolutely positioned elements */
var fly1 = (isNS) ? document.fly1 : document.all.fly1.style;
var fly2 = (isNS) ? document.fly2 : document.all.fly2.style;
var fly3 = (isNS) ? document.fly3 : document.all.fly3.style;
var fly4 = (isNS) ? document.fly4 : document.all.fly4.style;
var company = (isNS) ? document.company : document.all.company.style;
var desc1 = (isNS) ? document.desc1 : document.all.desc1.style;
var desc2 = (isNS) ? document.desc2 : document.all.desc2.style;
var desc3 = (isNS) ? document.desc3 : document.all.desc3.style;
var desc4 = (isNS) ? document.desc4 : document.all.desc4.style;


/* Begin the sliding of the company logo */
slideLogo(0, 140);



</script>
<head>
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i[matos.htm ]

[membres.htm ]

&nbsp;


</html>

1 réponse

cs_crashtest Messages postés 105 Date d'inscription lundi 16 février 2004 Statut Membre Dernière intervention 28 août 2005
4 avril 2005 à 21:54
Salut alors c'est simple tu as boulié la ligne :


visité mon site thx : http://crashtest.fr.nr


Mes Générateurs HTML et JS (fonction sous IE et FireFox) : http://crashtest666.serveftp.net
0
Rejoignez-nous