- 浏览: 425244 次
- 性别:
- 来自: 唐山
文章分类
最新评论
-
hautbbs:
谢谢分享!
ASP.NET 导出Excel 和csv -
hautbbs:
感谢分享!
ASP.NET 导出Excel乱码的终极解决 -
wyf:
zcl920 写道只能说 看不懂。要发就发全 取一段出来 有什 ...
图片上绘制文字换行处理 -
zcl920:
只能说 看不懂。要发就发全 取一段出来 有什么用。
图片上绘制文字换行处理 -
380086154:
有用,谢谢。
js比较日期
<html> <head> <script language="JavaScript"> <!-- eye={p:0,x:0,y:0,w:0,h:0,r:0,v:0,s:0,isVertical:0,a1:0,a2:0,a3:0,color:'#ffffff',colorover:'#ffffff',backgroundcolor:'#0099ff',backgroundcolorover:'#000000',bordercolor:'#000000',fontsize:12,fontfamily:'Arial',pas:0,spinmenu:function(){this.p=this.r/this.s;this.a1=this.a2=this.isVertical?0:Math.PI/2},spinmenuitem:function(a7,a6,a5){a4=" onclick='eye.a2+=eye.pas;eye.muta()'";document.write("<div id='spinmenu"+this.a3+"' style='cursor:pointer;cursor:expression(\"hand\");position:absolute;width:"+this.w+"px;left:"+this.h+"px;"+"background-color:"+this.backgroundcolor+";color:"+this.color+";border:1px solid "+this.bordercolor+";font:normal "+this.fontsize+"px "+this.fontfamily+";text-align:center;cursor:default;z-Index:1000;' onmouseover='this.style.color=\""+this.colorover+"\";this.style.backgroundColor=\""+this.backgroundcolorover+"\"'"+ "onmouseout='this.style.color=\""+this.color+"\";this.style.backgroundColor=\""+this.backgroundcolor+"\"'"+a4+">"+a7+"</div>");this.a3++},muta:function(){a8=document.getElementById("controale");for(i=0;i<this.a3;i++){a9=document.getElementById("spinmenu"+i+"");a9s=a9.style;if(this.isVertical){xi=parseInt(this.r*Math.cos(this.a1+i*this.pas))/this.s;yi=parseInt(this.r*Math.sin(this.a1+i*this.pas));a10=(this.p+xi)/(2*this.p);a11=this.fontsize*(this.p+xi)/(2*this.p)+2;a12=parseInt(100*(this.p+xi)/(2*this.p))}else{xi=parseInt(this.r*Math.cos(this.a1+i*this.pas));yi=parseInt(this.r*Math.sin(this.a1+i*this.pas))/this.s;a10=(this.p+yi)/(2*this.p);a11=this.fontsize*(this.p+yi)/(2*this.p)+2;a12=parseInt(100*(this.p+yi)/(2*this.p))};a13=(this.w-20)*a10+20;a14=(this.h-20)*a10+10;a9s.top=(yi+this.y-a14/2)+"px";a9s.left=(xi+this.x-a13/2)+"px";a9s.width=a13+"px";a9s.fontSize=a11+"px";a9s.zIndex=a12};a8.style.top=this.y+(this.isVertical?this.r:this.p)+this.h/2+6;a8.style.left=this.x-a8.offsetWidth/2;if(this.a1!=this.a2){this.a1=(this.a1>this.a2)?(this.a1-this.pas/this.v):(this.a1+this.pas/this.v);if(Math.abs(this.a1-this.a2)<this.pas/this.v) this.a1=this.a2;setTimeout("eye.muta()",10)}},spinmenuclose:function(){this.pas=2*Math.PI/this.a3;document.write('<div id="controale" style="position:absolute"><button type="" onclick="eye.a2+=eye.pas;eye.muta()" onfocus="this.blur()"><<</button> <button type="" onclick="eye.a2-=eye.pas;eye.muta()" onfocus="this.blur()">>></button></div>');eye.muta()}}; function getposOffset(what, offsettype){var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;var parentEl=what.offsetParent;while (parentEl!=null){totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft :totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}return totaloffset; } //--> </script> </head> <body> <div style="position:relative;width:800;height:700"> <script type="text/javascript"> eye.isVertical = 0; //if it's vertical or horizontal [01] eye.x = 400; // x offset from point of insertion on page eye.y = 70; // y offset from point of insertion on page eye.w = 150; // item's width eye.h = 130; // height eye.r = 200; // menu's radius eye.v = 20; // velocity eye.s = 3; // scale in space (for 3D effect) eye.color = '#ffffff'; // normal text color eye.colorover = '#ffffff'; // mouseover text color eye.backgroundcolor = '#0099ff'; // normal background color eye.backgroundcolorover = '#990000'; // mouseover background color eye.bordercolor = '#000000'; //border color eye.fontsize = 12; // font size eye.fontfamily = 'Arial'; //font family if (document.getElementById){ document.write('<div id="spinanchor" style="height:'+eval(eye.h+20)+'"></div>') eye.anchor=document.getElementById('spinanchor') eye.spinmenu(); eye.x+=getposOffset(eye.anchor, "left") //relatively position it eye.y+=getposOffset(eye.anchor, "top") //relatively position it //menuitem: eye.spinmenuitem(text, link, target) eye.spinmenuitem("BHCODE","http://www.bhcode.net"); eye.spinmenuitem("CLUB","http://club.bhcode.net"); eye.spinmenuitem("SUCAI","http://sucai.bhcode.net"); eye.spinmenuitem("JS","http://js.bhcode.net"); eye.spinmenuclose(); document.write('<div id="controale" style="position:absolute"><button type="" onclick="eye.a2+=eye.pas;eye.muta()" onfocus="this.blur()">ffffffffff</button> <button type="" onclick="eye.a2-=eye.pas;eye.muta()" onfocus="this.blur()">>></button></div>') } </script> </div> </body> </html>
发表评论
-
柯里化函数
2018-01-31 18:01 444function curry(fn){ var arg ... -
作用域安全的构造函数
2018-01-31 16:49 461function Person(name, age, job ... -
JS检测浏览器弹出窗口是否被屏蔽
2018-01-31 15:50 895var blocked = false; try { ... -
组合继承
2018-01-30 16:22 363function SuperType(name){ th ... -
Js逻辑与或操作符
2018-01-25 10:24 575逻辑与操作可以应用于任何类型的操作数,而不仅仅 ... -
Js 观察者模式
2018-01-23 18:46 511function EventTarget(){ thi ... -
兼容所有浏览器事件注册
2018-01-22 17:02 473//EventUtil 的用法如下所示。 var Eve ... -
元素的各种位置,偏移量,大小,滚动。
2018-01-19 15:33 597要想知道某个元素在页面上的偏移量,将这个元素的 ... -
用户代理字符串检测,检测呈现引擎、平台、Windows 操作系统、移动设备 和游戏系统
2018-01-18 17:21 522var client = function(){ //呈 ... -
JavaScript寄生组合式继承
2018-01-17 22:29 566function inheritPrototype(sub ... -
jquery.validate动态加规则
2016-08-22 17:27 1304// 动态添加验证规则 $("# ... -
什么是JSONP
2016-04-07 19:55 427什么是JSONP? 先说说JSONP是怎么产生的: 1 ... -
DatePicker - jQuery 的日期选择控件
2015-09-07 13:03 1397DatePicker - jQuery 的日期选择控件 ... -
Table 导出数据tableExport.jquery.plugin
2015-08-27 11:12 2086https://github.com/kayalshri/t ... -
jqgrid刷新当前页面
2015-08-17 13:52 6976/** *刷新,jqGrid刷新当前列表页代码 ... -
ace加 jqueryui 的 dialog弹出窗口
2015-08-13 23:08 1299HTML <div id="dialog ... -
jqGrid添加行按钮,添加工具栏自定义按钮
2015-08-13 22:21 33122html <table id="gri ... -
JqGrid应用
2015-08-12 14:12 670<!DOCTYPE html PUBLIC " ... -
AngularJS入门教程
2015-07-29 12:09 574http://blog.jobbole.com/46779/ ... -
六款帮助你实现惊艳视差滚动效果的jQuery插件
2015-04-18 10:49 587视差(Parallax)是指从不同的点看一个物体时形成的视觉 ...
相关推荐
这是一款使用纯CSS3制作的3D旋转导航菜单特效。该3D旋转导航菜单特效中主要使用了CSS 3D Transforms技术。当鼠标hover菜单项时,菜单项会以3D立方体的方式旋转。
HTML5 3D图片旋转效果HTML5 3D图片旋转效果HTML5 3D图片旋转效果HTML5 3D图片旋转效果HTML5 3D图片旋转效果HTML5 3D图片旋转效果HTML5 3D图片旋转效果HTML5 3D图片旋转效果HTML5 3D图片旋转效果HTML5 3D图片旋转效果...
用HTML+CSS制作3D旋转木马效果 用HTML+CSS制作3D旋转木马效果 用HTML+CSS制作3D旋转木马效果 用HTML+CSS制作3D旋转木马效果 用HTML+CSS制作3D旋转木马效果 用HTML+CSS制作3D旋转木马效果 用HTML+CSS制作...
3D球状旋转旋转tag
由36张图片组成的3D立方体旋转效果
这是一款效果非常炫酷的三联切换仿3D效果旋转木马jQuery插件。该旋转木马效果并非正真的3D效果,而是使用PNG图片来模拟图片的阴影,制作出类似图片的3D阴影效果,以达到兼容低版本IE浏览器的目的。
android 3D Tabhost 旋转 动画 效果,3D旋转的tabhost
Html5+js+CSS3实现3D旋转效果
FLEX 3D 旋转 源码 代码看看 改改 可以出很多有趣效果的
jQuery仿3D效果三联切换旋转木马插件源码是一款效果非常炫酷的三联切换仿3D效果旋转木马jQuery插件。该旋转木马效果并非正真的3D效果,而是使用PNG图片来模拟图片的阴影,制作出类似图片的3D阴影效果,以达到兼容低...
android实现了View--3d旋转效果
Flex3D旋转效果 Flex实现3d 3dRotation Flex学习3d教程 flex builder 如何做出3D效果
3D有叠层旋转效果的特效,android开发的。采用继承gallery类实现的3D旋转效果。我花了好大的心血写的。提供各位参考。以帮助开发中急需要此效果的同志们。
android 3D旋转效果控件
css效果旋转3d图
超酷CSS3图片3D旋转效果 超酷CSS3图片3D旋转效果 超酷CSS3图片3D旋转效果
很粗略的实现了3d旋转效果。主要是图片的作用.需要的拿去看看
WPF的3D旋转效果,基于3D写的。效果还不错,执行效率也可以。
jquery 旋转木马3D文字效果.rarjquery 旋转木马3D文字效果.rarjquery 旋转木马3D文字效果.rarjquery 旋转木马3D文字效果.rarjquery 旋转木马3D文字效果.rarjquery 旋转木马3D文字效果.rar
球形多图3d旋转,纯css3代码