You are on page 1of 2

106-Web Design and Internet Based Application Practical 2011

106:Web Design and Internet Based Application Practical Sheet-3


Submission date: 8th December,2011 1. Write a JavaScript program which will accept a number from the user using dialog box and check whether the number is positive, negative or zero. 2. Write a javascript program which will accept a string from the user using HTML FORM and display the number of occurrence of each character. 3. Write a Javascript code to compare two strings, the strings will be taken using HTML FORM. 4. Write a Javascript to access form elements. 5. Write a Javascript program to create a function and display the sum of two numbers. 6. Write a Javascript program to create a function and pass two values and swap both values. 7. Write a Javascript program to create a function which accepts two arguments and compare both arguments. 8. Write a Javascript program to create a nested function definition. 9. Write a Javascript program to demonstrate two dimensional array. 10. Write a Javascript program to generate dynamic HTML codes. 11. Write a Javascript program to generate dice (with the help of random number generation). 12. Write a Javascript program to manipulate radio and checkboxes. 13. Write a Javascript program to create an array of five elements and display it . 14. Write a Javascript program for reading and writing elements in array as per user choice. 15. Write a Javascript program to delete array elements as per user choice. 16. Write a JavaScript program to reverse an array element(without using reverse function) 17. Write a Javascript code to sort an array (without using sort function). 18. Write a Javascript code to load multiple frames with one link. 19. Write a Javascript code to load, reload or close new content into window. 20. Declare and initialize the students and scores arrays again. Make a new array for grades. If the score is greater than 81 assign A, between 61 and 80 assign B, between 41 and 60 assign C and lower than 41 assign D. Using document.write display on the screen the names, scores and grades for all the students in a table. 21. Write a JavaScript program to take as input three numbers from the user. Find the minimum and maximum of the three numbers. Print the following output in BOLD in the following format: MINIMUM = MAXIMUM = 22. Write a program to find and print how many times the number 8 occurs in an array A. The array A should take as input as many values as the user wishes to enter.

Ms. Neelam Shah D.C.S. & T

Page 1

106-Web Design and Internet Based Application Practical 2011


23. Write a program to find and print how many times the digit 8 occurs in an array A. The array A should take as input as many values as the user wishes to enter. 24. Assume that you are creating a new array called seasons A. Write the statement to declare the array with space allotted for four elements. B. Assuming that the array has been created, write a statement to set the element at the initial position of the array to the season name spring. C. Write a loop that prints out all of the elements in seasons. D. Assign half the value of the variable B to the 14 th element of the array J.(Make all necessary variable declarations.) E. Create an array of the correct size to hold the names of the days in a weekend and get the user to input names of all the days one by one. 25. Write a Javascript code for the following instructions: i. Create an HTML FORM in which there are three textbox, four Radio button (ADD, SUB, MUL, DIV) and one OK button. ii. Accept values from the user in first two textbox and display the result in the third textbox as per user select.

Practical Sheet-4
Submission date: 8th December,2011 1. Write a CSS code for bold, italic and underline the text(Inline, Internal and External CSS). 2. Write a CSS code to place two images one on the left side and one on the right side and add text below the image. 3. Write a CSS code to demonstrate effect on link. 4. Write a CSS code to give random background image with help of JavaScript. 5. Write a CSS code to display bullet right side instead of left side of the text. 6. Write a CSS code to give alternate row colored rows in table. 7. Write a CSS code to fixed header, footer and left side bar. 8. Write a CSS code to demonstrate vertical drop down in same column. 9. Write a CSS code to demonstrate vertical drop down multi level opaque. 10. Write a CSS code to demonstrate drop down inserted into fixed positioning header.

Ms. Neelam Shah D.C.S. & T

Page 2

You might also like