MajorRawne
Programmer
Please can someone cut this, correct it in notepad and paste it back in a reply im desperate its for some work im doing and im running out of time....
<HTML>
<HEAD>
<TITLE>
Deliver Charges
</TITLE>
<SCRIPT LANGUAGE = "JavaScript">
// A delivery charge program
var orderValue; // How much the order is worth
orderValue = window.prompt('How much is the order worth in Pounds Sterling?','');
document.write('The value of your order is £' + orderValue + '.<BR>');
orderValue = parseFloat(orderValue);
if (orderValue <= 24.99)
{
document.write('Your Charge For Delivery Is £3')
}
else
{
if (orderValue 25<=99.99)
{
document.write('Your Delivery Is Free Of Charge')
}
else
{
if (orderValue 100 >)
{
document.write('Your Deliver Is Free And Comes With A Complimentry Gift Vocher')
}
}
}
document.write('<BR>');
document.write('Thank you for shopping with us.');
</SCRIPT>
</HEAD>
<HTML>
<HEAD>
<TITLE>
Deliver Charges
</TITLE>
<SCRIPT LANGUAGE = "JavaScript">
// A delivery charge program
var orderValue; // How much the order is worth
orderValue = window.prompt('How much is the order worth in Pounds Sterling?','');
document.write('The value of your order is £' + orderValue + '.<BR>');
orderValue = parseFloat(orderValue);
if (orderValue <= 24.99)
{
document.write('Your Charge For Delivery Is £3')
}
else
{
if (orderValue 25<=99.99)
{
document.write('Your Delivery Is Free Of Charge')
}
else
{
if (orderValue 100 >)
{
document.write('Your Deliver Is Free And Comes With A Complimentry Gift Vocher')
}
}
}
document.write('<BR>');
document.write('Thank you for shopping with us.');
</SCRIPT>
</HEAD>