~::Cheery Dreary Blog::~

Thursday, November 3, 2011

CSS in CSS

Another code story! But this time it's actually music lyrics. I decided to envision what the song "Music is My Hot Hot Sex" by the band CSS (Cansei der Ser Sexy) might look like in CSS.

Here's my interpretation:

@charset "utf-8";

body #drugs .music {
      font-weight: bolder; !important
}
body #junks .music {
      font-weight: bolder; !important
}
body #boys .music {
      font-weight: bolder; !important
}
body #ladies .music {
      font-weight: bolder; !important
}
.music {
      background:url(boyfriend.jpg);
}
.music {
      background:url(girlfriend.jpg);
}
.music {
      background:url(deadEnd.jpg);
}
.music {
      background:url(imaginaryFriend.jpg);
}
.music {
      background:url(brother.jpg);
}
.music {
      background:url(greatGranddaughter.jpg);
}
.music {
      background:url(sister.jpg);
}
.music {
      background:url(favoriteMistress.jpg);
}

table #shit .music {
      display:block;
      background-color:#FF0000;
      font-weight:bold;
}
table #jobs .music {
      display:block;
      background-color:#FF0000;
      font-weight:bold;
}
table #drinks .music {
      display:block;
      background-color:#FF0000;
      font-weight:bold;
}
table #bitches .music {
      display:block;
      background-color:#FF0000;
      font-weight:bold;
}
.music {
      background:url(beachHouse.jpg);
}
.music {
      background:url(homeTown.jpg);
}
.music {
      background:url(kingsizeBed.jpg);
}
.music {
      background:url(meetMyFriends.jpg);
}
.music {
      background:url(hotHotBath.jpg);
}
.music {
      background:url(hothotSex.jpg);
}
.music {
      background:url(backRub.jpg);
}
.music a:link {
      font-weight: bold;
      text-decoration: blink; !important
}






The original lyrics for the portion I've converted above, for your reference, is here:

From all the drugs the one i like more is music
From all the
junks the one i need more is music
From all the boys the
one i take home is music
From all the ladies the one i kiss
is music .. muach!

Music is my boyfriend
Music is my girlfriend
Music is my dead end
Music’s my imaginary friend
Music is my brother
Music is my great-grand-daughter
Music is my sister
Music is my favorite mistress

From all the shit the one I gotta buy is music
From all the jobs the one i choose is music
From all the drinks i get drunk off music
From all the bitches the one I wannabe is music

Music is my beach house
Music is my hometown
Music is my king size bed
Music’s where I meet my friends
Music is my hot hot bath
Music is my hot hot sex
Music is my back rub
My music is where I’d like you to touch

Labels: , ,


Friday, October 21, 2011

ActionScript Hero



I'm actually looking up to this guy.

Labels: ,


Sunday, August 7, 2011

Snow White and the Seven Dwarves (in AS3)

var maiden:Princess = new Princess();
var queen:Villain = new Villain();

var cabinDwellers:Array = new Array();

maiden.skin = 0xFFFFFF;
maiden.hair = 0x000000;
maiden.kryptonite = apple;
maiden.energy = 100;
maiden.living = true;
maiden.mode = "wishing and hoping";

var hagMode:Boolean = false;

queen.happy = true;
queen.appearance = hagMode;


var fairest:Boolean;
var initial:Boolean = true;

function checkFairest():Boolean
{
if(maiden.living == true)
{
fairest = false;
} else {
fairest = true;
}
return fairest;
}

function checkMirror():Void
{
var mirrorAnswer:Boolean = checkFairest();

if(fairest == true)
{
queen.happy = true;
if(hagMode == true)
{
hagMode = false;
}
} else {
queen.happy = false;

if(initial)
{
var hunter:Weapon = new Weapon();
killMaiden(hunter);
initial = false;
} else {
hagMode = true;
queen.appearance = hagMode;
var apple:Weapon = new Weapon();
killMaiden(apple);
}
}
}

function killMaiden(method:Weapon):Void
{
if(method != maiden.kryptonite)
{
maiden.direction("into the woods");
for(i:int = 0; i < 7; i++)
{
var dwarf:Dwarf = new Dwarf();
cabinDwellers.push(dwarf);
}
sendToWork(cabinDwellers);
checkMirror();
} else {
if(cabinDwellers.length <= 0)
{
maiden.energy = 0;
maiden.living = true;
maiden.mode = "waiting for the one she loves";
}
}

}


function sendToWork(workers:Array):Void
{
for(i:int = 0; i < workers.length; i++)
{
worker:Dwarf = workers.pop();
worker.whistling = true;
}
}


checkMirror();

Labels: , , ,


Tuesday, November 18, 2008

addChild'sPlay

I had a whole bunch of ideas for "not that funny but kind of chuckle-worthy if you're really tired and loopy" comic strips that I was going to call "Punnery." For some reason I was storing them in an MSN Group... and then I promptly ignored all emails from MSN Groups telling me that they were going to shut down my space (and their whole service) and delete everything. So poof - they're all gone. But a few of them were retained in my brain RAM so I might share them later. I still don't know what style they should be in. Polished? Really shiny and Web 2.0? My current thought is "lazy-assed Erin" style ... hey it might be interesting. Sort of like Cyanide and Happiness!

Punnery... is out the window. It wasn't the "right" title for something that was simply going to be REALLY DUMB humor about web design and programming. My new title is more along the right track.

So here's my first attempt at "addChild'sPlay":

Labels: