About IMAO



Giving money to Frank J. makes you happy!


Buy funniest book ever!





IMAO Podcasts
IMAO Merchandise and Newsletter

Cool shirts, mugs, stickers, and what-not!

About IMAO
Then conquer we must, for our cause is just, 
And this be our motto--'In God is our trust.' 
And the star-spangled banner in triumph doth wave 
O'er the land of the free and the home of the brave.


If you want to send something by snail mail, e-mail with subject "P.O. Box" to get mail information for Frank J. and SarahK.

About Frank J.

Bloggers:
Frank J.
Harvey
RightWingDuck
Cadet Happy
spacemonkey
Laurence Simon
SarahK

Popular Categories
Fred Thompson Facts
John Edwards Fabulous Facts
lolterizt
IMAO Condensed
Know Thy Enemy
Editorials
Frank the Artist
In My World
Other Content
Ode to Violence
Brief Histories
IMAO Audio Bits


Read the Essay
Own the Shirt
Peace Gallery
Search IMAO
Google
Web www.imao.us
Testimonials
"All quotes attributed to me on IMAO are made up... including this one."
-Glenn Reynolds

"Unfunny treasonous ronin!"
-Lou Tulio*

"You, sir, are a natural born killer."
-E. Harrington

"You'll never get my job! Never!!!"
-Jonah Goldberg

"In the beginning, God created the heavens and the earth. And He did despair, for in His omniscience, He did know that His creations had but three-fifths of the splendor of that which would be IMAO."
-No One of Consequence

"A blogger with a sense of humor."
-Some Woman on MSNBC
Blogroll
Ace of Spades HQ
The Anti-Idiotarian Rottweiler
Blackfive
Captain's Quarters
Classical Values
Conservative Grapevine
The Corner
The Daily Gut (with Jim Treacher!)
Dave in Texas
Eject! Eject! Eject!
Electric Venom
Hot Air
Puppy Blender
La Shawn Barber's Corner
Michelle Malkin
Pereiraville
Protein Wisdom
Rachel Lucas
Right Wing News
Scrappleface
Serenity's Journal
Townhall Blog

IMAO Blogroll
Bad Example
Cadet Happy
The Flying Space Monkey Chronicles
mountaineer musings
Right Wing Duck
SarahK & Cadet Happy snark TV
This Blog Is Full of Crap

Fred Thompson Links
Fred File
Blogs for Fred
Fred Thompson Facts
Awards



 

September 22, 2003
Random Quotes!
Posted by Frank J. at 12:46 PM | View blog reactions | Comments (23)

I was going through my quotes trying to come up with idea for the next t-shirt, when I had the idea to put them in a list with a link to the post they came from. So now, at the top of the page, there will be random quotes from my posts. Since I just thought of it last night, I only have 28 right now, but, as soon as I have time, I'll add so many that you'll never be able to see them all, no matter how much you reload. Muh ha ha ha!

I have a few problems, though. I don't know how to put regular quotes (") in those quotes and have to use single quotes instead. Also, as has been a problem with my page for a long time, the color for links is just to dark to go against the blackground. I just don't know how to use one color for in the post and another for on the sidebar. Anyone know a line I can add to this part to separately set the link color for my sidebar?

.side {
font-family:verdana, arial, sans-serif;
color:#555;
font-size:12px;
font-weight:normal;
background:#000;
line-height:14px;
padding:2px;
}

Anyhoo, if you want quotes on your site you can add this to your template:

<script type="text/javascript" src="http://imao.us/docs/quotes.txt"></script>

UPDATE: Got answers to most my questions, but I really need to find out how to change the link color for just my sidebar; that's a problem that plagued my website for sometime now.

Rating: 1.3/5 (3 votes cast)

Email This | Add to del.icio.us | Digg this | StumbleUpon Toolbar Stumble It!
23 Responses To "Random Quotes!"

