![]() |
Replacing dynamically generated content
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:
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! |
Quote:
width:300px;height:225px width:${width}px;height:${height}px |
Thanks :) but i do not get it. :(
Do you mean, that i should change the code inside the div? I can't do that since it's generated automatically, that's why i search for a way to change the values afterwards. |
Quote:
|
How do you even know when the side should be different. If each pageload is the same or different, can't you just pass the correct size onto 2 variables and echo them there?
Else, I advise Javascript if it has to be loaded when a user performs an action. |
| All times are GMT. The time now is 08:37 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0