Bonjour;

J'ai modifier un script bien connu
images defilante avec effet (sous IE ) (edj)

Mais j'ai rajouté les texte deffilants associés aux images

Je vous met le script (il est pas trop long)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
<SCRIPT LANGUAGE="JavaScript">
PortImg = new Array;
SiClickGoTo = new Array;
PortLink = new Array;
PortTxtLink = new Array;
PortTxt = new Array;
if (document.images)
	{
<?php
connexion();
$repertoire='images/portfolio/';
$i=0;
$sql = "select * from bd_portfolio order by port_id desc LIMIT 3" ;
$query = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error()); 
 while ($data = mysql_fetch_array($query)) { 
 
	echo "i".$i." = new Image;\n";
	echo "i".$i.".src = '".$repertoire.$data['port_img']."';\n";
	echo "SiClickGoTo[".$i."] = \"portfolio.php\"\n";
	echo "PortImg[".$i."] = i".$i.".src;\n";
	echo "PortLink[".$i."] = '".$data['port_link']."'\n";
	echo "PortTxtLink[".$i."] = '".$data['port_txt_link']."'\n";
	echo "PortTxt[".$i."] = '".str_replace("\r", " ", str_replace("\n", "", str_replace("<br />", "", $data['port_txt'])))."'\n";
	$i++;
    }
	 deconnexion();
	?>
 
	}
 
a = 0;
//----------------- 1ere miniature
function ejs_img_fx(img)
	{
	if(img && img.filters && img.filters[0])
		{
		img.filters[0].apply();
		img.filters[0].play();
		}
	}
 
function StartAnim()
	{
	if (document.images)
		{
document.write('<a href="#" onClick="ImgDest();return(false)"><img src="<? echo $repertoire.$data['port_img']; ?>" NAME=defil style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=100,Duration=1);BORDER: #c0c0c0 1px solid;"></a><a href="PortLink"><p id="PortTxtLink"></a></p><p id="PortTxt"></p>');    
defilimg()
		}
	else
		{
		document.write('<src="<? echo $repertoire.$data['port_img']; ?>" BORDER=0>')
		}
	}
function ImgDest()
	{
	document.location.href = SiClickGoTo[a-1];
	}
function defilimg()
	{
	if (a == 2)
		{
		a = 0;
		}
 
	if (document.images)
		{
		ejs_img_fx(document.defil)
		document.defil.src = PortImg[a];
 
		document.getElementById('PortLink').innerHTML =PortLink[a]; 
		document.getElementById('PortTxt_Link').innerHTML =PortTxtLink[a]; 
		document.getElementById('PortTxt').innerHTML =PortTxt[a]; 
 
		tempo3 = setTimeout("defilimg()",7000);
 
		a++;
		}
	}
 
	//----------------
 
</script>
Mais comme la vie n'est pas toujour bien faite
j'ai un bleme
la console javascript de FireFox me dit :
Erreur*: document.getElementById("PortLink") has no properties

j'avais deja fait cette modif sur un autre site et ça marchait
Mais la je vois pas mon erreur ....