Renren's javascript interview questions can be implemented in advance _ javascript skills

Source: Internet
Author: User
JavaScript Interview Requirements: the following questions must be selected from one to four, three questions are implemented using native code, and no framework is available. The fifth question is chosen as the JavaScript Interview Requirements: the following questions must be selected from one to four and implemented using native code.
In any framework, the fifth question is selected.

1. display images in a fixed area of the page

1. Each time you click the right arrow, the image area will scroll to the left and vice versa;
2. When an image is found to scroll to the end, the response arrow becomes inclickable;
3. Move the scroll wheel in the image area, and the image will scroll in the direction of the scroll wheel;


2. Use js, html, and css to implement a pop-up prompt control:
1. Implement the alert, confirm, and prompt dialog boxes similar to the system;
2. the dialog box size is adaptive Based on the prompt content (with a minimum width and height). By default, the dialog box appears in the vertical center of the page;
3. the dialog box can be dragged;
4. Event Simulation System dialog box events in the dialog box (for example, in the alert dialog box, click OK and the dialog box disappears );
5. Solve the problem that IE6 is blocked by the select Control;


Iii. automatic matching of input boxes

1. match the characters entered in the input box and display the matched content in the menu below the input box; 2. only English characters are matched, and the matched content is bold in the menu;
3. You can select a menu by using the up and down arrows on the keyboard. Press enter to write the selected content to the input box;


4. Implement a level-2 Menu Control on the page

1. This control can be bound to any element on the page. When a page element is clicked, a menu appears;
2. The menu orientation is automatically adjusted based on the location of the page, for example:
3. The elements in the level-1 menu appear at the corresponding position after the mouse clicks.
Click to respond to events


5. Implement a WYSIWYG editor (optional)
The following functions are required:
1. bold font;
2. Align left, right, and center text;
3. Set the font;
4. Set the font size;
5. Set the font color;
6. Insert a hyperlink;
7. insert an image;

Answer Packaging
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.