中文日期限制"; props2=""; Split=360/n; Dsplit=360/D.length; HandHeight=ClockHeight/4.5 HandWidth=ClockWidth/4.5 HandY=-7; HandX=-2.5; scrll=0; step=0.06; currStep=0; y=new Array();x=new Array();Y=new Array();X=new Array(); for (i=0; i '+props2+D[i]+''); for (i=0; i '+props+Face[i]+''); for (i=0; i '+S[i]+''); for (i=0; i '+M[i]+''); for (i=0; i '+H[i]+''); } if (ie){ document.wri...
HTML部分代码: 代码如下: 鼠标经过时改变背景色 鼠标经过时改变背景色 鼠标经过时改变背景色 鼠标经过时改变背景色 javascript部分代码: 当鼠标经过时,给li添加class="current"类,鼠标离开时,去除该类,达到改变背景色的目的 代码如下: window.onload = function() { var lis = document.getElementsByTagName("li"); for (var i=0; i<lis.length; i++) { lis[i].onmouseover = function() { this.setAttribute("class",...
代码如下: $(document).ready(function () { //按钮样式切换 $("#btFeedBack").hover( function () { $(this).removeClass("btFeed").addClass("btFeedhover"); }, function () { $(this).removeClass("btFeedhover").addClass("btFeed"); } ); });
效果演示:源代码: 代码如下: Single images var MoveBKimg=new Class({ initialize:function(){ this.$L=0; this.$T=0; }, Todo:function(i,opt){ this.opt={ bw:opt.bw || 0, //容器宽度 bh:opt.bh || 0, iw:opt.iw || 0, //图像宽度 ih:opt.ih || 0, X:opt.X || 0, //鼠标的clientX坐标 Y:opt.Y || 0 };o=this.opt; if(!i || !o.iw || !o.ih || !o.bw || !o.bh){return false;} o.iw=o.iw-o.bw; //图像实际可被移动的x轴范...
代码如下: .uboxstyle{width:174px;height:39px; float:right;} #uboxstyle{width:174px;height:39px; float:right;} #uboxstyle .select_box{width:174px;height:39px; float:left;} #uboxstyle div.tag_select{display:block;color:#79A2BD;width:174px;height:39px;background:transparent url("images/select01.jpg") no-repeat 0 0;padding:0 10px;line-height:39px;} #uboxstyle div.tag_select_hover{display:block;color:...
代码1:最常用的代码,比较简单 代码如下:
JS控制按钮自动切换背景颜色,可暂停_脚本之家 .grigg{ position:relative; font-family:Verdana; font-size:16px;color:#ffffff; } y=" "; function colourWrite(){ y=document.bgColor; if (document.layers) {x=document.FM.box.value} if (document.all) {x=document.all.kurt.innerHTML} r=x+=y.toUpperCase(); Wrte=r+" "; if (document.layers) { document.FM.box.value=Wrte; document.layers.kurt.documen...
JQuery实现: 代码如下: "http://www.w3.org/TR/html4/loose.dtd"> New Web Project $(function(){ //可以是:$('#t1 tbody tr:even').css('background','red'); $('#t1 > tbody tr:even').css('background','red'); $('#t1 > tbody tr:odd').css('background','blue'); }); aaaaaaa bbbbbbb ccccccc ddddddd eeeeeee fffffff ggggggg hhhhhhh JS实现: 代码如下: "http://www.w3.org/TR/html4/loose.dtd"> New...
无标题文档 1 11 上移 下移 2 22 上移 下移 3 33 上移 下移 4 44 上移 下移 5 55 上移 下移 [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
用jquery如何实现点击一栏目实现栏目变色,再点击另一栏目也变色,但原来的变回原色,我有个数组a(1,2,3,我循环遍历输出a的值。 代码如下: a[0] a[1] a[2] 点击1,1变色,点击2,2变色,但1会变回原来的颜色.我show方法实现了其他的功能. 下面是我初试的代码: HTML code: 代码如下: .clckClass{color:red;} $('ul li a').bind('click', function(){ $('ul li a:not(this)').removeClass('clckClass'); $(this).addClass('...
天使用jQuery获取样式中的background-color的值时发现在获取到的颜色值在IE中与Chrome、Firefox显示的格式不一样,IE中是以HEX格式显示#ffff00,而Chrome、Firefox中则是以GRB格式显示rgb(255,0,0),由于需要将颜色值存储到数据库中,所以想让颜色值的格式统一下(其实不统一也是可以存的)。搜索了一下,从国外的一个网站上得到一段代码 代码如下:$.fn.getHexBackgroundColor = function() { var rgb = $(this).css(background-co...
JS实现的表格 document.write(''); var i=0; while(i') } document.write(''+i+''); i++; //document.write(''); } if(i%10==0){ document.write(''); } document.write(''); var ys=null; function show(obj){ ys=obj.bgColor; obj.bgColor="red"; } function noshow(obj){ obj.bgColor=ys; } [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
JavaScript渐变色 diff[i])color1[i] = color1[i] - 1; color2[i] = diff[i] - color1[i]; color2[i] = color2[i] * 15; color2[i] = Math.round(color2[i] * Math.pow(10, 0)); } x=new Array(); two[0]=0; two[1]=0; two[2]=0; document.write(''); if(direction==0) document.write(''); for(i=0;i'); document.write('15) { two[j] = two[j] - 15; one[j]++; } } if(direction==0) document.write('" width="...
回到顶部:哭泣的小丑 html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl, dt, dd, ol, ul, li,fieldset, form, label, legend, input,table, caption, tbody, tfoot, thead, tr, th, td,article, aside, canvas, details, embed,fig...
提到博客,不能不提到博客园cnblogs.com。绝对是国内非常非常牛逼的博客云集地。可能我关注博客的时间比较短,从2010年才开始,而那里的博主们基本4年以上的博龄了。 在群里有人要个比较个性的企业网站,诗缘妹子就贴了一个网址,我没事也点了看了下,果真不错。下面你就想到了,这个背景云变换js特效我看上眼了。 由于用的一些css3属性,部分低版本的浏览器可是没有效果的哦。 使用方法很简单,直接在你所要实现效果的最底层加入:...