Question

In: Computer Science

1) The document must have a small image that must appear at the position of the...

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.

Solutions

Expert Solution

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.


Related Solutions

1. Create a color image of size 200 × 200. The image should have a blue...
1. Create a color image of size 200 × 200. The image should have a blue background. 2. Create 100 yellow regions within the image that have a variable size. More specifically, their width should be an odd number and vary between 3 and 7 and their height should also be an odd number and vary between 3 and 7. For example, you may get rectangular regions of size 3 × 3, 3 × 5, 5 × 3, 5 ×...
If you were asked to provide a small tip (or bribe) to have a document approved...
If you were asked to provide a small tip (or bribe) to have a document approved in a foreign nation where this practice is customary, what would you do?
Evaluate the ethical characteristics that the candidate for the position must have. As a Real Estate...
Evaluate the ethical characteristics that the candidate for the position must have. As a Real Estate Agent.
Find the position of the final image of the 1.0-cm-tall object.
The figure shows a combination of two lenses. (Figure 1) Part A Find the position of the final image of the 1.0-cm-tall object. Express your answer using two significant figures. Part B Find the size of the final image of the 1.0-cm-tall object. Express your answer using two significant figures. Part C Find the orientation of the final image of the 1.0-cm-tall object.
For this assignment, you will take a position on whether “the image of the intermediary does...
For this assignment, you will take a position on whether “the image of the intermediary does not need to be consistent with the image of the brand" or "the image of the intermediary must match the image of the brand." Support your position with credible research.
Using Matlab 1. Create a color image of size 200 × 200. The image should have...
Using Matlab 1. Create a color image of size 200 × 200. The image should have a blue background. 2. Create 100 yellow regions within the image that have a variable size. More specifically, their width should be an odd number and vary between 3 and 7 and their height should also be an odd number and vary between 3 and 7. For example, you may get rectangular regions of size 3 × 3, 3 × 5, 5 × 3,...
1. Create a Word document in the Documents library. Write a small “summary or review” of...
1. Create a Word document in the Documents library. Write a small “summary or review” of an interesting “technology article” – The topics can be anything related to recent news in technology “Example: Launching of new gadgets of Apple, or Artificial Intelligence and its uses, Amazon Web Services etc” please include workcited
Draw diagrams to indicate qualitatively the position, nature, and size of the image formed by a...
Draw diagrams to indicate qualitatively the position, nature, and size of the image formed by a converging lens of focal length f for the following object distances: (a) infinity, (b) greater than 2f, (c) equal to 2f, (d) between 2f and f, (e) equal to f, (f) less than f.
17. Which of the following would appear on the statement of financial position as a current...
17. Which of the following would appear on the statement of financial position as a current liability? a. a probable loss in the amount of $4 million from an ongoing lawsuit b. a possible loss in the amount of $4 million from an ongoing lawsuit c. a probable loss from an ongoing lawsuit, the amount of which is not yet determinable d. a lawsuit for $4 million for which the likelihood of loss is remote 18. Chastain Park Entertainment paid...
17. Which of the following would appear on the statement of financial position as a current...
17. Which of the following would appear on the statement of financial position as a current liability?   a.  a probable loss in the amount of $4 million from an ongoing lawsuit   b.  a possible loss in the amount of $4 million from an ongoing lawsuit   c.  a probable loss from an ongoing lawsuit, the amount of which is not yet determinable   d.  a lawsuit for $4 million for which the likelihood of loss is remote 18. Chastain Park Entertainment paid...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT