[mythtv-users] Re: Myxer Update - This time its a BIG one! (and
probably the last one for a while....)
stef.coene at docum.org
Tue Jun 21 12:33:21 UTC 2005
On Tuesday 21 June 2005 14:19, Scott wrote:
> Rather than trying to build a composite image from a background,
> graphic elements, and text, could CSS2 positioning be used instead?
> For example, you would set the background of a <div
> class="background"> element to be the background of the MythTV
> screen. Next you would use a php function to construct a MythTV
> button but putting another graphic into a <div class="button"> with
> text contained in that <div> and use absolute positioning for the
> whole <div class="button"> element to place it at the appropriate
> location location on the <div class="background">.
> Obviously this wouldn't be fully cross browser compatible but it
> would work with Mozilla and maybe even IE6.
> You might also need to keep some meta data about the elements you're
> laying out. For example, there maybe a meta data based rule that say
> only 5 <div class="buttons"> from the theme XYZ can fit on a <div
> class="background"> because of the button height but from the theme
> ABC you could position up to 6 <div class="buttons">.
The problem is not the image handling with php (my "demo" is working as a
proof of concept), but to get the preview like the mythfrontend menu will
look like. If you want a perfect preview, you have to use the "real" code
that generates the menu in mythfrontend.
So, displaying the background and the watermarks and maybe the buttons is all
you can do with php and/or css.
More information about the mythtv-users