MyBB Community Forums

Full Version: Custom quick reply loader
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I created a custom "spinner_big" image but not just the spinner. I created the whole box so after replacing spinner_big.gif it doesn't look right.

[Image: usipdnye9grszn115k.png]

What do I need to do to replace the entire box with my image?
I've tried to find even the coding for this with no luck Confused
Well the Javascript function is located in /jscripts/general.js on about line 755 and it looks like the HTML is constructed there with Javascript:
		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";

You should be able to change these values though to do what you want.
I changed this.spinner.style.background but it didn't do anything. Any other ideas?