Grafixboy
Erfahrenes Mitglied
Hi Leute habe auf der cssPlay seite folgendes gefunden:
...das da
nun wollte ich das aber dynamisch gestalten klappt auch perfekt im Mozilla aber nicht im Internet Explorer.
...hier mein versuch der nicht im IE funktioniert
nicht wundern bei meinem Beispiel haben die Bilder (nicht die thumbs) nicht das richtige Endformat von 640x480.
Kann mir da jemand helfen ?
Vielen Dank für eure Hilfe schonmalim Vorraus.
PS: Ihr müst euch nat zuvor die CSS-Dateien runterladen um lokal es zu testen.
http://www.cssplay.co.uk/menu/css/slide_show.css
http://www.cssplay.co.uk/menu/css/slide_show_ie.css
...das da
nun wollte ich das aber dynamisch gestalten klappt auch perfekt im Mozilla aber nicht im Internet Explorer.
...hier mein versuch der nicht im IE funktioniert
nicht wundern bei meinem Beispiel haben die Bilder (nicht die thumbs) nicht das richtige Endformat von 640x480.
Kann mir da jemand helfen ?
PHP:
<?
$aset=0;
$archive="pic/thumbs/";
//$pics=directory('pics','jpg,JPG,JPEG,jpeg,png,PNG');
?>
<!--[if lte IE 6]>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<![endif]-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<link rel="stylesheet" media="all" type="text/css" href="css/demos.css" />
<link rel="stylesheet" media="all" type="text/css" href="css/slideshow.css" />
<!--[if lte IE 6]>
<link rel="stylesheet" media="all" type="text/css" href="css/slideshowie.css" />
<![endif]-->
<title></title>
<meta name="author" content="grafixboy">
</head>
<body text="#000000" link="#FF0000" alink="#FF0000" vlink="#FF0000">
<font color="#FFFFFF"><b> </b></font>
<div class="menu2">
<dl>
<dt>CSS PLaY ~ SLIDE SHOW ~ COPY</dt>
<dd>Hover the mouse over Set 1, Set 2 or Set 3 above to drop down the projector screen and show a 4x4 array of photographic slides in both portrait and landscape format.</dd>
<dd>Click the mouse on any of these photographic slides to see the 640 x 480 pixel full size photograph projected onto the screen.<br />NOTE: Opera and Safari users will need to keep the mouse button pressed to see the image.</dd>
<dd>To close the fullsize photograph click anywhere on the grey projection screen. Opera and Safari users just release the mouse button.</dd>
<dd>Moving the mouse off the grey projector screen will close the slide selection. <? echo "Bilder"?></dd>
</dl>
<ul>
<? $verzeichnis = dir("$archive");
while($datei = $verzeichnis->read()){
if($datei!="." && $datei!=".."){$anz2++;
if(!is_dir($datei)){
if(bcmod($i,16)==0){
$aset++;
echo <<<END
<ul>
<li><a href="#nogo">Set $aset
<!--[if IE 7]><!-->
</a>
<!--<![endif]-->
<table><tr><td>
<li>
END;
}
$i++;
/*else{
echo <<<END
END;
}*/
$img = @imagecreatefromjpeg("pic/thumbs/".$datei);
if ($img) {
$img_height = imageSY($img);
$img_width = imageSX($img);
ImageDestroy($img);
}
if($img_width > $img_height){
$format = "horiz";
}else if($img_width < $img_height){
$format = "vert";
}else{$format = "horiz";}
#echo "h: " . $img_height. " w: ".$img_width;
echo "<a class=\"".$format."\" href=\"#portrait$i\"><span><img src=\"pic/thumbs/".$datei."\" title=".$datei."></span><em><img src=\"pic/".$datei."\" /></em></a>\n";
if(bcmod($i,4)==0){
$j++;
if(bcmod($j,4)==0){
echo <<<END
</li>
</ul>
</td></tr></table>
<!--[if lte IE 6]>
</a>
<![endif]-->
</li>
END;
}else{
echo "<span class=\"clr\"></span>\n";}
}
}
}}
?>
</li>
</ul>
</td></tr></table>
<!--[if lte IE 6]>
</a>
<![endif]-->
</li>
</ul>
<br class="clear" />
<!--<div class="clear"> </div>-->
</div>
</body>
</html>
Vielen Dank für eure Hilfe schonmalim Vorraus.
PS: Ihr müst euch nat zuvor die CSS-Dateien runterladen um lokal es zu testen.
http://www.cssplay.co.uk/menu/css/slide_show.css
http://www.cssplay.co.uk/menu/css/slide_show_ie.css
Zuletzt bearbeitet: