开发者

Display a page's elements as selectable (HTML/PHP)

I am开发者_高级运维 looking for a way to make all visible objects in a webpage selectable by a visitor.

For example, I take google's homepage as source, my php script already gets the homepage, and stores everything in an array.

Now I want to show the google homepage with every object (span, div, body, td etc...) selectable. My visitor will select a few objects and then click submit (form post)

I do not know how to do this, even after searching dhtml and so ..

Thansk for your help

Mykeul


  1. Parse the html page, if the actual element has an ID, just store, if not set an ID.
  2. When you have all ID-s set a border for each element
  3. Set an onClick, onMouseOver event handler
  4. Handle clicking
  5. Finally post the select element's id

Jquery would help you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