In: Computer Science
1) The document must have a small image that must appear at the position of the mouse cursor when the mouse button is clicked, regardless of the position of the cursor at that time.
2) The document contains four small paragraphs of text, stacked on top of each other, with only enough of each show so that the mouse cursor can always be placed over some part of them. When the cursor is placed over the exposed part of any paragraph, it should rise to the top to become completely visible.
Need help with two JavaScript tasks. Please do them separately and do both of them because they are linked to each other. Also please attach browser images running code. Thankyou.
1) The document conains image which is image.jpg and a onclick function to display the image where the user clicked.
2) This document contains four paragraphs stacked on one another. In this there are two method in javascript over and below which are responsible for displaying paragraph on top when mouse is over on a paragraph and below when mouse is out of the paragraph.