change Style Sheet by programming

This is a discussion on change Style Sheet by programming within the PHP General forums, part of the PHP Programming Forums category; Hi, I'm creating a Class which should allow user to setup the default theme CSS file he would like ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-07-2007
Alain Roger
 
Posts: n/a
Default change Style Sheet by programming

Hi,

I'm creating a Class which should allow user to setup the default theme CSS
file he would like to use to render a class object.
therefore i have a simple function :

public function SetTheme(string $ThemeName)
{
$this->m_ThemeUsed = $ThemeName;
}

which set the theme (CSS file) to use to render my object.

However, how can i tell to my class to render or update his render with new
CSS file theme ?
can it be possible to provoke something like a refresh ?

Or it is only a CSS or JS topic ?

thanks a lot,

--
Alain
------------------------------------
Windows XP SP2
PostgreSQL 8.1.4
Apache 2.0.58
PHP 5

Reply With Quote
  #2 (permalink)  
Old 03-07-2007
Casey Chu
 
Posts: n/a
Default Re: [PHP] change Style Sheet by programming

I don't really understand your question, but...

http://www.quirksmode.org/dom/changess.html
http://www.quirksmode.org/book/examp...own/index.html

On 3/6/07, Alain Roger <raf.news@gmail.com> wrote:
> Hi,
>
> I'm creating a Class which should allow user to setup the default theme CSS
> file he would like to use to render a class object.
> therefore i have a simple function :
>
> public function SetTheme(string $ThemeName)
> {
> $this->m_ThemeUsed = $ThemeName;
> }
>
> which set the theme (CSS file) to use to render my object.
>
> However, how can i tell to my class to render or update his render with new
> CSS file theme ?
> can it be possible to provoke something like a refresh ?
>
> Or it is only a CSS or JS topic ?
>
> thanks a lot,
>
> --
> Alain
> ------------------------------------
> Windows XP SP2
> PostgreSQL 8.1.4
> Apache 2.0.58
> PHP 5
>

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0