Código PHP:
if ($I=1)
{
echo "<div id=\"image1\" style=\"position:absolute; overflow:hidden; left:20px; top:285px; width:330px; height:230px; z-index:10\">" ?><img src="<?php echo $imagen[1]; ?>" border="0" width=330 height=230 />
<? echo "</div>\n";
echo"<div id=\"text5\" style=\"position:absolute; overflow:hidden; left:20px; top:520px; width:500px; height:29px; z-index:16\"><div class=\"wpmd\">\n";
echo"<div><font class=\"ws12\" color=\"#000000\" face=\"Comic Sans MS\">".$texto[1]."</font></div>\n";
echo"</div></div>\n";
//return true;
}
if ($I=2)
{
echo "<div id=\"image1\" style=\"position:absolute; overflow:hidden; left:20px; top:285px; width:330px; height:230px; z-index:10\">" ?><img src="<?php echo $imagen[1]; ?>" border="0" width=330 height=230 />
<? echo "</div>\n";
echo "<div id=\"image2\" style=\"position:absolute; overflow:hidden; left:620px; top:285px; width:330px; height:230px; z-index:10\">" ?><img src="<?php echo $imagen[2]; ?>" border="0" width=330 height=230 />
<? echo "</div>\n";
echo"<div id=\"text5\" style=\"position:absolute; overflow:hidden; left:20px; top:520px; width:500px; height:29px; z-index:16\"><div class=\"wpmd\">\n";
echo"<div><font class=\"ws12\" color=\"#000000\" face=\"Comic Sans MS\">".$texto[1]."</font></div>\n";
echo"</div></div>\n";
echo"<div id=\"text6\" style=\"position:absolute; overflow:hidden; left:20px; top:830px; width:500px; height:29px; z-index:16\"><div class=\"wpmd\">\n";
echo"<div><font class=\"ws12\" color=\"#000000\" face=\"Comic Sans MS\">".$texto[3]."</font></div>\n";
echo"</div></div>\n";
//return true;
}
if ($I=3)
{
echo "<div id=\"image1\" style=\"position:absolute; overflow:hidden; left:20px; top:285px; width:330px; height:230px; z-index:10\">" ?><img src="<?php echo $imagen[1]; ?>" border="0" width=330 height=230 />
<? echo "</div>\n";
echo "<div id=\"image2\" style=\"position:absolute; overflow:hidden; left:620px; top:285px; width:330px; height:230px; z-index:10\">" ?><img src="<?php echo $imagen[2]; ?>" border="0" width=330 height=230 />
<? echo "</div>\n";
echo "<div id=\"image3\" style=\"position:absolute; overflow:hidden; left:20px; top:580px; width:330px; height:230px; z-index:10\">" ?><img src="<?php echo $imagen[3]; ?>" border="0" width=330 height=230 />
<? echo "</div>\n";
echo"<div id=\"text5\" style=\"position:absolute; overflow:hidden; left:20px; top:520px; width:500px; height:29px; z-index:16\"><div class=\"wpmd\">\n";
echo"<div><font class=\"ws12\" color=\"#000000\" face=\"Comic Sans MS\">".$texto[1]."</font></div>\n";
echo"</div></div>\n";
echo"<div id=\"text6\" style=\"position:absolute; overflow:hidden; left:20px; top:830px; width:500px; height:29px; z-index:16\"><div class=\"wpmd\">\n";
echo"<div><font class=\"ws12\" color=\"#000000\" face=\"Comic Sans MS\">".$texto[3]."</font></div>\n";
echo"</div></div>\n";
echo"<div id=\"text7\" style=\"position:absolute; overflow:hidden; left:550px; top:520px; width:500px; height:29px; z-index:16\"><div class=\"wpmd\">\n";
echo"<div><font class=\"ws12\" color=\"#000000\" face=\"Comic Sans MS\">".$texto[2]."</font></div>\n";
echo"</div></div>\n";
//return true;
}
if ($I=4)
{echo "<div id=\"image1\" style=\"position:absolute; overflow:hidden; left:20px; top:285px; width:330px; height:230px; z-index:10\">" ?><img src="<?php echo $imagen[1]; ?>" border="0" width=330 height=230 />
<? echo "</div>\n";
echo "<div id=\"image2\" style=\"position:absolute; overflow:hidden; left:620px; top:285px; width:330px; height:230px; z-index:10\">" ?><img src="<?php echo $imagen[2]; ?>" border="0" width=330 height=230 />
<? echo "</div>\n";
echo "<div id=\"image3\" style=\"position:absolute; overflow:hidden; left:20px; top:580px; width:330px; height:230px; z-index:10\">" ?><img src="<?php echo $imagen[3]; ?>" border="0" width=330 height=230 />
<? echo "</div>\n";
echo "<div id=\"image4\" style=\"position:absolute; overflow:hidden; left:620px; top:580px; width:330px; height:230px; z-index:10\">" ?><img src="<?php echo $imagen[4]; ?>" border="0" width=330 height=230 />
<? echo "</div>\n";
echo"<div id=\"text5\" style=\"position:absolute; overflow:hidden; left:20px; top:520px; width:5004px; height:29px; z-index:16\"><div class=\"wpmd\">\n";
echo"<div><font class=\"ws12\" color=\"#000000\" face=\"Comic Sans MS\">".$texto[1]."</font></div>\n";
echo"</div></div>\n";
echo"<div id=\"text6\" style=\"position:absolute; overflow:hidden; left:20px; top:830px; width:500px; height:29px; z-index:16\"><div class=\"wpmd\">\n";
echo"<div><font class=\"ws12\" color=\"#000000\" face=\"Comic Sans MS\">".$texto[3]."</font></div>\n";
echo"</div></div>\n";
echo"<div id=\"text7\" style=\"position:absolute; overflow:hidden; left:550px; top:520px; width:500px; height:29px; z-index:16\"><div class=\"wpmd\">\n";
echo"<div><font class=\"ws12\" color=\"#000000\" face=\"Comic Sans MS\">".$texto[2]."</font></div>\n";
echo"</div></div>\n";
echo"<div id=\"text8\" style=\"position:absolute; overflow:hidden; left:550px; top:830px; width:500px; height:29px; z-index:16\"><div class=\"wpmd\">\n";
echo"<div><font class=\"ws12\" color=\"#000000\" face=\"Comic Sans MS\">".$texto[4]."</font></div>\n";
echo"</div></div>\n";
//return true;
}