MyBB Central

Full Version: Edit the loading box?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,
me and my friend we're wondering how to change the background of the loading box [Image: spinner_big.gif]... Thanks!
It's coded directly in the javascript. You'll have to edit the core files.
Ok thanks... Which file(s)?
Edit this section of general.js

Code:
        this.spinner = document.createElement("div");
        this.spinner.style.border = "1px solid #000000";
        this.spinner.style.background = "#FFFFFF";
        this.spinner.style.color = "#000000";
        this.spinner.style.position = "absolute";
        this.spinner.style.zIndex = 1000;
        this.spinner.style.textAlign = "center";
        this.spinner.style.verticalAlign = "middle";
        this.spinner.style.fontSize = "13px";

        this.spinner.innerHTML = "<br />"+image+"<br /><br /><strong>"+loading_text+"</strong>";
        this.spinner.style.width = this.width + "px";
        this.spinner.style.height = this.height + "px";
        this.spinner.style.top = top + "px";
        this.spinner.style.left = left + "px";
        this.spinner.id = "spinner";
        owner.insertBefore(this.spinner, owner.firstChild);
Thanks worked like a charm Smile