GithubHelp home page GithubHelp logo

cuitymiko / imagemap-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from quanxi613/imagemap-generator

0.0 1.0 0.0 349 KB

网上找的image map生成热区工具,放到本地方便访问

License: MIT License

CSS 45.88% HTML 9.04% JavaScript 45.08%

imagemap-generator's Introduction

imagemap-generator

网上找的image map生成热区工具,放到本地方便访问

出处: http://imagemap-generator.dariodomi.de/

使用方法

  1. 将本项目克隆到本地,浏览器打开index.html或者直接访问http://qiudeqing.com/imagemap-generator/
  2. 在输入框输入图片地址或者拖拽本地图片到输入框
  3. 等待图片加载后,鼠标移入图片区域会显示为十字架图标,依次点击热区图形的顶点,系统会自动计算区域并高亮,生成坐标代码.如需要生成矩形热区,在矩形左上角点击一下,然后在右下角点击一下即可
  4. 需要添加多个热区时,点击下方菜单中的Add Area即可从新计算热区
  5. 得到全部热区之后.下方会显示所有热区对应的area坐标代码.复制粘贴到项目源代码中即可使用

其他工具

https://github.com/kemayo/maphilight是imagemap 热区可视化工具,可以方便查看图片热区范围是否是需要的区域

注意事项

图片太大时拖拽会出错,建议图片不要太大,如果图片太大.推荐上传到服务器后输入绝对地址到输入框

maphilight使用

在页面添加以下代码可以查看图片热区

<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
<script src="https://rawgit.com/qiu-deqing/imagemap-generator/master/js/jquery.maphilight.min.js"></script>
<script>
  $('img[usemap]').maphilight();
</script>

imagemap-generator's People

Contributors

qiu-deqing avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.