Option 2 sounds like your best bet. Just store your stylesheet URLs in
JavaScript variables. Then, when a user selects a new theme, use
JavaScript to replace the URL in your link element's href attribute.

var STYLESHEET1 = http://example.com/....css
var STYLESHEET2 = http://example.com/....css

function changeStylesheet() {
  ...
  var links = document.getElementsByTagName('link');
  if (links.length) {
    var link = links[0];
    link.href = STYLESHEET2;
  }
}

- Jason

On Nov 24, 4:21 am, Prashant Lakhlani <[EMAIL PROTECTED]>
wrote:
> hi all,
>     I have an orkut application which loads with the default css. and
> once the xml for any view is loaded, it uses sendRequest function to
> refresh the part of the html which is to be changed.
>
> Now i want to implement multiple themes with it and i don't know  how
> many options i have.
> (1)basically i have an option to create multiple set of htmls and
> chage the href of the view to point to the right html at run time
> (2) i can change the css links dynamically and make the appropreate
> html changes using js
>
> please suggest some good and interesting way to me.
> thanks in advanec
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to