此问题的任何帮助:关于添加JavaScript以使用事件将新段落的样式更改回原始样式. [英] Any help for this qustion: about add JavaScript to use an event to change the style of the new paragraph back to the original.

查看:66
本文介绍了此问题的任何帮助:关于添加JavaScript以使用事件将新段落的样式更改回原始样式.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1.创建一个包含2个文本段落的HTML页面.
2.添加JavaScript在其他2.之间插入一个新段落.
3.添加JavaScript以使用事件通过style属性或className属性更改新段落的样式.
4.添加JavaScript以使用事件将新段落的样式改回原始样式.
5.确保您的页面在Firefox和IE 6+中均可使用. (这是此作业的必需部分.)

如果您使用的是Mac,请在发布作业时通知我,我会在IE中为您检查.
6.将您的页面上传到Web,然后在3月28日星期五之前在完成的作业讨论中发布URL.

1. Create an HTML page that includes 2 paragraphs of text.
2. Add JavaScript to insert a new paragraph in between the other 2.
3. Add JavaScript to use an event to change the style of the new paragraph using either the style property or the className property.
4. Add JavaScript to use an event to change the style of the new paragraph back to the original.
5. Make sure your page works in both Firefox and IE 6+. (This is a required part of this assignment.)

If you''re working on a Mac, let me know when you post your assignment and I''ll check it in IE for you.
6. Upload your page to the web, and post the URL in the Completed Assignments discussion by Friday 3/28.

推荐答案

这显然是一项作业.我们不是来做您的作业.

自己动手做,遇到困难时再提出一些具体问题,这样您将学到更多.

祝你好运.
This is clearly an Assignment. We are not here to do your homework.

Have a go at it yourself and come back with specific questions when you get stuck, you will learn far more that way.

Best of Luck.


这篇关于此问题的任何帮助:关于添加JavaScript以使用事件将新段落的样式更改回原始样式.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