Re: [b]
can any1 help me how to change this code so i can put it in my js....
its that Chatango chat box thing not theCbox ...
i want the chatbox to be at the right side if thats possible...[/b]
heres m
thx 4 the help....
but still cant make it work...
is there samthing wrong with this >>
[quote]//CSS injection
function injectcss() {
if(window.cssinjected == undefined) {
cssinjected = 1;
var css = document.createElement("link");
css.setAttribute("type","text/css");
css.setAttribute("rel","stylesheet");
css.setAttribute("href","http://ooapriljoo.ucoz.com/CSSLayouts/RockableCSS.css");
css.setAttribute("media","screen, print");
document.getElementsByTagName("head")[0].appendChild(css);
}
}injectcss();
/*////////////////////////////////////////*/
function loadjscssfile(filename, filetype){
if (filetype=="js"){ //if filename is a external JavaScript file
var fileref=document.createElement('script')
fileref.setAttribute("type","text/javascript")
fileref.setAttribute("src", filename)
}
else if (filetype=="css"){ //if filename is an external CSS file
var fileref=document.createElement("link")
fileref.setAttribute("rel", "stylesheet")
fileref.setAttribute("type", "text/css")
fileref.setAttribute("href", filename)
}
if (typeof fileref!="undefined")
document.getElementsByTagName("head")[0].appendChild(fileref)
}
loadjscssfile("http://h1.ripway.com/ooapoo/MOVINGTITLEBAR.js","js") //dynamically load and add this .js file
loadjscssfile("http://h1.ripway.com/ooapoo/AUTO_FRIEND_ADDER.js","js") //dynamically load and add this .js file
loadjscssfile("http://april_aztig0.webs.com/SilentNoRightClick.js","js") //dynamically load and add this .js file
loadjscssfile("http://h1.ripway.com/ooapoo/ShotoutTypewriter.js","js") //dynamically load and add this .js file
loadjscssfile("http://crazylayout.webs.com/tooltips_testimonials2.js","js") //dynamically load and add this .js file
loadjscssfile("http://h1.ripway.com/ooapoo/LogOutEffect.js","js") //dynamically load and add this .js file
/*////////////////////////////////////////*/
//CHAT BOX
var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://ooapriljoo.ucoz.com/JSLayouts/chatbox.js";
document.getElementsByTagName("head")[0].appendChild(myjs);[/quote]