All 1 entries tagged PHP

View all 8 entries tagged PHP on Warwick Blogs | View entries tagged PHP at Technorati | There are no images tagged PHP on this blog

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.


March 2021

Mo Tu We Th Fr Sa Su
Feb |  Today  |
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 31            

Subscribe to this blog

RSS2.0 Atom

Search this blog

Tags

Not signed in
Sign in

Powered by BlogBuilder
© MMXXI