When I go onto Youtube- it says "Hello- you either have JavaScript turned off or you don t have the latest version of Adobe Flash". I have downloaded the latest version & I have tryed to enable JavaScript... it still doesn t work- how can I fix this?
I m building a PDF form where the user enters a starting date and the form auto-calculates the end date to display as two weeks after the start. What is the Javascript code for this?
Also I think we should tell all those poor people using php and javascript about ruby on rails.Newbs like myself- go for instant rails.
http://rubyforge.org/
to get on rails.
I m looking for a website image rotator script in either Javascript- CSS- or PHP. The type of image rotator script I m looking for is one that switches at a certain time of the day. That is to say- I don t want an image rotator script that will change an image if the user refreshes that webpage- nor am I looking for an image rotator that automatically changes an image every few seconds/minutes.
What I m trying to do is get an image rotator script that will change at a specific time each and every day. So- that is to say that I would have two images being used as the main banner images for my website. For a 23 hour period during the day- I would want one image banner to show- then once the image banner hits the 24th hour of whatever time I make it during that day- I want it to switch to the other image for exactly one hour.
Basically- I need a script that will change banner images at a certain hour during the day- and then revert back once that hour is up. Thanks.
What s incorrect in the following code?
<script language="javascript">
var num1-num2-ans;
num1=parseInt(prompt("number1"-"Value"));
op=prompt("Enter Operator"-"");
num2=parseInt(prompt("number2"-"Value"));
switch(op)
{
case op= + ;
{
ans=num1+num2;
document.write(ans);
break;
}
case op= - ;
{
ans=num1-num2;
document.write(ans);
break;
}
case op= * ;
{
ans=num1num2;
document.write(ans);
break;
}
case op= / ;
{
ans=num1/num2;
document.write(ans);
break;
}
default
alert("Incorrect Operator" + "<br><br>" + "Enter either + OR - sign")
}
</script>
No comments:
Post a Comment