Hi jQueryians,
I wrote a small script that loads random images and fades from on another. It
works quite nice in FF, see here: http://www.erdeanthomas.de/
It does not work in IE6, and I have so far no clue why. Instead of fading to
other images, it display the same images every time.
The php script looks like this:
$vn = "/srv/www/vhosts/erdeanthomas.de/httpdocs/wp-content/daten/randomimages";
$verzeichnis = opendir($vn);
while($file = readdir($verzeichnis)) {
$s = @getimagesize($vn."/".$file);
if(in_array($s[2], array(1,2,3)))
$auswahl[] = $file;
}
mt_srand((double)microtime()*1000000);
$number = mt_rand(0,count($auswahl)-1);
echo "<a rel='lightbox'
href='http://www.erdeanthomas.de/wp-content/daten/randomimages/pics/".$auswahl[$number]."'><img
src='http://www.erdeanthomas.de/wp-content/daten/randomimages/".$auswahl[$number]."'></a>";
Any ideas how to solve this?
--
Jörn Zaefferer
http://bassistance.de
--
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/