HTML5¼¼Êõ

Áݶ¬½«ÖÁ£¬Óü¸¿îÌØÐ§Å¯Å¯Éí - Çë½ÐÎÒÍ·Í·¸ç(2)

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£º²©¿ÍÔ° 2015-11-10 10:20 ÎÒÒªÆÀÂÛ( )

$(document).ready( function () {$( '#slideshowHolder' ).jqFancyTransitions({effect: '', // wave, zipper, curtain width: 500, // width of panel height: 700, // height of panel strips: 20, // number of

$(document).ready(function () { $('#slideshowHolder').jqFancyTransitions({ effect: '', // wave, zipper, curtain width: 500, // width of panel height: 700, // height of panel strips: 20, // number of strips delay: 5000, // delay between images in ms stripDelay: 50, // delay beetwen strips in ms titleOpacity: 0.7, // opacity of title titleSpeed: 1000, // speed of title appereance in ms position: 'alternate', // top, bottom, alternate, curtain direction: 'fountainAlternate', // left, right, alternate, random, fountain, fountainAlternate navigation: true, // prev and next navigation buttons links: }); });

3.4.´úÂëЧ¹û£º 

3.5.Ô´ÂëÏÂÔØ£º 

https://github.com/toutouge/WebProject/tree/master/PictureSwitch2

v4.0ͳ¼ÆÍ¼

4.1.html´úÂ룺 

Æû³µÏúÁ¿:´óÖÚ·áÌï±ð¿Ë¸£Ìس¤°²´óÖÚ·áÌï±ð¿Ë¸£Ìس¤°²

4.2.css´úÂ룺 

#content { position:absolute; top:50%; left:50%; margin:-340px 0 0 -450px; width:900px; height:600px; } .legend { float:left; width:250px; margin-top:140px; } #content h1 { font-family:'Cabin Sketch', arial, serif; text-shadow:3px 3px 0 #ddd; color:#193340; font-size:40px; margin-bottom:40px; text-align:right; } .skills { float:left; clear:both; width:100%; } .skills ul, .skills li { display:block; list-style:none; margin:0; padding:0; } .skills li { float:right; clear:both; padding:0 15px; height:35px; line-height:35px; color:#fff; margin-bottom:1px; font-size:18px; }

4.3.js´úÂ룺 

var o = { init: function () { this.diagram(); }, random: function (l, u) { return Math.floor((Math.random() * (u - l + 1)) + l); }, diagram: function () { var r = Raphael('diagram', 600, 600), rad = 73; r.circle(300, 300, 85).attr({ stroke: 'none', fill: '#193340' }); var title = r.text(300, 300, 'loading...').attr({ font: '20px Arial', fill: '#fff' }).toFront(); r.customAttributes.arc = function (value, color, rad) { var v = 3.6 * value, alpha = v == 360 ? 359.99 : v, random = o.random(91, 240), a = (random - alpha) * Math.PI / 180, b = random * Math.PI / 180, sx = 300 + rad * Math.cos(b), sy = 300 - rad * Math.sin(b), x = 300 + rad * Math.cos(a), y = 300 - rad * Math.sin(a), path = [['M', sx, sy], ['A', rad, rad, 0, +(alpha > 180), 1, x, y]]; return { path: path, stroke: color } } $('.get').find('.arc').each(function (i) { var t = $(this), color = t.find('.color').val(), value = t.find('.percent').val(), text = t.find('.text').text(); rad += 30; var z = r.path().attr({ arc: [value, color, rad], 'stroke-width': 26 }); z.mouseover(function () { this.animate({ 'stroke-width': 50, opacity: .75 }, 1000, 'elastic'); .toFront(); title.animate({ opacity: 0 }, 500, '>', function () { this.attr({ text: text + '\n' + value + '%' }).animate({ opacity: 1 }, 500, '<'); }); }).mouseout(function () { this.animate({ 'stroke-width': 26, opacity: 1 }, 1000, 'elastic'); }); }); } } $(function () { o.init(); });

4.4.´úÂëЧ¹û£º 

web ǰ¶ËÌØÐ§

4.5.Ô´ÂëÏÂÔØ£º 

https://github.com/toutouge/WebProject/tree/master/StatisticalGaphs

v5.0¹ö¶¯Ìõ·ÖÒ³

5.1.html´úÂ룺 

¡¡

1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎ×ªÔØµÄ¸å¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬Çë×ªÔØÊ±Îñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

Ïà¹ØÎÄÕÂ
  • CSS ¼¸¿î±È½Ï³£Óõķ­×ªÌØÐ§ - ÖÜÈ«535201285

    CSS ¼¸¿î±È½Ï³£Óõķ­×ªÌØÐ§ - ÖÜÈ«535201285

    2017-02-06 16:00

  • JqueryʵÏֵļ¸¿îƯÁÁµÄʱ¼äÖá - Ò»¸ö±±Æ¯µÄÅ®º¢

    JqueryʵÏֵļ¸¿îƯÁÁµÄʱ¼äÖá - Ò»¸ö±±Æ¯µÄÅ®º¢

    2017-01-23 10:03

  • JS×é¼þϵÁСª¡ªBootstrap×é¼þ¸£Àûƪ£º¼¸¿îºÃÓõÄ×é¼þÍÆ¼ö£¨¶þ£© - ÀÁµÃ°²·Ö

    JS×é¼þϵÁСª¡ªBootstrap×é¼þ¸£Àûƪ£º¼¸¿îºÃÓõÄ×é¼þÍÆ¼ö£¨¶þ£© - ÀÁ

    2016-07-14 15:00

  • JS×é¼þϵÁСª¡ªBootstrap×é¼þ¸£Àûƪ£º¼¸¿îºÃÓõÄ×é¼þÍÆ¼ö - ÀÁµÃ°²·Ö

    JS×é¼þϵÁСª¡ªBootstrap×é¼þ¸£Àûƪ£º¼¸¿îºÃÓõÄ×é¼þÍÆ¼ö - ÀÁµÃ°²·Ö

    2016-06-25 16:00

ÍøÓѵãÆÀ
Ô