使用javascript临时在页面上绘制 [英] temporarily draw freehand on a page using javascript

查看:110
本文介绍了使用javascript临时在页面上绘制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在开发一个将在学校用作

a教学辅助工具的应用程序,并要求能够临时绘制在我的(作为我的应用程序生成的页面中的

)网页上使用javascript(例如

作为教师在
页面向学生指出。


我不知道我会怎么做但是认为它可能有事情要做>
使用< canvashtml元素?


有没有人有任何想法?


谢谢。

Hi,

I''m developing an application that is going to be used in schools as
a teaching aid and require the ability to temporarily draw on my (as
in pages produced by my application) web page using javascript (such
as a teacher drawing a circle around part of the text or image on the
page to point it out to the students).

I''m not sure how i would do this but think it may have something to do
with the <canvashtml element?

Does anybody have any ideas?

Thanks.

推荐答案

如何生成一个具有onClick函数的对象来切换

本身为黑色(使用css)并生成大量此对象所以

它涵盖整个HTML页面? (有点像像素的想法)


我怀疑这会有效。
What about generating an object which has onClick function to switch
itself to black (using css) and generating a lot of this object so
that it covers the entire HTML page? (Kind of like the idea of pixels)

I doubt this will be effecient though.


嗯,必须有一个更好的方法,但感谢你的建议...
Hmmm, there must be a better way, but thanks for the suggestion...


macca写道:
macca wrote:

我正在开发一个将在学校中用作教学辅助工具的应用程序,并且要求能够临时利用我的(在我的应用程序生成的页面中使用b
)网页javascript(例如

作为老师在

页面上围绕部分文字或图像绘制一个圆圈,指出它给学生们。)


我不知道我会怎么做但是认为它可能有事要做

与< canvashtml元素?


有人有什么想法吗?
I''m developing an application that is going to be used in schools as
a teaching aid and require the ability to temporarily draw on my (as
in pages produced by my application) web page using javascript (such
as a teacher drawing a circle around part of the text or image on the
page to point it out to the students).

I''m not sure how i would do this but think it may have something to do
with the <canvashtml element?

Does anybody have any ideas?



我不知道我在做什么,而且我太懒或太傻了找不到我

一。对吧?"


< http://catb.org/~esr/faqs/smart-questions.html>

PointedEars

-

Prototype.js是由不懂javascript的人写的

谁不懂javascript。不知道javascript的人不是设计使用javascript的系统的最佳建议来源。

- Richard Cornford,cljs,< f8 ** *****************@news.demon.co.uk>

"I have no clue what I''m doing, and I''m too lazy or too stupid to find me
one. Right?"

<http://catb.org/~esr/faqs/smart-questions.html>
PointedEars
--
Prototype.js was written by people who don''t know javascript for people
who don''t know javascript. People who don''t know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>


这篇关于使用javascript临时在页面上绘制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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