Return to Snippet

Revision: 17326
at September 1, 2009 07:55 by Zufolek


Initial Code
<html><head>
<title>Goofle Web Search</title>
<style>
body{font:16px verdana;background-color:#fff;color:#000}
#out{width:60%}
</style><script>

String.prototype.replaceAll=function(a,b){return this.split(a).join(b)}
function ge(s){return document.getElementById(s)}

function addglink(glink){
 var s="<p>";
 s+="<br><a href='http://";
 s+=glink.address;
 s+="'>";
 s+=glink.title;
 s+="</a><br>";
 s+=glink.text;
 s+="<br><font color=#008000>";
 s+=glink.address;
 s+="</font>";
 return s;
}

function go(){
 setTimeout("gload()",500);
 ge("main").style.display="none";
}

function gload(){
 var q=ge("in").value;
 var o="";
 if(q){
  var r=q.replaceAll(" ","-");
  var s="<b>"+q+"</b>";
  var glink=new Object();

  glink.title="Find "+s+" on eBay!";
  glink.text="eBay has "+s+" and tons of other great gift ideas! Find it on eBay!";
  glink.address="www.ebay.com/"+r;

  o+=addglink(glink);

  o+="<hr>"

  glink.title="All the "+s+" you could ever ask for!";
  glink.text="This site has been discontinued. Thanks to all the loyal members who made it such a success.";
  glink.address="www."+r+".com";

  o+=addglink(glink);

  glink.title="Does anyone know where I can find "+s+"?";
  glink.text="1 post<br>0 replies";
  glink.address="www.random-forum.com/bb.php?threadid=49672357";

  o+=addglink(glink);

  glink.title="No "+s+" allowed!";
  glink.text="No "+s+" allowed on this site. By using this site, you agree to the terms and conditions stated herein. Any use of this site by persons...";
  glink.address="www.srs.biz/terms.html";

  o+=addglink(glink);

  glink.title="Porn shopping viagra "+s+" gambling";
  glink.text="penis enlargement, "+s+", granny porn, concert tickets, pokemon, orange juice, gay sex, christmas tunes, nipple slip, mp3, anal...";
  glink.address="www.antsnrvg.com/hepzhszr.html";

  o+=addglink(glink);

  glink.title="The site for all who hate "+s;
  glink.text="I really hate "+s+". People who search for "+s+" are weirdos. They should all be brutally murdered.";
  glink.address="www.anti-"+r+".com";

  o+=addglink(glink);

  glink.title="All the best "+s+" links";
  glink.text="Page last modified on 5/29/1997"
  glink.address="www.oldarchives.com/"+r+".html";

  o+=addglink(glink);

  glink.title="Youtube - This aint no "+s;
  glink.text="See music videos by The Flaming Nutsacks";
  glink.address="www.youtube.com/video?watch=275355662";

  o+=addglink(glink);

  glink.title="I was talkin to my girlfriend about "+s;
  glink.text="...so then I tole her about the "+s+" an she said that was ok but then i had to go take her to the back of the building and the whole time i was...";
  glink.address="boringdork.blogger.com";

  o+=addglink(glink);

  glink.title="Some bastard stole my "+s;
  glink.text="...as I stepped on the bus, the jerk grabbed my "+s+" and ran away. I was already late, so I couldn't go chasing after him.";
  glink.address="busyguy.blogspot.com";

  o+=addglink(glink);
 }
 ge("out").innerHTML=o;
 ge("main").style.display="block";
 scrollBy(0,-10000);
}

</script></head><body onload="ge('in').focus()"><center>
<div id=main>
<h1>Goofle</h1>
<input id=in onkeypress="if(event.keyCode==13)go()">
<button onclick=go()>Search</button>
</center>
<div id=out></div>
</div>
</body></html>

Initial URL

                                

Initial Description

                                

Initial Title
My impersonation of Google

Initial Tags

                                

Initial Language
HTML