Ask Dave Taylor
  • Facebook
  • Instagram
  • Linkedin
  • Pinterest
  • Twitter
  • YouTube
  • Home
  • Videos
  • Most Popular
  • Top Categories
  • Books
  • About Dave
  • Ask Me
  • > Donate <
  • Home
  • HTML & Web Page Design (Page 30)

HTML & Web Page Design

Interesting JavaScript code example: finance calculator

January 6, 2004 / Dave Taylor / HTML & Web Page Design / 6 Comments

I’ve been building a financial calculator that lets you enter a monthly payment, an interest rate level and an overall debt level, then tells you how long it’ll take to pay off the loan and how much interest you’ll end up paying. It’s fairly self-explanatory, I think, and interesting to read.

First off, here’s the JavaScript:

<script type="text/javascript">
<!--
// Script written by Dave Taylor based on some math suggested by
// Bennett Haselton @ Peacefire.org. Thanks Bennett!
function centNotation(value)
{
// return the value in normalized dollars.cents notation
dollars = Math.floor(value);  // chop floating point portion
cents   = Math.floor((value % 1) * 100);              // and chop everything else
if (cents < 10) cents = "" + cents + "0";
return(dollars + "." + cents);
}

View Answer »

A cautionary tale about xhtml validators

January 4, 2004 / Dave Taylor / HTML & Web Page Design / 13 Comments

I’ve been continuing to tweak the pages at RealLifeDebt.com and have wanted to ensure that the xhtml coding was all proper and correct. So, logically, I turned to the W3C online validator, but kept hitting this one error:

Below are the results of attempting to parse this document with an SGML parser.

View Answer »

An experiment in xhtml and css: real-life-debt.com

January 3, 2004 / Dave Taylor / HTML & Web Page Design / No Comments

Exploring some of the ideas discussed in the upcoming “Creating Cool Web Sites” book, I’ve built a new Web site worth visiting called Real Life Debt. View source while you’re there and see how it’s a nice combination of xhtml and Cascading Style Sheets. In fact, you can pop open the style sheet and see how CSS helps quickly create an attractive design.

View Answer »

Helpful tip: how to avoid link rot

December 14, 2003 / Dave Taylor / HTML & Web Page Design / No Comments

My friend Barbara Feldman has written a very interesting article about techniques for avoiding what she calls “link rot”, when the links on your pages and in your print material end up being obsolete. If you’re just getting started with your site design, of course, this might not seem like anything you need to worry about, but I’ll bet you’ve gone to a site, seen a list of favorites, and found that most of them don’t exist any more.

View Answer »

Shopping carts and JavaScript

September 14, 2003 / Dave Taylor / HTML & Web Page Design / 1 Comment

A reader writes:

Can one develop a web site for e-commerce that utilizes a shopping cart function and credit card processing without the use of JavaScript? Perhaps this question is addressed later in portions of the book I haven’t gotten to yet.

View Answer »

Changing Link Colors on an HTML page

August 21, 2003 / Dave Taylor / HTML & Web Page Design / 3 Comments

A reader writes:

“I was hoping you could tell me where I can find info to solve a problem I’m having with one of the pages. I want my hyperlinks to stay the same colour as the rest of the text and not change at all, and i’d like to avoid the underlining too.”

View Answer »

How do you edit your existing Web pages on a remote server?

July 29, 2003 / Dave Taylor / HTML & Web Page Design / 2 Comments

A reader from India writes:

“I have purchased your book titled Teach Yourself Unix in 24 Hours which is very interesting and I have learnt many commands from that. Sir I have one problem. I have purchased some space for a website on the remote server. And I have designed my web site and once I got it launched from the system administrator. Now he has given me the user id and password for the SERVER (which is 250 Kilometers from me). The problem is I have changed my website files and I have uploaded these files on to the server using FTP. So to refresh what should I do in the sense what command should I use? Please send me the details”

View Answer »

How much should I charge to build a Web site?

July 9, 2003 / Dave Taylor / HTML & Web Page Design / 3 Comments

A reader of my book Creating Cool HTML 4 Web Pages writes and asks:

“I’ve been looking all over the internet to find an average price for making a website and I can’t fine a good estimate on the going rate. If you could point me in the right direction that would be great. After reading your book (creating cool HTML 4 web pages) and taking some computer classes I’ve now got my CIW certificate and am starting to build my first website for a client, but I don’t know how much to charge!”

I’ll resist saying that this is the question of the ages in the world of computing, but it is definitely going to be a tough one to answer…

View Answer »

«‹28293031›

Search

Recent Posts

  • How Can I Easily Create My Own Playlist on Spotify?
  • How Can I Prevent Remote Access to my Windows PC?
  • The Easy Way to Add Contacts to my New Android Phone?
  • How Can I Hide or Report An Offensive Advert on Facebook?
  • Switch “Paste” & “Paste and Match Style” Keyboard Shortcuts on MacOS?

On Our YouTube Channel

AUKEY Omnia 100W + Minima 20W Power Chargers -- DEMO & REVIEW

Roborock S6 MaxV Robot Vacuum Cleaner -- DEMO & REVIEW

Categories

  • AdSense, AdWords, and PPC Help (106)
  • Amazon Echo & Kindle Help (79)
  • Amazon, eBay, and Online Shopping Help, (157)
  • Android Help (160)
  • Apple Watch Help (49)
  • Articles, Tutorials, and Reviews (327)
  • Business Advice (192)
  • Computer & Internet Basics (721)
  • d) None of the Above (160)
  • Facebook Help (365)
  • Google, Chrome & Gmail Help (157)
  • HTML & Web Page Design (244)
  • Instagram Help (44)
  • iPad Help (137)
  • iPhone & iOS Help (571)
  • iPod & MP3 Player Help (173)
  • LinkedIn Help (79)
  • Linux Help (149)
  • Linux Shell Script Programming (86)
  • Mac & MacOS Help (833)
  • Most Popular (10)
  • Outlook & Office 365 Help (10)
  • PayPal Help (68)
  • Pinterest Help (53)
  • Reddit Help (12)
  • SEO & Marketing (80)
  • Spam, Scams & Security (84)
  • Trade Show News & Updates (23)
  • Twitter Help (212)
  • Video Game Tips (66)
  • Web Site Traffic Tips (62)
  • Windows 10 Help (831)
  • Wordpress Help (201)
  • Writing and Publishing (72)
  • YouTube Help (43)
  • YouTube Video Reviews (159)
  • Zoom, Skype & Video Chat Help (42)

Archives

Social Networks…

Ask Dave Taylor

Follow Me on Pinterest
Follow me on Twitter
Follow me on LinkedIn
Follow me on Instagram


AskDaveTaylor on Facebook

microsoft insider mvp


This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this site or on any linked site. Further, please note that by submitting a question or comment you're agreeing to our terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site. Our lawyer says "Thanks for your cooperation."
© 2020 by Dave Taylor. "Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.
Privacy Policy - Terms and Conditions - Accessibility Policy