[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 663
  • Last Modified:

Verify that as you press the mouse button down on each phrase, the English translation appears. When you release the mouse button, the French phrase should reappear.

Insert two external script elements that link to the french5.js and engfr.js files.

Insert an event handler into the body element that runs the function setup
Translation() when the page loads.

Close  the file, saving your changes.
Use your editor to open the engfrtxt.js file .
Create a function named setUpTranslation(). The purpose of this function is to place the French phrases into the document and set up the event handlers for the mousedown and mouseup events. Add the following commands:
a.      In Professor Granger’s document the phrases are placed in paragraphs. The phrase number is placed within the first span element inside the paragraph. The phrase text is placed in the second span element inside the paragraph. The phrase text is placed in the second span element within the paragraph. Crate a variable name phrases that contains the object collection of all the paragraph elements in Professor Granger’s document. Use the document.getElements ByTagName() method.
In my Web browser. Verify that as I press the mouse button down on each phrase, the English translation appears. When I release the mouse button, the French phrase should reappear.

0
Soldiergirl50
Asked:
Soldiergirl50
  • 4
  • 3
  • 3
  • +1
1 Solution
 
Cornelia YoderArtistCommented:
soldiergirl50, it is against the rules of EE to have us do your homework.
0
 
Soldiergirl50Author Commented:
I was not asking you to help domy homework. Thanks sir.
0
 
Michel PlungjanIT ExpertCommented:
SoldierGirl: What you have posted really, really looks like homework
Can you perhaps post what you have written so far and ask specific questions aimed to solve an issue with YOUR code?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
LZ1Commented:
Page 589.
0
 
Michel PlungjanIT ExpertCommented:
That does not necessarily mean it is homework - it could be self study, however it does mean someone needs to write something before we should help
0
 
LZ1Commented:
Understood.  Please excuse the posts above, I suppose it's just bitterness from a very long time ago, when I posted something similar and was denied help for it and it was homework.
:)
0
 
Cornelia YoderArtistCommented:
I don't think referring someone to a book that might help violates the no-homework rule :)

I do think this description is unquestionably a homework assignment.
0
 
Michel PlungjanIT ExpertCommented:
@yodercm the referral was to show the question originated as an exercise from a book verbatim...
0
 
Soldiergirl50Author Commented:
I was not asking you to do my homework.
0
 
Soldiergirl50Author Commented:
Thanks everyone for your help. By the way it was not my homework.
0
 
Cornelia YoderArtistCommented:
@soldiergirl    I think in all fairness you should ask a moderator to refund your points and close the question without awarding any.  I didn't do anything to deserve points, and you did not get any answer that you wanted.
0
 
Michel PlungjanIT ExpertCommented:
@Soldiergirl50 - can we help you? We do not write scripts on assignments, but if you provide us with what YOU wrote so far and are in need of any assistance fixing something, let us know
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now