Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None

[ View the whole list ]


Most users ever online was 22 on Mon Apr 07, 2008 8:01 pm
Latest topics
» Surrey......
Thu Nov 20, 2008 4:13 pm by xxhayzxx

» Glad to be here
Fri Oct 10, 2008 12:25 pm by Arif

» This is ... KAREN in OHIO
Tue Oct 07, 2008 11:38 pm by EmmaPhoebeLeo

» so...........
Sat Sep 13, 2008 11:56 pm by Dennie

» What do you think about....
Fri Sep 12, 2008 5:15 pm by Emily

» oh so quiet sssssssshhhhhhhhhhhh
Fri Sep 12, 2008 5:13 pm by Emily

» A tad p'd off
Fri Sep 12, 2008 5:11 pm by Emily

» Prison break
Wed Sep 10, 2008 11:29 pm by EmmaPhoebeLeo

» Go find me.......
Wed Sep 10, 2008 11:17 pm by EmmaPhoebeLeo

» Plans for today??
Wed Sep 10, 2008 2:04 pm by EmmaPhoebeLeo

» frends that are ttc
Tue Sep 09, 2008 9:42 pm by Dennie

» baby of the month will be up and running agen soon
Tue Sep 09, 2008 2:49 pm by Emily

» What love song are you ?!
Tue Sep 09, 2008 2:14 am by EmmaPhoebeLeo

» Are you to picky when it comes to men ?!
Tue Sep 09, 2008 2:12 am by EmmaPhoebeLeo

» What colour should your eyes be ?
Tue Sep 09, 2008 2:09 am by EmmaPhoebeLeo

» love it or hate it?
Tue Sep 09, 2008 2:05 am by EmmaPhoebeLeo

» who's your fav star?
Tue Sep 09, 2008 2:04 am by EmmaPhoebeLeo

» If you won the lottery?
Tue Sep 09, 2008 2:02 am by EmmaPhoebeLeo

» do you drive?
Tue Sep 09, 2008 2:00 am by EmmaPhoebeLeo

» Which of these two people do you trust less?
Tue Sep 09, 2008 1:59 am by EmmaPhoebeLeo

» long one.............
Tue Sep 09, 2008 1:57 am by EmmaPhoebeLeo

» Where do you see yourself in 20 years and what are you doing to achieve this?
Tue Sep 09, 2008 1:56 am by EmmaPhoebeLeo

» how many kids do you have?
Tue Sep 09, 2008 1:53 am by EmmaPhoebeLeo

» what your favorite color?
Tue Sep 09, 2008 1:52 am by EmmaPhoebeLeo

» the best thing that has ever happoned to you?
Tue Sep 09, 2008 1:52 am by EmmaPhoebeLeo

» do you live in a house or flat?
Tue Sep 09, 2008 1:51 am by EmmaPhoebeLeo

» Fav chocolate !!
Tue Sep 09, 2008 1:50 am by EmmaPhoebeLeo

» Have you got any pets?
Tue Sep 09, 2008 1:49 am by EmmaPhoebeLeo

» Whats your ...
Tue Sep 09, 2008 1:47 am by EmmaPhoebeLeo

» do you smoke?
Tue Sep 09, 2008 1:46 am by EmmaPhoebeLeo

» Friend for a month sign up
Tue Sep 09, 2008 1:41 am by EmmaPhoebeLeo

» free graphics
Sun Sep 07, 2008 8:31 pm by Dennie

» What brand of make up
Sun Sep 07, 2008 8:30 pm by Dennie

» Whats your faqvourite
Sun Sep 07, 2008 8:27 pm by Dennie

» fortune cookie
Sun Sep 07, 2008 8:25 pm by Dennie

» Useless fact of the day
Sun Sep 07, 2008 8:24 pm by Dennie

» love it or hate it
Sun Sep 07, 2008 8:22 pm by Dennie

» Weekend
Sun Sep 07, 2008 8:15 pm by Dennie

» Hello all
Sat Sep 06, 2008 4:11 pm by Emily

» Hi everyone!!!
Fri Sep 05, 2008 11:21 pm by Dennie

Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
baby of the month
Poll

pick your winner

80% 80% [ 4 ]
0% 0% [ 0 ]
20% 20% [ 1 ]

Total Votes : 5


the story maker

View previous topic View next topic Go down

the story maker

Post by Emily on Fri Apr 11, 2008 5:08 pm













































function storytest() {

if (character.value=='') alert("Please enter the name of your character");

if (character.value!='') story(character.value,sex.options.selectedIndex);

}

