PDA

View Full Version : HTML Mad Libs Code Producer


Viciox
07-06-2009, 05:42 PM
Here's what I would like to do. I would like to use the concept of 'mad libs' (insert a word into a textbox and it shows up in the story) but instead have the nouns and verbs be values like 'dashed' or '#000000' and the story be various codes. For example:

What colour would you like the font to be? ____ (user types in #000000)
What would you like it to say? ____(user types Potatoes are delicious.)
Which font would you like to use? drop down menu: Arial - Verdana - Helvetica (user picks Arial)

code produced is:

<font style="color:#000000;font-family:arial">Potatoes are delicious.</font>




And then they could copy this to something similiar to a myspace profile, website, or wherever else. In the end I want to be able to make fully customizable layouts. I've used something similiar in the past, but oh god it was a pain and messed up every time I had "s or the Enter-key in the skeleton >.< (http://www.freewebs.com/thedeepdark/acust1.htm) if I remember right I used an actual mad libs thing to do it too :P
Anyone know how to do this? Or has seen any tutorials? I've futzed around the Javascript Source but I don't know enouch to edit them to suit.