Yeah I noticed this last night while you were still working on it and made a few adjustments to it, but by the time I had finished and emailed it to you, you had updated and fixed the script so that you didn't need my fix.

Luckily the email bounced due to the attachment being a .js file (the default javascript format) so I didn't embarrass myself.

If you're interested I can make you one which is easier to update than the one you have now.

To use quotation marks inside of a string you have to escape them.

var text = "He said, \"Hello.\"";
alert(text);
would print
->He said, "Hello."

#1 - Posted by: IkkonoIshi on September 22, 2003 12:59 PM

Typing html.

That'll answer the last question.

#2 - Posted by: Jennifer on September 22, 2003 01:04 PM

You could probably get double-quotes into your random quotes by using &quot; Like this:

text[1] = "My friend Charlie O'Toole said &quot;Hello&quot.";

But a better solution is to probably put the entire text block into single-quotes (instead of double-quotes), then just precede a single-quote with a backslash whenever you need an actual single-quote character. Like this:

text[1] = 'My friend Charlie O\'Toole said "Hello".';

#3 - Posted by: George Adams on September 22, 2003 01:05 PM

Thanks for those answers. Now I just need to figure out the link color problem.

#4 - Posted by: Frank J. on September 22, 2003 01:11 PM

You're welcome. I'm sure you'll repay the kindness someday.

#5 - Posted by: Jennifer on September 22, 2003 01:14 PM

I will Earl. I will.

#6 - Posted by: Frank J. on September 22, 2003 01:15 PM

I believe if you change color: to font-color: that should do it.

#7 - Posted by: Dana on September 22, 2003 01:22 PM

IkkonoIshi,
BTW, I would be interested in anything that easier. It doesn't seem that hard as it is now, though.

#8 - Posted by: Frank J. on September 22, 2003 01:29 PM

This is probably completely unrelated, but my daughter told me today was "Nerd Day" at school.

#9 - Posted by: LittleA on September 22, 2003 01:58 PM

If you are still trying to solve the link problem, I think you need some link-specific elements in your CSS. It might look something like this

