Navigation

 
 

Welcome Guest

Enter Login Info
 Change Skin
Choose Language
 
 

Latest Topics

 Website / ASP help
 Random Quote Mod for Soop
Author: charles
Last Post by: Ciojka
Last Posted: 1/6/2010 12:19
Replies: 5. Views: 1242
 Website / ASP help
 Services we provide
Author: charles
Last Post by: charles
Last Posted: 9/18/2009 09:06
Replies: 1. Views: 1261
 Website / ASP help
 Random Quotes
Author: charles
Last Post by: charles
Last Posted: 9/8/2009 14:45
Replies: 0. Views: 1294
 Computers
 Low Cost Offsite Backups Made Easy!
Author: charles
Last Post by: charles
Last Posted: 9/8/2009 13:37
Replies: 3. Views: 1245
 
 

Get all the Latest

MCD Headlines

Keep Up to Speed With MCD & Read Daily
Random Quotes
By:  charles
9/5/2009 -

Technical

Want to add a random quote to your website (like the quote found near the bottom of this site's home page)?

 

 

We have been collecting these quotes since 1991.

They represent the funny, thoughtful, or even disturbing words found in books, comics, movies, songs, or everyday conversations.

We welcome your contributions to our ever-growing database of quotes!

Would you like to have our random quotes appear on your website?

The easiest way to show these quotes on your webpage is to insert the following code in your page's HTML:
<iframe src="http://www.moorecompdev.com/quotes/RandomQuote.asp" border=0 width="100%" ></iframe>

 

This will give you the quotes, but will not let you set the colors or other formatting.

 

Use the following ASP block to get quotes data from our database for use on your website. Contact us if you need examples in other web programming languages or help formatting the output for your website.

 

If you have any questions or comments about the code below, please let us know and we'll try to help you.

Also, if you intend to link to our quotes, please let us know in the forums.

<!-- Begin Random Quote Code -->
<%
Dim objRanQuoteXmlHttp
Dim strRanQuoteResponse
dim strRanQuoteLine
dim strRanQuoteUrl
strRanQuoteUrl = "http://www.moorecompdev.com/quotes/RandomQuote.asp"
Set objRanQuoteXmlHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
objRanQuoteXmlHttp.open "POST", strRanQuoteUrl, False
objRanQuoteXmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
objRanQuoteXmlHttp.send 'Send quote request.
strRanQuoteResponse = split(objRanQuoteXmlHttp.responseText, vblf) ' This now holds the entire quote
Set objRanQuoteXmlHttp = Nothing
for each strRantQuoteLine in strRanQuoteResponse
'Output each line of the quote to the screen.
response.write strRantQuoteLine
next
'instead of 1 line at a time. You can also output the entire quote at once by using: response.write strRanQuoteResponse
%>
<!-- End Random Quote Code -->



Table of Contents

 Show Archived Articles

[Return to Refering Page]
 
Subscribe to MCD Latest News
News Alerts

Receive late breaking news alerts in your email in-box as soon as articles are posted. You must be a registered user to subscribe.

Available Categories

General
Technical

Search for:  
All Words     Any Words
 Include Archived Articles in Search Results.

 
 

Random Quotes 

 
Author
Topic

charles

 

Location: United States

Registered:  9/8/2009

Posts: 9

If you would like Random Quotes on your site, see this how-to guide.