PDA

View Full Version : Generate Random Garfield Comics



edczxcvbnm
02-22-2006, 06:12 PM
Just make a new text document and paste this code into it. Save it so that it is an HTML document. Open it up and you have your random comics.

Attached are some of the example I have created using this generator.



<html>
<head>
<title>The Eagle_Fire Garfield Randomizer</title>
<style type='text/css'>
td {
overflow: hidden;
text-align: left;
vertical-align: top;
max-height: 200px;
max-width: 180px;
}
img {
positron: absolute;

}
</style>
</head>
<body>
<table border=1><tr>
<td width=200 height=180 id=td1> </td>
<td width=200 height=180 id=td2> </td>
<td width=200 height=180 id=td3> </td>
</tr>
<tr>
<td><input type=checkbox id=ck1>Lock</td>
<td><input type=checkbox id=ck2>Lock</td>
<td><input type=checkbox id=ck3>Lock</td>
</tr>
</table>
<script language="JavaScript1.2">
function fmt(n) {
n = Math.floor(n);
if (n < 10) return "0" + n;
return n;
}
function load() {
var t = new Array("td1", "td2", "td3");
var c = new Array("ck1", "ck2", "ck3");
for (i = 0; i < t.length; i++) {
if (document.getElementById(c[i]).checked) continue;
year = 2001 + Math.random() * 4;
month = Math.random() * 12 + 1;
day = Math.random() * 30 + 1;
panel = Math.random() * 3;
if ((new Date(fmt(month) + "/" + fmt(day) + "/" + fmt(year))).getDay() == 0)
day = (day + 1) % 31 + 1;
if (month == 2 && day > 28) day = 28;
imgurl = "http://images.ucomics.com/comics/ga/"
+ fmt(year) + "/ga" + fmt(year % 100) + fmt(month) + fmt(day) + ".gif";
tu = document.getElementById(t[i]);
tu.background = imgurl;
tu.style.background = "url(" + imgurl + ") " + -200 * Math.floor(panel) + "px 0px";
}
}
load();
</script>
<br>
<input type='button' value = "Go" onClick="load()">
</body>
</html>

Psychotic
02-22-2006, 07:01 PM
These are my best three.

I like the first one the best, because he's acting all wacky and trying to seem cool, and Garfield just shuts him down.

Kawaii Ryűkishi
02-22-2006, 07:59 PM
The best part is that these are invariably a million times more entertaining than anything Jim Davis and his staff of ghostwriters have ever composed.

Bart's Friend Milhouse
02-22-2006, 09:53 PM
lol these are quite funny, put some more up!

TheAbominatrix
02-22-2006, 10:13 PM
"Garfield at Large", by Jim Davis. Now as you can see in this panel, Garfield doesn't care for Nermal. But like him or not, Nermal is here to stay! Or is he? Let's read on.

Rye
02-22-2006, 10:25 PM
The best part is that these are invariably a million times more entertaining than anything Jim Davis and his staff of ghostwriters have ever composed.

Yes.

Doomie
02-22-2006, 10:28 PM
Those of you who don't like the Garfield comics are gay.

EDIT: Much unlike Chuck Norris.

EDIT2: Seriously, Garfield comics are awesome.

rubah
02-22-2006, 10:30 PM
The best part is that these are invariably a million times more entertaining than anything Jim Davis and his staff of ghostwriters have ever composed.
No, you're thinking of those garfield strips with garfield's dialog removed.

I forget the word ascribed to them. Surrealist?

Rengori
02-22-2006, 10:32 PM
The best part is that these are invariably a million times more entertaining than anything Jim Davis and his staff of ghostwriters have ever composed.
Ouch, that was cruel Kishi. Unfortunately, you're absolutely right.

Fonzie
02-22-2006, 10:49 PM
Dude my old teacher had a big bundle of these type of comics when i was in 5th grade. I've read them all.

edczxcvbnm
02-23-2006, 07:09 PM
lol these are quite funny, put some more up!

Because you demanded it!

themagicroundabout
02-23-2006, 07:11 PM
They make no sense whatsoever. It's great. :greenie:

Levian
02-23-2006, 07:16 PM
The last one of edczxcvbnm is pretty good. :cool: and psy's last one.

edczxcvbnm
02-23-2006, 07:45 PM
You guys didn't even look at the new comics. YOU FAIL!

Levian
02-23-2006, 08:05 PM
I did, but the only one that was funny was the last one, like I mentioned. :cool:

Giga Guess
02-24-2006, 02:19 AM
I.....can't....get them to work!

Sephex
02-24-2006, 03:53 AM
The first one in ed's second post has me in tears. Man!

To be fair, the early Garfield comics were good, but Jim Davis has been beating a dead horse for so long, that its bones are nearly dust by now.

Rase
02-24-2006, 07:11 AM
I give this :up: :up:, as it will provide me with hours of entertainment.

Anyway, I like the second one most myself. :)

Neco Arc
02-24-2006, 11:00 AM
Those of you who don't like the Garfield comics are gay.

EDIT: Much unlike Chuck Norris.

EDIT2: Seriously, Garfield comics are awesome.

Faris
02-24-2006, 12:05 PM
Those of you who don't like the Garfield comics are gay.

EDIT: Much unlike Chuck Norris.

EDIT2: Seriously, Garfield comics are awesome.
I agree, but some of the comics here are funny :D