reset and begin
3/24/2010

cách thay đổi giao diện dùng javascipt

function load_stylesheet(filename)
{
var css = document.createElement('link');
css.rel = 'stylesheet';
css.type = 'text/css';
css.href = filename;
document.body.appendChild(css);
if (debug) {
monitor(dynStyles, filename);
}

cookieUser.setSubValue('theme', filename);
}

html

<div class="chonmau">
<img src="anh"
onclick="load_stylesheet('linkxanh.css')" alt="xanh" />
<img src="anh2"
onclick="load_stylesheet('linkdo.css')" alt="đỏ" />
</div>


Bloger Comments
G+ Comments
Comments FaceBook

No comments:

List

Profiles Information


About me : Nothing is 1 vài thứ - 1985

Places I've Lived : I Hà Nội

Home Page : http://www.shimivn.blogspot.com/

Think : 1:1000000000

Languages spoken : Vietnamese,English.

Mobile : sony C2305

dell : i3-Ram 3GB- HDD 250GB .