HTML/Javascript ESL Reveal Game Tutorial
โœ‚๐Ÿƒ๐Ÿพโ€โ™€๏ธ๐Ÿƒ๐Ÿผโ€โ™‚๏ธ
๐Ÿ“–

HTML/Javascript ESL Reveal Game Tutorial

HTML/Javascript ESL Reveal Game Tutorial

Maybe youโ€™ve been reading this blog some time and remember the โ€œrevealโ€ themed blog posting called HTML/Javascript Reveal Image Behind Image Primer Tutorial? Well, todayโ€™s ESL sentence game has many similarities, except that instead of an image in front of another image, today we use an HTML div element in front of an HTML img element, using Javascript and CSS properties โ€ฆ

  • innerHTML โ€ฆ the whole HTML img element becomes the HTML divโ€™s innerHTML
  • width and height โ€ฆ set width and height of HTML div but no width nor height specified for HTML image โ€ฆ because โ€ฆ
  • overflow โ€ฆ set to โ€˜hiddenโ€™ to mask out any overflow of HTML image for overflow to left or right or top or bottom
  • margin-left โ€ฆ a negative margin left โ€œpansโ€ the underneath โ€œtoo bigโ€ image positionโ€™s X to correct place
  • margin-top โ€ฆ a negative margin top โ€œpansโ€ the โ€œtoo bigโ€ image positionโ€™s Y to correct place

So todayโ€™s ESL sentence game has the user piece together a โ€œLetโ€™sโ€ sentence โ€ฆ one that starts with โ€œLetโ€™sโ€, or, if one wants to be formal, โ€œLet usโ€, that suits the picture โ€œsegmentโ€ present. At this stage it behoves us to thank โ€œHow English Worksโ€ by Michael Swan and Catherine Walter for their great ideas to teach English.

The feel of this work also brings to mind the wonderfully effective panning capabilities of good old, often overlooked, Paintbrush image editor, about which you can read Paintbrush Panning Primer Tutorial for further information.

How about you give our ESL sentence game (or HTML source code let_usโšซhtml) a go?

If this was interesting you may be interested in this too.

This entry was posted in eLearning, ESL, Games, Tutorials and tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *