W3C.US

  • Increase font size
  • Default font size
  • Decrease font size
Welcome to the W3C.us

How to change the loaded page's CSS?

E-mail Print PDF

Some sites should provide the function let the user to change their pages appearance. When the user click the favorite template, the page has no reload, but change to the specific style.

To do this, single line Javascript code is enough:

document.styleSheets(i).href="/new.css";

The variable i indicates the stylesheet link index in the html source. Most simple pages only have one stylesheet, so i should be 0.

For example, the html file(test.html) content:

Last Updated on Thursday, 30 April 2009 01:56 Read more...
 

Powerful CMSs are killing Dreamweaver

E-mail Print PDF

Dreamweaver is dying, Tom Arah has announced that. I also think so, because to me, many and many pages not generated by the typical web-design software, but produced by the powerful CMS, Joomla!, Drupal, etc.

Why we choose the brower to build our pages but not the traditional software?

Last Updated on Monday, 27 April 2009 18:30 Read more...
 


Page 4 of 4

Polls

How do you find w3c.us?
 

Who's Online

We have 2 guests online

Advertisement

Featured Links:
Joomla!
Joomla! The most popular and widely used Open Source CMS Project in the world.
JoomlaCode
JoomlaCode, development and distribution made easy.
Joomla! Extensions
Joomla! Components, Modules, Plugins and Languages by the bucket load.
Joomla! Shop
For all your Joomla! merchandise.