.side{
.
.
.
a:link {color: #color}
a:visited {color: #color}
a:active {color: #color}
a:hover {color: #color}
.
.
}

I pulled this off of this website, so if it doesn't work, blame them. :)

#10 - Posted by: No one of consequence on September 22, 2003 02:10 PM

Chack your email - I sent you something like this:

Use your .side class to further specify your anchor tag attributes. You may have to include a class="side" in your a tags but something like this should work:

a.side
{
color: #000080;
background: #ffffff;
text-decoration: underline;
}
a.side:visited
{
color: #000080;
background: #ffffff;
}
a.side:hover
{
color: #000066;
background: #dddddd;
text-decoration: underline;
font-weight: bold;
}

#11 - Posted by: Clancy on September 22, 2003 02:10 PM

Wow - I thought I was taking a BREAK from work to read Frank's site, but all I got was a bunch of escaped tags and CSS discussion. I think I'll go back to work now, sigh. :)

hln

#12 - Posted by: hln on September 22, 2003 02:22 PM

Well you can make the number of quotes self counting for instance.

That way you can just drop them in cookie cutter like.


var text = new Array();
var i = 0;
//BLANK TO COPY AND PASTE --> text[i++] = "";

text[i++] = "Guns Are Like Art, Except Not Useless";
text[i++] = "Note to self: when asking, 'What would Jesus do?' remember that the answer is sometimes 'Freak out and knock over tables.'";
text[i++] = "My God, how many countries are there?";
text[i++] = "Yes, it's funny to laugh at Streisand, but do those who encourage her to speak out ever stop to think of her feelings? She is a human being, and, if they had any concern for her, the would lock her away in a home and train her to keep quiet through a series of painful shocks.";
text[i++] = "Depite his enourmous head and the fact that he talks funny, Kennedy still has some pull in the Senate, due probably to the fear from other Senators that he might eat them, offer them a ride home, or, worst of all, headbutt them.";
text[i++] = "Anyway, when the U.S. government gets serious on this assassinate Saddam thing, they have my e-mail. My rates for heads of state are a bit higher, but I will give a patriotic discount. Frank's gots to eat, though, and he likes the prime rib.";
//SNIP[...]

document.write(text[Math.floor((text.length-1) * Math.random())]);

See that set creates its own set of numbers so you don't have to keep writing text[28], text[29], text[30], ect... for each entry.

This will work all the way up till 1.79E+308 entries.

So... don't put too many funny quotes in there.

#13 - Posted by: IkkonoIshi on September 22, 2003 02:31 PM

The CSS .side attribute should work the best (assuming you have control over the html and can output <a href="blah blah" class="side">.....

#14 - Posted by: Robb on September 22, 2003 03:50 PM

Just put this at the bottom of your CSS file.


.side A
{
COLOR: silver
}

Replace silver with whatever color you want.

#15 - Posted by: IkkonoIshi on September 22, 2003 04:52 PM

I just noticed that you use A tags to format your plain text in your side bar.

So instead of ".side A" you want ".side A:link" to just cover the links.

#16 - Posted by: IkkonoIshi on September 22, 2003 05:35 PM

Using your quotes at Http://www.virtualdoom.com YEA i'm a link whore!! Check it out :)

#17 - Posted by: John on September 22, 2003 09:28 PM

I think the quote looks a bit odd above the IMAO graphic. I'd put it just underneath the Unfair. Unbalanced. Unmedicated spiel.

hln

#18 - Posted by: hln on September 22, 2003 11:42 PM

Do I have to stop posting pictures of you now?
:-)

#19 - Posted by: Jennifer on September 23, 2003 12:44 AM

Do you really need a black background? Why not change this to something that will reduce the contrast...it'll be softer on the eyes that way.

#20 - Posted by: Philip on September 23, 2003 03:01 AM

Bah.

Light text on a dark background is easy on the eyes.

#21 - Posted by: IkkonoIshi on September 23, 2003 07:32 AM

Whatever

The right background might improve the visibility of the links

#22 - Posted by: Philip on September 23, 2003 01:24 PM

6708 How can this all be right? Check out my site http://www.pai-gow-keno.com

#23 - Posted by: pai gow on October 5, 2004 08:21 AM
Post a comment




Remember me?

(You may use HTML tags for style)

 

Buy IMAO T-Shirts


IMAO T-Shirts

The IMAO T-Shirt Babe
(winning picture) YOU BUY NEW SHIRTS NOW!!!
Yay! Books!





Capitalism
Archives
By Category
24
American Idol
Aqua-Adventures
Barackalypse Now
Best of IMAO 2002
Best of IMAO 2006
Bite-Sized Wisdom
Editorials
Election 2008
Filthy Lies
Frank Answers
Frank Discussions
Frank on Guns
Frank Reads the Bible
Frank the Artist
Fred Thompson Facts
Friday Cat-Blogging
Fun Trivia
Hellbender
Hellbender Take Two
Hillary Clinton Terrible Truths
Humor
I Hate Frank
If I Were President
ignis fatuous
IMAO Condensed
IMAO Exclusives
IMAO for the Non-Deaf
IMAO Reviews
IMAO Think Tank
In My World
In My World - Fan Fiction
John Edwards Fabulous Facts
Know Thy Enemy
lolterizt
Michael Moore
Mitt Romney Ads
News Round-Up
Newsish Fakery
No, McCain't
Our Military
Permalink Contest
Precision Guided Humor Assignments
Ron Paul, Ron Paul, Ron Paul
Ronin Profiles
Ronin Thought of the Day
SarahK's TV stuff
Scary Evil Monkey
Simpsons Trivia
Songs & Poems
State of the Frank Report
Superego
Totally True Tidbits
WEsistance Is Facile
Why Me Laugh?
Yvonne's Ashes
By Month
December 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
March 1933