Source Code: web20startup
<script>
/*
--------------------------------------------------------------------
Web2.0 Startup Pitch Generator
@author: Jay <jay at gotfoo dot org>
This program is free software; you can redistribute it under the
terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your
option) any later version. This program is distributed in the hope
that it will be useful, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more info
at http://www.gnu.org/licenses/gpl.txt
--------------------------------------------------------------------
*/
var market = new Array("Dating","Reviews","Gambling","Maps","Music","Porn","Gaming","Video","News","Photo","Productivity","Sports");
var hypedtech = new Array("Ajax","Tagging","RSS","Streaming","Ruby On Rails","Bittorrent","RFID","Wireless","Flash","Java","VIOP","GPS","Atom","Atlas","Google","PHP",".NET");
var service = new Array("Recommendations","Publishing","Aggregation","Messaging","Entertainment","Buying/Selling","Search","Discussion","Data Mining","Bookmarking");
var architecture = new Array("Blog","Social Network","Portal","Podcast","Auction","Vodcast","Store","Wiki","Community","Sharing Network","Utility Software");
var m=0;
var h1=0;
var h2=0;
var s=0;
var a=0;
function RandomPitch(){
document.getElementById("pitch").innerHTML =getPitch();
}
function getPitch(){
m=Math.floor(Math.random() * market.length);
h1=Math.floor(Math.random() * hypedtech.length);
h2=Math.floor(Math.random() * hypedtech.length);
while( h1 == h2){
h2=Math.floor(Math.random() * hypedtech.length);
}
s=Math.floor(Math.random() * service.length);
a=Math.floor(Math.random() * architecture.length);
var htmlOutput;//= document.getElementById("pitch");
var html = [];
var str;
html[html.length] = '<h3>It\'s a <span style=color:#4088b8>' + market[m] + '</span> site that uses <span style=color:#4088b8>' + hypedtech[h1]+ '</span> and <span style=color:#4088b8>' + hypedtech[h2] + '</span> to do <span style=color:#4088b8>' + service[s]+ '</span> in a <span style=color:#4088b8>' +architecture[a]+'</span>.</h3>';
str = html.join('');
str = str.replace('%*','%');
str = unescape(str);
return str;
}
function DoEncode(str) {
str = UrlFullEncode(str);
return str;
}
function DoDecode(str) {
str = UrlFullDecode(str);
return str;
}
function UrlFullEncode(str) {
str = escape(str);
str = str.replace('%','%*');
return str;
}
function UrlFullDecode(str) {
str = str.replace('%*','%');
str = unescape(str);
return str;
}
window.onload=function(){
RandomPitch();
}
</script>
<div id="pitch" class="box"></div>





