ich habe gerade einen kleinen Hänger, irgendwo habe ich einen Bock aber ich finde Ihn nicht kann mir jemand helfen??
Problem: meine Modulausgabe bringt mir den REX_VALUE Wert nicht sowie es soll...
ausgegeben werden soll der Wert innerhalb einer foreach ,
Modulausgabe
Code: Alles auswählen
<script type="text/javascript">
function resetborders () {
for (var i = 0; i < document.getElementsByName("wbbglink").length; i++) {
document.getElementsByName("wbbglink")[i].style.border = "1px solid #E7E8E8";
}
}
document.write("<style type='text/css'>#projectimage {visibility:visible;}</style>");
function initImage2() {
imageId = 'projectimage';
image = document.getElementById(imageId);
setOpacity(image, 0);
image.style.visibility = "visible";
fadeIn(imageId,0);
}
window.onload = function() {initImage2()}
</script>
<?php
$wbbg_pic = array();
if ("REX_FILE[1]") $wbbg_pic[] = "REX_FILE[1]";
if ("REX_FILE[2]") $wbbg_pic[] = "REX_FILE[2]";
if ("REX_FILE[3]") $wbbg_pic[] = "REX_FILE[3]";
if ("REX_FILE[4]") $wbbg_pic[] = "REX_FILE[4]";
echo '<div class="contentleft">';
echo '<div class="wbbgthumbs">';
$startbild = "";
$i = 1;
foreach ($wbbg_pic as $pic) {
$feinbild = $REX[HTDOCS_PATH].'index.php?rex_resize=REX_VALUE[6]w__'.$pic;
$classfirst = "";
if (!$startbild) {
$startbild = $feinbild;
$classfirst = 'class="wbbgfirst"';
}
$grobbild = $REX[HTDOCS_PATH].'index.php?rex_resize=REX_VALUE[5]c__REX_VALUE[5]h__'.$pic;
$s=GetImageSize($REX[HTDOCS_PATH]."files/$pic");
$fakt = $s[1]/$s[0];
$sf[0] = "REX_VALUE[6]";
$sf[1] = floor($sf[0]*$fakt);
$sg[0] = "REX_VALUE[5]";
$sg[1] = floor($sg[0]*$fakt);
echo '<div class="wbbgthumb">';
echo '<a href="'.$feinbild.'" onclick="bildanzeigeREX_SLICE_ID.src=\''.$feinbild.'\'; resetborders(); this.style.border=\'1px solid #E93002\'; initImage2(); return false;" name="wbbglink";'.$classfirst.'>';
echo '<img src="'.$grobbild.'" width="'.$sg[0].'" height="'.$sg[0].'" title="" class="wbbgthumbimg">';
echo '</a>';
echo '</div>';
echo '<div class="projectdescription">';
## Hier die Ausgabe
$description = "REX_VALUE['.$i.']";
echo $description;
echo '</div>';
echo '<div class="clean"></div>';
$i++;
}
echo '</div><!-- wbbgthumbs -->';
echo '</div><!-- contentleft -->';
echo '<div class="contentright">';
echo '<div class="wbbgbigimg"><img src="'.$startbild.'" name="bildanzeigeREX_SLICE_ID" width="'.$sf[0].'" height="400px" title="" id="projectimage"></div>';
echo '</div><!-- contenrightt -->';
?>
[ externes Bild ]
kann mir jemand weiterhelfen??
vielen Dank!!
akzentix[/img]