本文主要介绍jquery实现彩云标注效果的简单示例图(jquery实现彩云标注效果的简单示例有哪些),下面一起看看jquery实现彩云标注效果的简单示例图(jquery实现彩云标注效果的简单示例有哪些)相关资讯。
本文介绍了一种用jquery实现彩色云标注效果的简单方法,供大家参考:1 .js代码:$(function{)randomcloudlabel;});函数randomcloudlabel{ var obj = $(# cloud label);function(number){ returns parse int(math . random* number 1);}函数的随机颜色{ var str = math . ceil(math . random)*(16777215)tostring(16);如果(字符串。长度和长度。lt;6){ 0 str;}返回一个字符;} for (len = obj.length,i = len;i-;){obj {i}。style . left = rand(600)px;;obj {i}。style . top = rand(400)px;;obj { i } method = color rand(5);obj {i}。style . zindex = rand(5);obj {i}。style . font size = rand(50)12px;obj {i}。style.color =#(颜色随机);}}二、html代码:web标准学习css javascript html 5 canvas视频音频jquery手机flash firefox chrome opera ie 9 css 3.0 andr iod apple jobs更感兴趣的读者可以查看题目:jquery常用插件希望本文能对jquery编程有所帮助。
了解更多jquery实现彩云标注效果的简单示例图(jquery实现彩云标注效果的简单示例有哪些)相关内容请关注本站点。