[quote=tracehendri]udah Bos Tapi injec apa itu??? gak ngerti nih
[/quote]
neh css inject
[quote]//css injection
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");
css.setAttribute("media","screen, print");
document.getElementsByTagName("head")[0].appendChild(css);[/quote]
neh js inject
[quote]//js injection
var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "URL JS KAMU";
document.getElementsByTagName("head")[0].appendChild(myjs);[/quote]
Last edited by kiddy (2008-05-11 23:56:27)