September 09, 2005

More Wristbands!

Feeling inspired by all those wristbands I keep seeing, I thought I'd make it very easy for everyone to have one!

I spent a few hours writing up a php script that generates the wristbands on the fly, which is basically one php hack after another, as have never done anything with php graphics before! So without further ado, place this code in your CSS, and then make the changes described below to get YOUR wristband!

#bannerImageLeft {
position: absolute;
top: 0px;
right: 0px;
height: 200px;
width: 200px;
background: url('http://www.mikejones.f2s.com/banner.php?text={sometext}&bgcolor=255,255,255&color=0,0,0') no-repeat;
border: 0;

}

Here's how to get your message, change {sometext} to the text you want, remove the { braces } btw. To get that bold look insert a space when you want to change font weight, but you'll need to use %20 for spaces. Exmaples are
text=Make%20Poverty%20History
text=Warwick%20Blogs

as for the color and bgcolor attributes they are entirely optional, but if you o use them, you need to supply three numbers, separated by two commas, the values are the standard red,gree,blue ranging from 0 – 255.
If neither is specified you will get a standard black-on-white wristband.


- 3 comments by 1 or more people Not publicly viewable

  1. Needs better rendering of the text, but excellent idea. But obviously it's an excellent idea, because I had the same idea too and I never have bad ideas.

    09 Sep 2005, 12:15

  2. yes, I'm well aware of the text issues, because its rotated some some round errors are introduced, but I am going to try to work out the maths of using text directly on tne angle.

    09 Sep 2005, 19:39

  3. fixed, sort of, anti aliasing is on, but now soe of the text gets shifted around and it now longer stays at pi/4 downward angle, kinda looks like a child did it.

    09 Sep 2005, 22:15


Add a comment

You are not allowed to comment on this entry as it has restricted commenting permissions.

September 2005

Mo Tu We Th Fr Sa Su
Aug |  Today  | Oct
         1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30      

Search this blog

Tags

Not signed in
Sign in

Powered by BlogBuilder
© MMXXI