[b]wanita biasa[/b]
coba cek di page sebelah..
tadi udah nyoba bantu...
[quote=rienazzone]utk satu url css ajakan itu?
maksud ryn, kalu kita ada dua url css yg berbeda, bisa ngga dijadiin dalam satu file js?[/quote]
satuin aja css'e...
kalaupun mau disatuin didalam satu js..
yah tinggal pake 2 buah injek css
jadinya kek gini
[quote]//injek css 1
var css;
try {
css = document.createElement("link");
}catch(e) {
css = document.createElement("<link>");
}
css.setAttribute("type","text/css");
css.setAttribute("rel","stylesheet");
css.setAttribute("href","URL_CSS_1_KAMU");
css.setAttribute("media","screen, print");
document.getElementsByTagName("head")[0].appendChild(css);
//injek css 2
var css;
try {
css = document.createElement("link");
}catch(e) {
css = document.createElement("<link>");
}
css.setAttribute("type","text/css");
css.setAttribute("rel","stylesheet");
css.setAttribute("href","URL_CSS_2_KAMU");
css.setAttribute("media","screen, print");
document.getElementsByTagName("head")[0].appendChild(css);[/quote]
Last edited by kiddy (2008-06-03 02:28:46)