View Single Post
  #1 (permalink)  
Old December 10th, 2004, 08:23 PM
Mantis Mantis is offline
Friend of Wrox
 
Join Date: Dec 2004
Location: London, London, United Kingdom.
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default Alternate pictures / video

Hi,

I am absolutely useless at Java but I recon this is the language needed.

alright.. where to start without getting confusing...

I store HTML documents in MySQL.. all fine.
Some of those HTML documents contain code to insert pictures or video like this one:
<img border="0" dynsrc="test2.wmv" start="mouseover" loop="0" width="208" height="98"></p>
or
<img border="0" src="Pictures/test.jpg" width="100" height="144" align="left">

What I need is a code which will automatically change the picture or video name to a 'default' picture or video, incase the original is missing.

If this isn't possible, I can write (with time!) a small program in PHP which will look for the string .gif" and will replace it with .gif" alt="nopicture.gif" but I will really prefer a clean way for doing this.. if its possible.

Thanks.
Reply With Quote