Sunteți pe pagina 1din 4

WEB TECHNOLOGY QUESTIONS

http://www.javascriptkit.com/script/
www.yaldex.com
www.w3schools.com
2008 Pearson Education
JAVA SCRIPT ANS CSS QUESTIONS

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.

29.
30.
31.
32.
33.
34.
35.
36.
37.

Close Window button


Displaying the number of sites a user has visited prior to coming to yours
Last modified Date script
Detect Plug-in (Flash, Java, RealPlayer etc) script
Testing to see if browser supports JavaScript
Alert (once) message script
Animated Information Bar
Display time of last visit
Inline HTML Tooltip script
Random Password Generator
Email Me button
Accept terms & conditions script
Auto clear form elements
Auto tab (form field) script
Character count
Check all check/radio buttons
Check if its a number
Check required elements
Form Field hints
Limit number of checked checkboxes script
Max # of characters check
Max # of words check
Validate Date field script
Word Count
Your past history!
Encrypted Password Generator
Login and Password script
Login and password script II
This is a simple password script that requires both a login and password to gain entry to the
protected page, with an incorrect set taking the user to a "failure" page instead.
Password protect a page
Confirmation box
Untouchable button link
OnMouseover Slideshow
Random Image Slideshow
Random Transitions Slideshow
Background Music script
Arrow onMouseover
Click banner enticer script

38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.

Random Background Image


Rollover effects for images (This will take you to my onMouseover whipper)
Different background image according to time of day
Image zoom in/out
Disco Background Effect
Auto refresh page with timer
Popup progress bar
Age Counter
Guess my number game
Display mouse coordinates
Flashing status bar
All-in-one search engine
basic calculator
Scientific Calculator
Personal Counter
Using cookies to display number of times a user has visited your page
Cool CSS Menu
Count down then redirect to new page
JavaScript Image Clock
Time limit on viewing document script
Current Date
Blinker
Bouncing Image
Cell Background Changer.
Color Chooser
Rain effect
Fade
Click To Submit
Directions
Image Button
Fading Button.
Up Down Box
Leap Year
Pop-up Date picker
Button Time
Digital Clock
Agree Before Entry]
All Upper Case/All Lower Case!
Disable Submit.
Email Address Validation.
Encode Special Characters.
File Open.
Form Focus.
Form Target Formatting.
Guess 1 to 100.
Ignore Spaces.
Random Click Image.
Popup Tooltip.
Shadow Tooltip.
Simple Tooltip.
Changing Link.

89. Flashing Link.


90. Auto Popup Window.
91. Hover Colors.
92. Image Description.
93. Jitter text
94. Mouse Banner
95. Print Page.
96. Smart Marquee.
97. Text Highlighter.
98. Combined Radio Buttons.
99. Full Screen.
100.
Right Click Message.
101.
Right Click Prevent.
102.
404 Referrer.
103.
Preload Page.
104.
Reload On Resize.
105.
Multiple Users.
106.
Box Message.
107.
Expanding Text.
108.
Line Scroller.
109.
Bouncing Text.
110.
Lights Text.
111.
Pushing Text.
112.
Browser Details.
113.
Plugins Alert.
114.
User Quiz.
115.
A fixed background image (this image will not scroll with the rest of the page)
116.
All the background properties in one declaration
117.
Remove the line under links
118.
Specify the space between characters and lines
119.
All the font properties in one declaration
120.
Use of text-decoration on links
121.
All list properties in one declaration
122.
Create a fancy table
123.
All the border properties in one declaration
124.
All the padding properties in one declaration
125.
Change the cursor
126.
String Concatenation
127.

Write a script that uses relational and equality operators to compare two Strings input by
the user through an XHTML form. Output in an XHTML textarea whether the first string
is less than, equal to or greater than the second.

128.
Write a script that uses random number generation to create sentences. Use four arrays of
strings called article, noun, verb and preposition. Create a sentence by selecting a word at random
from each array in the following order: article, noun, verb, preposition, article and noun. As each
word is picked, concatenate it to the previous words in the sentence. The words should be
separated by spaces. When the final sentence is output, it should start with a capital letter and end
with a period. The arrays should be filled as follows: the article array should contain the articles
"the", "a", "one", "some" and "any"; the noun array should contain the nouns "boy", "girl", "dog",

"town" and "car"; the verb array should contain the verbs "drove", "jumped", "ran", "walked" and
"skipped"; the preposition array should contain the prepositions "to", "from", "over", "under" and
"on". The program should generate 20 sentences to form a short story and output the result to an
XHTML textarea. The story should begin with a line reading "Once upon a time..." and end with
a line reading "THE END".
129.
Write a script that inputs a telephone number as a string in the form (555) 555-5555. The
script should use String method split to extract the area code as a token, the first three digits of
the phone number as a token and the last four digits of the phone number as a token. Display the
area code in one text field and the seven-digit phone number in another text field.
130.
Write a script that inputs a line of text, tokenizes it with String method split and outputs
the tokens in reverse order.
131.
Write a script that inputs several lines of text and a search character and uses String
method indexOf to determine the number of occurrences of the character in the text.
132.
Write a script that reads a series of strings and outputs in an XHTML textarea only those
strings beginning with the character b.
133.
Write a script that reads a series of strings and outputs in an XHTML textarea only those
strings ending with the characters ed.
134.
Write your own version of the String method lastIndexOf and use it in a script.
135.
Write a program that reads a five-letter word from the user and produces all possible
three letter
136.
words that can be derived from the letters of the five-letter word. For example, the threeletter words produced from the word bathe include the commonly used words ate, bat,
bet, tab, hat, the and tea. Output the results in an XHTML textarea.

S-ar putea să vă placă și