Saturday, June 7, 2008

var lower = 1- upper- total = 0- primeArray = [2-3-5-7-11-13];
upper = window.prompt( please enter a number between 1 and 6 - 0 );
upper = parseFloat(upper);
while (upper >= lower)
{
total = total + primeArray[lower];
lower = lower + 1;
}
document.write(total);

What will be displayed if you enter 4 in response to the prompt when the program is run? (Select one option.)

A 36
B 28
C 26
D 17

At line 29 of this javascript it comes out with the following error when the function is evoked it comes out with the following message document.price1.value is null or not an object any ideas why folks?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>


<title></title>


<script language="JavaScript" type="text/javascript">
<!--


function CalculateCost(miles-price)
{
var litres;
var cost;
litres = miles / 8;
cost = price * litres;
cost = cost.toFixed(2);

alert(cost);
}

function DisplayValue()
{
var price = document.price1.value;
alert(price);
}

//-->
</script>


</head>

<body>

<p>Number of Miles</p>

<p><input type="text" value="0" name="miles1"/><p>


<p>Price per litre</p>

<p><input type="text" value="0" name="price1" onchange="DisplayValue()"/></p>



<input type="button" value="Caculate" onclick="CalculateCost(200-1.13)"/>

</body>

</html>

I am creating a blog and I am curious of how I create a next page button to where it wont go to another part of my website but will go to the past blog posts. Like tabs.

When ever I open youtube it says you either have JavaScript turned off or an old version of Adobe s Flash Player. But I check my Jave script and its ok. But I do not know how to download latest Adobe s flash player. Does it solve the problems. pls tell me in details. Thanks reading my question.

on youtube it says either my javascript is off or my flash is not updated or something. i have my javascript on and flash player 9 installed- i even uninstalled and re-installed and everything.

i think the probllem may be some zoom thing i downloaded (zoom player i think) and so i installed everything it asked (i dont remember the names of it) so when my flash player stopped working i uninstalled the zoom player but my flash player still hasn t worked. it works on other accounts on this computer- but not this one. is there a way i can fix this?

when i tried to do a system rollback or w/e its called- it froze at one part of the rollbacking.. so i cant do that. and im able to watch videos that are embed on another site and videos on channels- but not specific parts (hard to explain) and i cant use the flash chat room on my friends site. so what do i do? if you need to know more things ask in your responce.

thanks!
i have windows xp..

i am working on a website- there are textboxes- textareas and textboxes. I am just confusing on the checkboxes. There are four checkboxes differrent-2 categories- there should be atleast one category selected. Please tell me the resolution?

No comments: