View Single Post
Old 19-05-2004, 23:26   #1
Womble
cf.geek
 
Womble's Avatar
 
Join Date: Jul 2003
Location: In A Politically Correct Hell!! Viva La Revolution
Age: 59
Services: 1gig Broadband
Posts: 864
Womble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of Quads
ANOTHER question about JavaScript!!

Can anyone help? Below is my little JavaScript, my problem is I want the output to have astrix around it like so but cant remember how to do it..doh!
***********************************
The price of your ticket is
***********************************

This is my script............................................ .....................................
// to check the status of a prospective ticket purchaser
var age;
age = window.prompt('Please enter your age', '');
age = parseFloat(age);
while (age<5)
{
document.write ('You have made a mistake, please re-enter your age'+ '<BR>')
age = window.prompt('Please re-enter your age', '');
age = parseFloat(age);
}
if (age >59)
{
document.write
('The price of your ticket is a concessionary £8')
}
if (age <17)
{
document.write
('The price of your ticket is a concessionary £8')
}

else
{
document.write('The price of your ticket is £10')
}


Thanks for any input
Womble is offline   Reply With Quote