CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Threaded View

  1. #1
    Join Date
    Nov 2011
    Posts
    2

    Any suggestions?

    Code:
    <html>
    <body>
    <script = "text/javascript">
    
    //
    var showTime = 8;
    var showTime2 = 12;
    var showTime3 = 15;
    var ES = "";        // literal empty string
    var BR = "<br/>";   //HTML line break
    var movie = prompt("What movie do you want to see?");
    
        //Calculate
    
    
        If (showTime==1pm + 5pm){
    
    
           document.write("Your ticket price is: "" for showTime + "$" + BR.);
    
           }
          else if (showTime2==11pm){
                 document.write("Your ticket price is: "" + for showTime2 + "$" + BR.);
                 }
    
           else if (showTime3==3pm-8pm){
                document.write("Your ticket price is: ""  + for showTime3 + "$" + BR.);
    
           }
           else
           prompt("Invalid showtime");
           }
    
    
           //Calculate
    
    
    </script>
    </body>
    </html>
    Last edited by PeejAvery; November 15th, 2011 at 02:32 PM. Reason: Added code tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured