Hi.
There are some embedded videos. On a certain template file i'd like to display the videos in a different size. 300x225 -> 600x400
Here's an example where the changes have to be done:
PHP Code:
<div class="entry">
<span class="vvqbox vvqvimeo" style="width:300px;height:225px;"><span id="vvq-35-vimeo-1"><ahref="http://www.vimeo.com/3846698">http://www.vimeo.com/3846698</a></span></span>
<script type="text/javascript">
swfobject.embedSWF("http://www.vimeo.com/moogaloop.swf", "vvq-35-vimeo-1", "300", "225", "9", vvqexpressinstall, { "wmode": "opaque", "allowfullscreen": "true", "server": "www.vimeo.com", "clip_id": "3846698", "show_portrait": "0", "show_title": "0", "show_byline": "0", "fullscreen": "1", "color": "FFFFFF" }, vvqparams, vvqattributes);
</script>
</div>
The problem is, that everything between <div class="entry"> and </div> is allways different.
I guess the theory is like this:
1. Search between <div class="entry"> and </div> for 300 and 225
2. Replace every 300 with 600 and every 225 with 400.
I stumbled accross preg_replace and str_replace etc., read the manuals, read tons of other articles and stuff, but did not came up with a sollution.
Im absolutely new to php and only familiar with html and css.
Please help! :)
Thank you!