编辑文章 标签云源码分享 使用tagcanvas.min.js 让你的标签添加特效 html5 canvas文字标签云 3D旋转  主要代码 ``` // 球形词云相关 window. function () { try { var i, et = document.getElementById('tags').childNodes; for (i in et) { et[i].nodeName == 'A' && et[i].addEventListener('mouseover', function (e) { e.preventDefault(); alert("干哈"); }); } TagCanvas.Start('myCanvas', 'tags', { textColour: '#222', outlineColour: 'red', reverse: true, depth: 0.8, dragControl: true, decel:0.95, maxSpeed: 0.01, initial: [-0.2, 0] }); } catch (e) { // something went wrong, hide the canvas container //document.getElementById('myCanvasContainer').style.display = 'none'; } }; ``` 源码下载 [hide]下载地址:百度网盘 [https://pan.baidu.com/s/1kTwycHugLoWzV6-Fpwy9PA ](https://pan.baidu.com/s/1kTwycHugLoWzV6-Fpwy9PA) 提取码: rkcp [/hide] <p>使用tagcanvas.min.js 让你的标签添加特效</p> <p>html5 canvas文字标签云 3D旋转</p> <p><img src="https://www.daxueyiwu.com/storage/thumbnails/_signature/1FVUEM0O2012QQ6KONJ6LVACID.jpg" alt="标签云" /></p> <p>主要代码</p> <pre><code> // 球形词云相关 window. function () { try { var i, et = document.getElementById('tags').childNodes; for (i in et) { et[i].nodeName == 'A' && et[i].addEventListener('mouseover', function (e) { e.preventDefault(); alert("干哈"); }); } TagCanvas.Start('myCanvas', 'tags', { textColour: '#222', outlineColour: 'red', reverse: true, depth: 0.8, dragControl: true, decel:0.95, maxSpeed: 0.01, initial: [-0.2, 0] }); } catch (e) { // something went wrong, hide the canvas container //document.getElementById('myCanvasContainer').style.display = 'none'; } }; </code></pre> <p>源码下载</p> <p>[hide]下载地址:百度网盘 <a href="https://pan.baidu.com/s/1kTwycHugLoWzV6-Fpwy9PA">https://pan.baidu.com/s/1kTwycHugLoWzV6-Fpwy9PA </a> 提取码: rkcp [/hide]</p> 标题: 分类: 请选择分类(必选) 博客 酷玩 分享 相册 标签: 按 Tab、回车或逗号把输入的文字变成标签;点 × 或在输入框为空时按退格删除;最多 8 个 封面图: 上传图片 建议尺寸 800x400,图片大小不超过 1MB 展开更多设置(关键词、摘要、转载、评论) 关键词: 摘要: 使用tagcanvas.min.js 让你的标签添加特效 html5 canvas文字标签云 3D旋转 主要代码 // 球形词云相关 window. function () { try { var i, et = document.getEl... 选项: 是否转载 启用评论 勾选「是否转载」可标注文章来源,原文链接可留空。 正文: 保存修改