function story(char,charsex) {

var his="his"

var him="him"

var he="he"

var girl="girl"

var son="son";

if (charsex=="1") {

son="daughter";

his="her";

he="she";

girl="guy";

him="her";

}

var index;

var tmpStr;

var tmpChar;

var preString;

var postString;

var strlen;

tmpStr = char.toLowerCase();

strLen = tmpStr.length;

if (strLen > 0) {

for (index = 0; index < strLen; index++) {

if (index == 0) {

tmpChar = tmpStr.substring(0,1).toUpperCase();

postString = tmpStr.substring(1,strLen);

tmpStr = tmpChar + postString;

}else{

tmpChar = tmpStr.substring(index, index+1);

if (tmpChar == " " && index < (strLen-1)) {

tmpChar = tmpStr.substring(index+1, index+2).toUpperCase();

preString = tmpStr.substring(0, index+1);

postString = tmpStr.substring(index+2,strLen);

tmpStr = preString + tmpChar + postString;

}}}

char=tmpStr;

heading.innerHTML="The Story Of "+char+"";



var country=Math.round(Math.random()*20);

var country2=Math.round(Math.random()*20);

var countryarray=new Array("South Africa","China","Bali","Canada","Brazil","France","Italy","Germany","Russia","Tokalue","Scotland","England","Ireland","Greenland","Iceland","Israel","Japan","Peru","Egypt","Mexico","Java","Scandinavia");



var burns=Math.round(Math.random()*2);

var burnarray=new Array("1st","2nd","3rd");



var cost=Math.round(Math.random()*5);

var costarray=new Array("$10 000","$45 000","$120 000","$3","$750 000");



var years=Math.round(Math.random()*44)+3;



var part0=Math.round(Math.random()*9)

var part1=Math.round(Math.random()*12)

var part2=Math.round(Math.random()*12)

var part3=Math.round(Math.random()*9)

var part4=Math.round(Math.random()*9)

var part5=Math.round(Math.random()*9)

var part6=Math.round(Math.random()*11)

var part7=Math.round(Math.random()*9)

var part8=Math.round(Math.random()*9)

var part9=Math.round(Math.random()*9)



var part0array=new Array(" slept in all day with"," was owed money by"," fought "+his+" enemy:"," traveled with"," saw a movie made by"," got a letter bomb from"," discovered"," went swimming with"," was friends with"," almost got killed by");

var part1array=new Array(" the T800"," Homer Simpson"," "+his+" mum"," a baby boy"," an axe murderer"," a wild dog"," a man in a wheelchair"," Fat Bastard"," a sexy model"," Ben Joffe"," Karl's mum"," Mr Harnwell"," John Howard");

var part2array=new Array(" under the bed"," on an ironing board"," in the fire place"," in "+countryarray[country]," in "+countryarray[country]," in "+countryarray[country]," after leaping from a crashing plane"," after winning the lottery"," in an icy cave"," on a passenger jet"," on a pirate ship"," down the back of Galston High");

var part3array=new Array(" during an important business meeting"," and got "+burnarray[burns]+" degree burns"," and fell into the eternal pit of hell"," and got banished from the country"," and almost got killed by an army of birds"," and got locked in prison"," during a hail storm"," and went around killing rats with a jackhammer"," during the third world war"," and got locked in a room full of greasy meat");

var part4array=new Array(" because "+he+" had no sleep the night before"," for no reason at all"," because "+he+" felt like it"," very happily"," in a sad mood"," because "+his+" leg hurt"," because "+his+" leg hurt"," but it was all an accident"," feeling very foolish"," on purpose"," then stormed out");

var part5array=new Array(" and snapped "+his+" ankle"," and all hell broke loose"," and a heated argument arose"," and went for a long walk through the park"," and banged "+his+" head on a wall"," and decided to sleep it off"," and everyone felt very sympathetic"," and fell violently ill"," and chased a bunny"," and went on a rampage");

var part6array=new Array(" which caused public outcry"," which completely freaked "+him+" out","which got "+him+" in a lot of trouble,"," which made "+him+" cry,"," which caused an avalanche,"," so everyone bowed down to "+char+","," which upset everybody,"," which started a party,",". "+char+" just dodged three bullets,",". Then "+char+" ran around like a lunatic,",". "+char+" then escaped through a secret passage,",", "+char+" then met "+his+" long lost "+son+": "+char+" the second,");

var part7array=new Array(" "+he+" grabbed the detonator"," "+he+" stole a car"," "+he+" blew up a truck with a hand grenade"," "+he+" felt a sudden ray of hope"," "+he+" made a run for it"," "+he+" jumped out of the way as the roof collapsed"," "+he+" went around killing rats with plastic bombs"," "+he+" shot all the bad guys"," "+he+" made a giant leap across the ravine"," "+he+" called the police");

var part8array=new Array(" and which defies what that dam fortune teller told "+him+","," and as if it were a miracle"," and to the disappointment of some"," and while wearing "+his+" lucky backpack"," and with relative ease"," and just as "+he+" hoped"," and to the surprise of the audience"," and as "+he+" nearly gave up all hope"," and with the help of "+costarray[cost]+" worth of special effects"," and with "+his+" last ounce of strength");

var part9array=new Array(" "+he+" got promoted to field marshal."," "+he+" killed the bad guy and made it away with minimal injuries."," "+he+" got kidnapped and tortured to death."," "+he+" got caught by the police and was sentenced to "+years+" years in prison."," "+he+" got the money and lived the rest of "+his+" life in "+countryarray[country2]," "+he+" failed the mission and the bad guys made it away with the gold."," "+he+" accidently tripped and smashed "+his+" face against a rock."," "+he+" defeated "+his+" enemy and the world was safe again... but for how long?"," "+he+" escaped narrowly and hitch-hiked all the way home."," "+he+" got the "+girl+", the treasure and a nasty rash."," "+he+" got the "+girl+", the treasure and a nasty rash.");



storyarea.innerHTML=char+part0array[part0]+part1array[part1]+part2array[part2]+part3array[part3]+part4array[part4]+part5array[part5]+part6array[part6]+part7array[part7]+part8array[part8]+part9array[part9];

}

}





































Ben Joffe's Story Generator


Name
Sex:





Free JavaScripts provided


by The JavaScript Source







_________________
avatar
Emily
Founder
Founder

Female
Number of posts : 650
Age : 32
Location : hastings
Job/hobbies : stay at home mum
my favorite color is : pink
my user name in the a friend to hand blog is;- : emily furze
how many children do you have : 3
points :
5 / 1005 / 100

Registration date : 2008-03-27

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum