Help with sophisticated replace
Posted: Sat Apr 22, 2006 1:50 pm
Hi,
I need to replace the following 2 lines:
document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n');
document.write(' CODEBASE="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,2,0" ID=flash_ad WIDTH=160 HEIGHT=260>\n');
with this line:
DrawFunction(160,260);
The only problem is that I need to extract the width and height from the first phrase and insert them into the DrawFunction.
Thanks in advance to anyone who can help
Regards,
Oren
I need to replace the following 2 lines:
document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n');
document.write(' CODEBASE="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,2,0" ID=flash_ad WIDTH=160 HEIGHT=260>\n');
with this line:
DrawFunction(160,260);
The only problem is that I need to extract the width and height from the first phrase and insert them into the DrawFunction.
Thanks in advance to anyone who can help
Regards,
Oren