Copy and replace
Posted: Sat Oct 06, 2007 9:49 am
Hi,
I have over a hundred HTML files with a unique JPG picture name in it. Want I want is to copy the JPG file name and replace with a new code .
Example:
File name HTML file: N_art_13.html (or N_art_256.html)
Source:
<IMG SRC="b_13.jpg" ALT="Artikel 111" BORDER="0">
Replace into:
<a rel="lightbox" href="b_13.jpg">
<img src="b_13.jpg" width="300" height="261" class="style11"></a>
Number in filename (13) is the same as in d the code.
I hope that you can help me.
Thanks in advance,
Geert
I have over a hundred HTML files with a unique JPG picture name in it. Want I want is to copy the JPG file name and replace with a new code .
Example:
File name HTML file: N_art_13.html (or N_art_256.html)
Source:
<IMG SRC="b_13.jpg" ALT="Artikel 111" BORDER="0">
Replace into:
<a rel="lightbox" href="b_13.jpg">
<img src="b_13.jpg" width="300" height="261" class="style11"></a>
Number in filename (13) is the same as in d the code.
I hope that you can help me.
Thanks in advance,
Geert