Categories
uncategorized

(no subject)

cleaned up some more code. the sniffer file is gonna have to just be bloated, i guess. i did split it up, though. now the pure css stuff is in one file, and misc things like them messages at the bottom are in another. it actually makes for more code that way, but at least the server doesn’t have to run the big file twice now.

here’s why i couldn’t debloat the sniffer file: IE sucks balls.

if $browser = x,
print “background-image:url(‘top_left.gif’);”;
if $browser = y,
print “background-image:url(‘top_left.png’);”;
if $browser = z,
print “background-color:#00f;filter:alpha(opacity=50%);”;

…and then the top, the top-right, the left, the middle, the right, the bottom-left, the bottom, the bottom-right….

what i wanted to do was break it up into

$prefix + name + $ext

as in

background:url( + topleft + .gif); or .png);

but that damn IE has to have filters or some stupid hack to work like i want it to.

which doesn’t SOUND so bad, but i have to hard-code the piece/set part of the image filename either way… but if that particular cell isn’t going to have an image (just a background color with a filter), then i’ll wind up with kooky and invalid CSS.

i know there’s got to be a way, but right now the sniff_css.php file ain’t too bloated. i’ve got 18 items (1-9 ‘a’ and 1-9 ‘b’) for 6 or 7 different browser/OS configurations. every wrapper image set costs 9 more. but, there really isn’t too much need to have all those image sets just for a stupid lousy border. i could use the same ones over and over until i figure out a better way. wish i knew how to make PHP count inside of a switch’s case. i’ll figure all that shit out some other damn time.

at least i made some creepy looking vines to use for my next b/g.

slightly faster + smarter coding.

By jae

jae lethe (he/she/they) is a blogger, musician, artist, poet, web developer/designer, armchair philosophizer, teller of tales, and gadabout. Also, something he calls a "behavioral artist." (Not sure.) She has plans. BIG plans.

Among the things that he has done for a laugh are minor fractures, cuts, scrapes, and various scabs. Though she's quick to point out that they're no imbecile, we're fairly certain that he thinks the word means some kind of medieval pharmacist.

This is her latest home on teh internets - where jae stores their swear words, when they're not hurling them at the sun in vain.