NaNoWriMo Progress Bar

October 19th, 2007 @ 01:13:14 pm, by Tara Email , 271 words, 484 views   English (US)  

Categories: Projects

This is a quick and dirty php and css progress bar. Technically, the code could be used as a progress meter for almost anything (rebuilding a car, stock kept in a pantry, whatever). Consider this code freeware and use it as you wish.

Progress Bar

  1. Right-click this file (it's plain text, so no virus worries) and save it to your documents folder or desktop.

  2. Make a few edits.

    • Change the text in quotes after book_title from "My NaNoWriMo" to "The Title of Your Book". Be sure the quotes, equal sign, and semicolon remain. Edit only the text between quotes.
    • Change the zero after book_current_wordcount to match your NaNoWriMo book's current word count. Update that number as often as you like. Remember that, unlike the book title variable, the number after book_current_wordcount does not require quotes. The semicolon must remain though.
    • Optional

      • Change the word meter's border in the style section. The color code is just below the CSS comment: Change border color here
      • Change the color of the word meter itself in the style section as well. The color code is just below the CSS comment: Change progress bar color here

  3. Put the code on your web site. That can be done in several ways. The most common are:

    • Copy+paste your modified code (with the name of your book, etc.) into a spot on your blog's sidebar. Add a header if you like.
    • Save the code as book_progress_1.php (or a similar name), upload the file to your server in the same place as your other template files, and include book_progress_1.php in your sidebar:

Comments, Pingbacks:

No Comments/Pingbacks for this post yet...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))
What color is a red balloon?


Drive (novel)
First draft 80% complete

Categories

July 2008
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Linkblog

Comics

Podcasts

Web Design Resources

Writing Resources

User Functions

Syndication

Who's Online?

  • Guest Users: 17
andy unknown joseph homework vasant barber betty file mozart baritone finite euclid laura herbert erica kristin trivial sensor new linda xyzzy mutant tape rachel aztecs alias allison garfield tammy larkin fender chat manager kristine edwina key collins lois signature einstein light admin trails nutrition renee puppet hiawatha michelle jean emerald sandra tracy samantha marvin tuttle olivia cshrc simon inna chester persona zmodem emily carole weenie morley bsd mack pluto ferrari tiffany charming innocuous finite samantha smother maggot janie