So I've had this idea for a while to use on page script to create HP and Exp bars, which I realised would take a huge amount of script, but only realised just how much when I actually made it.
In order to do this, I created script created variable %EXPPERC, which is the percentage that the %EXP variable is of the %MAXEXP. In the link going to my stats page (where the bar is), I have in the link script:
%EXPPERC:= (%EXP*100)/%MAXEXP
Then I tried to create a huge chunk of on page script which checks for every integer between up to 100 to show the respective number of empty spaces (using ) with background colours (to give a solid bar effect), gradually adding a single space bar coloured slightly different for each consecutive value to give a nice, building gradient effect. I also spent ages making my own exp bar with a transparent inside so the bar is a bit more fancy and not just a block of colour. A full exp bar would look like this:

But, very very sadly, there seems to be a limit to how much I can fit on a page. I worked down from 100 and got to about 78 before I got the 'Error 500' message or whatever it is. I could just screenshot all 100 pictures and do it via the page script, but I was wondering if anyone knows a better way of doing this? It would take so, so long and unfortunately you can put on page script inside the page script and have it run corrently.