I have a webpage up and running and I have something like 200 photos I want on my webpage. It would take me a lot of time cutting and pasting code for all these pictures in html. How can I do this much easier with perl?
Let's say I want to load the images from a dir.
All have the the name: My Pictures0001, My Pictures0002, My Pictures0003 and so on.
(I can change the names to something easier. like just 0001, 0002,0003 and so on.)
It may take a large script to do this, won't it?
Does anybody know of a good script who can do this, or somebody want's to create one? I want to load the pictures in a table with 3 in the weight.
Like this:
<TR>
<TD><IMG SRC="image.jpg" BORDER="0" WIDTH="50" HEIGHT="50" ALIGN="bottom" ALT=""></TD>
<TD><IMG SRC="image.jpg" BORDER="0" WIDTH="50" HEIGHT="50" ALIGN="bottom" ALT=""></TD>
<TD><IMG SRC="image.jpg" BORDER="0" WIDTH="50" HEIGHT="50" ALIGN="bottom" ALT=""></TD>
</TR>
<TR>
<TD><IMG SRC="image.jpg" BORDER="0" WIDTH="50" HEIGHT="50" ALIGN="bottom" ALT=""></TD>
<TD><IMG SRC="image.jpg" BORDER="0" WIDTH="50" HEIGHT="50" ALIGN="bottom" ALT=""></TD>
<TD><IMG SRC="image.jpg" BORDER="0" WIDTH="50" HEIGHT="50" ALIGN="bottom" ALT=""></TD>
</TR>
</TABLE>
Can this be done easily?
Thanks.
- perlman
Let's say I want to load the images from a dir.
All have the the name: My Pictures0001, My Pictures0002, My Pictures0003 and so on.
(I can change the names to something easier. like just 0001, 0002,0003 and so on.)
It may take a large script to do this, won't it?
Does anybody know of a good script who can do this, or somebody want's to create one? I want to load the pictures in a table with 3 in the weight.
Like this:
Code:
<TABLE BORDER="0"> <TR>
<TD><IMG SRC="image.jpg" BORDER="0" WIDTH="50" HEIGHT="50" ALIGN="bottom" ALT=""></TD>
<TD><IMG SRC="image.jpg" BORDER="0" WIDTH="50" HEIGHT="50" ALIGN="bottom" ALT=""></TD>
<TD><IMG SRC="image.jpg" BORDER="0" WIDTH="50" HEIGHT="50" ALIGN="bottom" ALT=""></TD>
</TR>
<TR>
<TD><IMG SRC="image.jpg" BORDER="0" WIDTH="50" HEIGHT="50" ALIGN="bottom" ALT=""></TD>
<TD><IMG SRC="image.jpg" BORDER="0" WIDTH="50" HEIGHT="50" ALIGN="bottom" ALT=""></TD>
<TD><IMG SRC="image.jpg" BORDER="0" WIDTH="50" HEIGHT="50" ALIGN="bottom" ALT=""></TD>
</TR>
</TABLE>
Can this be done easily?
Thanks.
- perlman