`
b_l_east
  • 浏览: 639188 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

2011-6-9 有趣的Google能发声音乐电吉他Logo

阅读更多

今天Google的Logo变成了一个能发声的电吉他:

 


查看后台图片:

 


查看源代码:

 

<!doctype html><html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Google</title><script>window.google={kEI:"4k7wTZ2ZIo7CvgPFg-jbBA",kEXPI:"17259,24472,27147,28505,29689,29696,29795,29813,30098,30784",kCSI:{e:"17259,24472,27147,28505,29689,29696,29795,29813,30098,30784",ei:"4k7wTZ2ZIo7CvgPFg-jbBA",expi:"17259,24472,27147,28505,29689,29696,29795,29813,30098,30784"},authuser:0,ml:function(){},pageState:"#",kHL:"zh-CN",time:function(){return(new Date).getTime()},
log:function(c,d,b){var a=new Image,e=google,g=e.lc,f=e.li;a.onerror=(a.onload=(a.onabort=function(){delete g[f]}));g[f]=a;b=b||"/gen_204?atyp=i&ct="+c+"&cad="+d+"&zx="+google.time();a.src=b;e.li=f+1},lc:[],li:0,j:{en:1,l:function(){google.fl=true},e:function(){google.fl=true},b:location.hash&&location.hash!="#",bv:11,pm:"",
pl:[],mc:0,sc:0.5,u:"c9c918f0"},Toolbelt:{}};(function(){var c=google.j;window.onpopstate=function(){c.psc=1};for(var d=0,b;b=["ad",
"bc","is","p","pa","ac","pc","pah","ph","sa","slp","spf","xx","zc","zz"][d++];)(function(a){c[a]=function(){c.pl.push([a,arguments])}})(b)})();
window.google.sn="webhp";var i=window.google.timers={};window.google.startTick=function(a,b){i[a]={t:{start:(new Date).getTime()},bfr:!(!b)}};window.google.tick=function(a,b,c){if(!i[a])google.startTick(a);i[a].t[b]=c||(new Date).getTime()};google.startTick("load",true);try{window.google.pt=window.gtbExternal&&window.gtbExternal.pageT();
}catch(v){}
</script><style id=gstyle>body{margin:0;overflow-y:scroll}#gog{padding:3px 8px 0}td{line-height:.8em}.gac_m td{line-height:17px}form{margin-bottom:20px}body,td,a,p,.h{font-family:arial,sans-serif}.h{color:#36c;font-size:20px}.q{color:#00c}.ts td{padding:0}.ts{border-collapse:collapse}em{color:#c03;font-style:normal;font-weight:normal}a em{text-decoration:underline}.lst{height:25px;width:496px}.ds{border-bottom:solid 1px #e7e7e7;border-right:solid 1px #e7e7e7;display:-moz-inline-box;display:inline-block;margin:3px 0 4px;margin-left:4px}input{font-family:inherit}a.gb1,a.gb2,a.gb3,a.gb4{color:#11c !important}#gog{background:#fff}#gbar,#guser{font-size:13px;padding-top:1px !important}#gbar{float:left;height:22px}#guser{padding-bottom:7px !important;text-align:right}.gbh,.gbd{border-top:1px solid #c9d7f1;font-size:1px}.gbh{height:0;position:absolute;top:24px;width:100%}#gbs,.gbm{background:#fff;left:0;position:absolute;text-align:left;visibility:hidden;z-index:1000}.gbm{border:1px solid;border-color:#c9d7f1 #36c #36c #a2bae7;z-index:1001}.gb1{margin-right:.5em}.gb1,.gb3{zoom:1}.gb2{display:block;padding:.2em .5em}.gb2,.gb3{text-decoration:none !important;border-bottom:none}a.gb1,a.gb4{text-decoration:underline !important}a.gb1,a.gb2,a.gb3,a.gb4{color:#00c !important}a.gb2:hover{background:#36c;color:#fff !important}#gbar .gbz0l{color:#000 !important;cursor:default;font-weight:bold;text-decoration:none !important}body{background:#fff;color:black}input{-moz-box-sizing:content-box}a{color:#11c;text-decoration:none}a:hover,a:active{text-decoration:underline}.fl a{color:#36c}a:visited{color:#551a8b}a.gb1,a.gb4{text-decoration:underline}a.gb3:hover{text-decoration:none}#ghead a.gb2:hover{color:#fff!important}.sblc{padding-top:5px}.sblc a{display:block;margin:2px 0;margin-left:13px;font-size:11px;}.lsbb{background:#eee;border:solid 1px;border-color:#ccc #999 #999 #ccc;height:30px;display:block}.ftl,#fll a{display:inline-block;margin:0 12px}.lsb{background:url(/images/srpr/nav_logo73.png) bottom;border:none;color:#000;cursor:pointer;height:30px;margin:0;outline:0;font:15px arial,sans-serif;vertical-align:top}.lsb:active{background:#ccc}.lst:focus{outline:none}#addlang a{padding:0 3px}.gac_v div{display:none}.gac_v .gac_v2,.gac_bt{display:block!important}</style><script>var _gjwl=location;function _gjuc(){var b=_gjwl.href.indexOf("#");if(b>=0){var a=_gjwl.href.substring(b+1);if(/(^|&)q=/.test(a)&&a.indexOf("#")==-1&&!/(^|&)cad=h($|&)/.test(a)){_gjwl.replace("/search?"+a.replace(/(^|&)fp=[^&]*/g,"")+"&cad=h");return 1}}return 0}function _gjp(){!(window._gjwl.hash&&window._gjuc())&&setTimeout(_gjp,500)};
google.y={};google.x=function(e,g){google.y[e.id]=[e,g];return false};window.rwt=function(a,f,g,l,m,h,c,n,i){try{if(a===window){a=window.event.srcElement;while(a){if(a.href)break;a=a.parentNode}}var b=encodeURIComponent||escape,d;d=a.getAttribute("href");if(c&&c.substring(0,6)!="&sig2=")c="&sig2="+c;var o=["/url?sa=t","","&cd=",b(m),i?"&authuser="+b(i):"",google.j&&google.j.pf?"&sqi=2":"","&ved=",b(n),"&url=",b(d).replace(/\+/g,"%2B"),"&ei=","4k7wTZ2ZIo7CvgPFg-jbBA",h?"&usg="+h:"",c].join("");a.href=o;a.onmousedown=""}catch(p){}return true};
window.gbar={qs:function(){},tg:function(e){var o={id:'gbar'};for(i in e)o[i]=e[i];google.x(o,function(){gbar.tg(o)})}};</script></head><body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onload="try{!google.j.b&&document.f.q.focus()}catch(e){};if(document.images)new Image().src='/images/srpr/nav_logo73.png'" ><textarea id=csi style=display:none></textarea><script>if(google.j.b)document.body.style.visibility='hidden';</script><div id=mngb><div id=gog><div id=gbar><nobr><a id=gb_1 href="http://www.google.com.hk/webhp?hl=zh-CN&tab=ww" onclick=gbar.qs(this) class="gb1 gbz0l">网页</a> <a id=gb_2 href="http://www.google.com.hk/imghp?hl=zh-CN&tab=wi" onclick=gbar.qs(this) class=gb1>图片</a> <a id=gb_12 href="http://www.google.com.hk/videohp?hl=zh-CN&tab=wv" onclick=gbar.qs(this) class=gb1>视频</a> <a id=gb_8 href="http://ditu.google.cn/maps?hl=zh-CN&tab=wl" onclick=gbar.qs(this) class=gb1>地图</a> <a id=gb_5 href="http://news.google.com.hk/nwshp?hl=zh-CN&tab=wn" onclick=gbar.qs(this) class=gb1>新闻</a> <a id=gb_6 href="http://www.google.cn/prdhp?hl=zh-CN&tab=wf" onclick=gbar.qs(this) class=gb1>购物</a> <a id=gb_51 href="http://translate.google.cn/?hl=zh-CN&tab=wT" onclick=gbar.qs(this) class=gb1>翻译</a> <a href="http://mail.google.com/mail/?hl=zh-CN&tab=wm" class=gb1>Gmail</a> <a href="http://www.google.com.hk/intl/zh-CN/options/" onclick="this.blur();gbar.tg(event);return !1" aria-haspopup=true class=gb3><u>更多</u> <small>&#9660;</small></a><div class=gbm id=gbi><a id=gb_73 href="http://www.google.cn/music?hl=zh-CN&tab=wU" onclick=gbar.qs(this) class=gb2>音乐</a> <a id=gb_27 href="http://www.google.com.hk/finance?hl=zh-CN&tab=we" onclick=gbar.qs(this) class=gb2>财经</a> <a id=gb_37 href="http://wenda.google.com.hk/wenda/?hl=zh-CN&tab=w2" onclick=gbar.qs(this) class=gb2>问答</a> <a id=gb_9 href="http://scholar.google.com.hk/schhp?hl=zh-CN&tab=ws" onclick=gbar.qs(this) class=gb2>学术搜索</a> <a id=gb_13 href="http://blogsearch.google.com.hk/?hl=zh-CN&tab=wb" onclick=gbar.qs(this) class=gb2>博客</a> <a id=gb_92 href="http://www.google.com.hk/realtime?hl=zh-CN&tab=wY" onclick=gbar.qs(this) class=gb2>实时</a> <a id=gb_42 href="http://www.265.com/?hl=zh-CN&tab=wA" onclick=gbar.qs(this) class=gb2>265导航</a> <div class=gb2><div class=gbd></div></div><a id=gb_24 href="http://www.google.com/calendar?hl=zh-CN&tab=wc" onclick=gbar.qs(this) class=gb2>日历</a> <a id=gb_31 href="http://picasaweb.google.com.hk/home?hl=zh-CN&tab=wq" onclick=gbar.qs(this) class=gb2>照片</a> <a href="http://docs.google.com/?hl=zh-CN&tab=wo" class=gb2>文档</a> <a href="http://tools.google.com/pinyin/?hl=zh-CN&tab=wI" class=gb2>输入法</a> <a href="http://toolbar.google.com/?hl=zh-CN&tab=wO" class=gb2>工具栏</a> <a href="http://pack.google.cn/?hl=zh-CN&tab=wP" class=gb2>软件精选</a> <div class=gb2><div class=gbd></div></div><a href="http://www.google.com.hk/intl/zh-CN/options/" class=gb2>更多 &raquo;</a> </div></nobr></div><div id=guser width=100%><nobr><span id=gbn class=gbi></span><span id=gbf class=gbf></span><span id=gbe><a href="/url?sa=p&pref=ig&pval=3&q=http://www.google.com.hk/ig%3Fhl%3Dzh-CN%26source%3Diglk&usg=AFQjCNHWIhVsTU7Iy1KfwdIUzjzVuUpZzw" class=gb4>iGoogle 个性化首页</a> | </span><a id="gb_62" href="/preferences?hl=zh-CN" class=gb4>搜索设置</a> | <a id="gb_70" href="https://www.google.com/accounts/ServiceLogin?hl=zh-CN&continue=http://www.google.com.hk/webhp%3Fhl%3Dzh-CN" class=gb4>登录</a></nobr></div><div class=gbh style=left:0></div><div class=gbh style=right:0></div></div></div><iframe name=wgjf style=display:none src="" onload="google.j.l()" onerror="google.j.e()"></iframe><textarea id=wgjc style=display:none></textarea><textarea id=wwcache style=display:none></textarea><textarea id=csi style=display:none></textarea><textarea id=hcache style=display:none></textarea><div id=main><center><span id=body><center><br clear=all id=lgpd><div id=lga><style>#hplogo:active,#hplogo:focus{outline:none}#hplogo-g{background:url(logos/2011/guitar11-hp-sprite.png) no-repeat 0 0;height:175px;position:relative;width:474px}#hplogo-click{background:url(logos/2011/guitar11-hp-sprite.png) no-repeat -2000px -2000px;cursor:pointer;height:130px;left:0;position:absolute;top:0;width:474px}#hplogo-lcd{height:30px;left:70px;position:absolute;top:129px;width:200px}#hplogo-lcd-icon{background:url(logos/2011/guitar11-hp-sprite.png) no-repeat -580px -162px;cursor:pointer;height:0;position:absolute;width:0}#hplogo-lcd-text{background:transparent;border:0 none;color:#666;cursor:text;font-family:"VT323",arial,sans-serif;font-size:14px;left:77px;position:absolute;top:134px;text-decoration:none;width:182px}#hplogo-lcd-screen{background:url(logos/2011/guitar11-hp-sprite.png) no-repeat -2000px -2000px;height:20px;left:52px;position:absolute;top:134px;width:214px}#hplogo-on{background:url(logos/2011/guitar11-hp-sprite.png) no-repeat -809px -39px;height:37px;left:272px;position:absolute;top:123px;width:62px}#hplogo-led{background:url(logos/2011/guitar11-hp-sprite.png) no-repeat -2000px -2000px;height:21px;left:292px;position:absolute;top:133px;width:21px}.hplogo-str{background:url(logos/2011/guitar11-hp-sprite.png) no-repeat -530px -60px;height:20px;position:absolute;width:255px}#hplogot{-webkit-box-shadow:5px 5px 10px #ddd;-moz-box-shadow:5px 5px 10px #ddd;box-shadow:5px 5px 10px #ddd;-webkit-transition:opacity 0.5s ease-out;-moz-transition:opacity 0.5s ease-out;-o-transition:opacity 0.5s ease-out;transition:opacity 0.5s ease-out;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#ffffca;border:1px solid #b5b5b5;cursor:pointer;display:none;font:normal 9pt arial,sans-serif;left:128px;opacity:0;padding:2px 3px;position:absolute;top:16px;white-space:nowrap}</style><div id=hplogo border=0><div id=hplogo-g><div id=hplogo-click onclick="google.doodle.go();"></div><div id=hplogo-lcd-screen></div><div id=hplogo-lcd-icon></div><input id=hplogo-lcd-text value="" autocomplete=off onclick="this.focus();this.select()" readonly=readonly><div id=hplogo-on></div><div id=hplogo-led></div><div id=hplogot>电吉他之父莱斯·保罗 96 周年诞辰</div></div><div style="height:0;left:-100px;overflow:hidden;position:absolute;top:-100px;width:0"><input id=hplogo-i></div></div><script>(function(){var g=null,h;try{if(!google.doodle)google.doodle={};var i,m,n,o,r,s,t,u,v,aa,w,ba,ca,da=navigator.userAgent.indexOf("MSIE")>=0,ea=[[3,"#776a62","#2063ff",2,[[28,23],[103,23]]],[5,"#776a62","#f61b33",2,[[28,38],[103,38]]],[0,"#776a62","#ffdd24",2,[[65,67],[318,67]]],[2,"#776a62","#07d238",2,[[28,81],[281,81]]],[7,"#776a62","#2063ff",1,[[28,96.5],[281,96.5]]],[9,"#776a62","#f61b33",1,[[29,111.5],[104,111.5]]],[1,"#776a62","#07d238",2,[[358,66],[433,66]]],[4,"#776a62","#2063ff",2,[[358,81],[433,81]]],[6,"#776a62","#f61b33",2,[[330,96],[405,96]]],[8,"#776a62","#ffdd24",1,[[358,111.5],[434,111.5]]]],fa=0,ga=0,x=0,y=0,z=!0,A=[],B=g,C=g,D=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},E=function(a,b,c){if(a){if(!google.doodle.ba)google.doodle.ba=[];google.doodle.ba.push(arguments);var d=a,e=b,f=c;d.addEventListener?d.addEventListener(e,f,!1):d.attachEvent("on"+e,f)}},ha=function(a,b,c){a&&(a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent("on"+b,c))},ia=function(){if(google.doodle.ba)for(var a;a=google.doodle.ba.pop();)ha.apply(g,a)},F=function(a){a?a.stopPropagation&&a.stopPropagation():window.event.cancelBubble=!0;return!1},G=function(a){if(i!==a){var b=i;i=a;for(a=0;a<A.length;++a)A[a](b)}},H=0;A.push(function(){var a=document.getElementById("hplogo-on");if(a)if(i==4)a.style.backgroundPosition="-809px 0";else{a.style.backgroundPosition="-809px -39px";a=document.forms.f||document.forms.gs||document.forms.ab;try{a.q.focus()}catch(b){}}});var ja=function(a){G(i==4?0:4);return F(a)},I=g,la=function(a){D(document.getElementById("goo-gl-script"));I&&window.clearTimeout(I);var b="http://google-lespaul.appspot.com?callback=google.doodle.url&url="+encodeURIComponent(a),c=document.createElement("script");c.src=b;c.id="goo-gl-script";I=window.setTimeout(function(){ka(a)},2E3);(document.getElementById("xjsc")||document.body).appendChild(c)},ma=function(a){a&&a.status=="OK"&&!a.error&&a.id&&ka(a.id)},ka=function(a){if(i==0||i==4){window.clearTimeout(I);var b=document.getElementById("hplogo-lcd-text");if(b)b.value=a,b.select()}},J=[[0,0,0,0,0,0],[-540,-162,9,9,59,139],[-551,-162,9,6,62,139],[-559,-162,11,17,55,138]],L=function(a){var b=document.getElementById("hplogo-lcd-screen");if(b)b.style.backgroundPosition="-678px -139px";if(b=document.getElementById("hplogo-lcd-icon"))b.style.backgroundPosition=J[a][0]+"px "+J[a][1]+"px",b.style.height=J[a][2]+"px",b.style.width=J[a][3]+"px",b.style.left=J[a][4]+"px",b.style.top=J[a][5]+"px"};A.push(function(a){var b=document.getElementById("hplogo-lcd-text");if(i==5){if(L(1),b.value=="")b.value="Playing..."}else if(B&&(i==0||i==4)){if(L(2),M(),b.value=="Playing...")b.value=""}else if(i==1)L(3),b.value="Recording";if(i!=2&&(a==1||a==2)&&B)B.stop(),M(),L(B.d.length==0?0:2),b.value="",C=g,(a=B.Wa())&&la(a)});var na=function(a){B&&(i==0||i==4)?(G(5),B.play()):i==5&&G(4);return F(a)};A.push(function(){if(i!=0)try{document.getElementById("hplogo-i").focus()}catch(a){}});A.push(function(){i==1&&(B=new N,C=B.Za())});var oa=!1,O=g,qa=function(){P();O=window.setTimeout(function(){pa(!0)},1E3)},P=function(){O&&window.clearTimeout(O);O=g;pa(!1)},pa=function(a){var b=document.getElementById("hplogot");if(b)oa?(b.style.display="block",b.style.opacity=a?1:0):b.style.display=a?"block":"none"},va=function(){E(document,"keydown",ra);E(document,"mousemove",Q);E(document,"touchmove",Q);E(document,"touchstart",sa);E(window,"resize",ta);var a=document.forms.f||document.forms.gs||document.forms.ab;a&&(E(a.q,"blur",function(){m=!1}),E(a.q,"focus",function(){m=!0;i!=5&&G(0)}));E(document.body,"mouseout",ua);if(a=document.getElementById("hplogo-on"))a.onclick=ja,a.style.cursor="pointer";if(a=document.getElementById("hplogo-led"))a.onclick=ja,a.style.cursor="pointer";if(a=document.getElementById("hplogo-lcd-icon"))a.onclick=na;if((a=document.getElementById("hplogo-click"))&&!da)a.onmousemove=qa,a.onmouseout=P},sa=function(a){var b=wa(a);b[0]>=x&&b[0]<=x+474&&b[1]>=y&&b[1]<=y+175&&a.preventDefault()},wa=function(a){a=a||window.event;return[(a.clientX||a.targetTouches&&a.targetTouches[0].clientX||0)+(document.body.scrollLeft||document.documentElement.scrollLeft),(a.clientY||a.targetTouches&&a.targetTouches[0].clientY||0)+(document.body.scrollTop||document.documentElement.scrollTop)]},Q=function(a){a=a||window.event;a=wa(a);fa=a[0];ga=a[1]},xa={49:2,50:6,51:3,52:0,53:7,54:1,55:8,56:4,57:9,48:5,81:2,87:6,69:3,82:0,84:7,89:1,85:8,73:4,79:9,80:5,65:2,83:6,68:3,70:0,71:7,72:1,74:8,75:4,76:9,186:5,90:2,88:6,67:3,86:0,66:7,78:1,77:8,188:4,190:9,191:5},ra=function(a){var b=a||window.event;return n&&!m&&!b.altKey&&!b.ctrlKey&&!b.metaKey&&(b=xa[b.keyCode],typeof b=="number")?(i==0&&G(4),n.aa(b),F(a)):!0},ta=function(){z&&o!=g&&(z=!1,window.setTimeout(function(){z=!0;var a=o,b=0;do b+=a.offsetLeft;while(a=a.offsetParent);x=b;a=o;b=0;do b+=a.offsetTop;while(a=a.offsetParent);y=b},30))},ua=function(a){(a=a||window.event)&&!a.toElement&&Q(a)},ya=function(a,b){this.a=a;this.P=b;this.width=474;this.height=175;this.A=[];this.Aa=this.M=!1;this.Z=0;this.ia=this.L();this.ja=this.$();this.ga=new R(0,0);this.ha=new R(0,0);this.za=!0;this.Ca=(new Date).getTime();this.Oa();this.Ba()};h=ya.prototype;h.Oa=function(){for(var a=0,b;b=ea[a++];)this.A.push(new za(b[4][0][0],b[4][0][1],b[4][1][0],b[4][1][1],b[3],b[1],b[2],a,b[0],this.a,this.P,this))};h.L=function(){return fa-x};h.$=function(){return ga-y};h.ya=function(a){return S(a,this.width)/this.width};h.bb=function(){this.Ta();this.Aa&&this.Sa();this.M&&(this.a&&this.a.clearRect(0,0,this.width,this.height),this.Ba())};h.Ba=function(){for(var a=0,b;b=this.A[a++];)b.Ya(),b.Xa()};h.na=function(){if(this.A)for(var a=0,b;b=this.A[a++];)b.na()};h.Ma=function(){for(var a=0,b;b=this.A[a++];)if(b.C||b.G){this.M=!0;return}this.M=!1};h.Ta=function(){var a=(new Date).getTime(),b=(a-this.Ca)/1E3;this.Ca=a;var a=this.L(),c=this.$();this.ga.x=this.ia;this.ga.y=this.ja;this.ha.x=a;this.ha.y=c;var d=a-this.ia,e=c-this.ja,d=Math.sqrt(d*d+e*e);this.Aa=d>0;this.Z=(this.Z*4+S(((b>0?d/b:0)-70)/1430,1))/5;this.ia=a;this.ja=c};h.Sa=function(){if(this.za)this.za=!1;else for(var a=0,b;b=this.A[a++];){var c;c=this.ga;var d=this.ha,e=b.Ia,f=b.Ha,j=d.y-c.y,p=f.y-e.y,k=c.x-d.x,l=e.x-f.x,q=d.x*c.y-c.x*d.y,K=f.x*e.y-e.x*f.y,V=j*l-p*k;V==0?c=g:(k=(k*K-l*q)/V,j=(p*q-j*K)/V,c=Math.pow(k-d.x,2)+Math.pow(j-d.y,2)>Math.pow(c.x-d.x,2)+Math.pow(c.y-d.y,2)||Math.pow(k-c.x,2)+Math.pow(j-c.y,2)>Math.pow(c.x-d.x,2)+Math.pow(c.y-d.y,2)||Math.pow(k-f.x,2)+Math.pow(j-f.y,2)>Math.pow(e.x-f.x,2)+Math.pow(e.y-f.y,2)||Math.pow(k-e.x,2)+Math.pow(j-e.y,2)>Math.pow(e.x-f.x,2)+Math.pow(e.y-f.y,2)?g:new R(k,j));c&&!b.C&&(this.Z<0.4?b.Pa(c.x,c.y):b.Da(c.x,c.y,!1))}};h.aa=function(a){a>=0&&a<12&&this.A[a].aa()};var S=function(a,b){return a<0?0:a>b?b:a},Aa=function(a){for(var b=[],a=a.match(/[0-9a-f]{2}/gi),c=0,d;d=a[c++];)b.push(parseInt(d,16));return b},R=function(a,b){this.x=a;this.y=b},za=function(a,b,c,d,e,f,j,p,k,l,q,K){this.k=a;this.o=b;this.W=c;this.X=d;this.Ia=new R(this.k,this.o);this.Ha=new R(this.W,this.X);this.J=this.W-this.k;this.K=this.X-this.o;this.length=Math.sqrt(this.J*this.J+this.K*this.K);this.H=this.k+this.J*0.5;this.I=this.o+this.K*0.5;this.N=this.H;this.O=this.I;this.qa=this.oa=this.z=this.w=0;this.Y=k;this.ua=this.Y/11;this.ta=this.D=this.u=this.ca=0;this.U=Math.atan2(this.K,this.J);this.T=Math.sin(this.U);this.da=Math.cos(this.U);a=Math.PI/2-this.U;this.Ga=Math.sin(a);this.Fa=Math.cos(a);this.index=p;this.lineWidth=e;this.ea=f;this.ra=j;this.S=this.ea;this.color=this.i;this.i=Aa(this.ea);this.V=Aa(this.ra);this.s=this.b=0;this.Q=this.G=this.C=!1;this.fa=1;this.a=l;this.P=q;this.g=K;this.c=(e=this.length>100)?7.5:5;this.Ja=0.88+(0.85-0.88)*this.ua;this.Ka=1.4+1.5*this.ua;this.R=0;if(!this.a)this.v=document.createElement("div"),this.v.className="hplogo-str",this.v.style.left=this.k+1+"px",this.v.style.top=this.o-10+"px",this.v.style.width=this.length,this.La=e?-475:-730,this.P.appendChild(this.v)};h=za.prototype;h.na=function(){if(this.v)this.P.removeChild(this.v),this.v=g};h.Xa=function(){var a,b;(this.C||this.Q)&&this.w&&this.z?(a=this.w,b=this.z):(a=this.N,b=this.O);var c=a-this.k,d=b-this.o,e=this.W-a,f=this.X-b;this.a?(this.a.beginPath(),this.a.lineCap="round",this.a.strokeStyle=this.S,this.a.lineWidth=this.lineWidth,this.a.shadowOffsetX=2,this.a.shadowOffsetY=3,this.a.shadowBlur=2,this.a.shadowColor="rgba(0, 0, 0, 0.35)",c=Math.sqrt(c*c+d*d),f=Math.sqrt(e*e+f*f),e=0.45*c*this.da,c=0.45*c*this.T,d=0.45*f*this.da,f=0.45*f*this.T,this.a.moveTo(this.k,this.o),this.a.bezierCurveTo(a-e,b-c,a+d,b+f,this.W,this.X),this.a.stroke(),this.a.closePath()):this.v.style.backgroundPosition=this.La+"px "+-(3+Math.round(d/2))*20+"px"};h.Ya=function(){this.C?this.Ea():this.G&&this.Va()};h.Va=function(){if(this.Q){this.S=this.ra;var a=this.oa-this.w,b=this.qa-this.z;this.w+=a*0.8;this.z+=b*0.8;if(Math.abs(a)<2&&Math.abs(b)<2)this.R=0,this.fa=1,this.Q=!1,(a>=0?1:-1)!=(this.T>=0?1:-1)&&(this.fa*=-1)}else if(this.color=[this.i[0]+(this.V[0]-this.i[0])*(this.b>this.c*0.25?1:this.b/(this.c*0.25)),this.i[1]+(this.V[1]-this.i[1])*(this.b>this.c*0.25?1:this.b/(this.c*0.25)),this.i[2]+(this.V[2]-this.i[2])*(this.b>this.c*0.25?1:this.b/(this.c*0.25)),this.i[3]+(this.V[3]-this.i[3])*(this.b>this.c*0.25?1:this.b/(this.c*0.25))],this.S="rgb("+Math.round(this.color[0])+","+Math.round(this.color[1])+","+Math.round(this.color[2])+")",this.R+=this.Ka*this.fa,a=Math.sin(this.R),this.b*=this.Ja,this.N=this.H+a*this.T*this.b,this.O=this.I-a*this.da*this.b,this.b<=0.15)this.b=0,this.G=!1,this.color=this.i,this.S=this.ea,this.g.Ma()};h.Ea=function(){var a=this.g.L(),b=this.g.$(),c=a-this.k,d=b-this.o,e=this.U-Math.atan2(d,c),c=Math.sqrt(c*c+d*d);this.u=c*Math.sin(e);this.va(S(c*Math.cos(e)/this.length,1));this.s=S(Math.abs(this.u)/this.c,1);Math.abs(this.u)>this.ca?this.Na():(this.w=a,this.z=b)};h.va=function(a){this.D=a;this.ta=this.D<=0.5?this.D/0.5:1-(this.D-0.5)/0.5;this.ca=this.c*this.ta};h.Da=function(a,b,c){this.w=a;this.z=b;var b=this.g.L()-this.k,d=this.g.$()-this.o;this.va(S(Math.sqrt(b*b+d*d)/this.length,1));this.u=(1-(c?1:this.g.Z))*this.ca;this.s=c?1:S(Math.abs(this.u)/this.c,1);if(this.u<3)this.u=3;this.w+=this.u*this.Fa;this.z+=this.u*this.Ga;this.N=this.H;this.O=this.I;this.G?(this.s=S(this.s/2+this.b/this.c,1),this.b=this.s*this.c):(this.b=this.s*this.c,this.xa());this.wa(this.s,this.g.ya(a))};h.aa=function(){this.Da(this.H,this.I,!0)};h.Pa=function(a,b){this.C=!0;this.g.M=!0;this.w=a;this.z=b;this.Ea()};h.Na=function(){this.C=!1;this.N=this.H;this.O=this.I;this.b=this.s*this.c;this.wa(this.s,this.g.ya(this.g.L()));this.xa()};h.xa=function(){this.g.M=!0;this.oa=this.k+this.D*this.J;this.qa=this.o+this.D*this.K;this.R=0;this.Q=this.G=!0};h.wa=function(a,b){if(r)try{s.playTrack("guitar-"+(this.Y<10?"0":"")+this.Y,this.Y,0.4+(0.6-0.4)*a,-0.8+1.6*b)}catch(c){r=!1}C&&C([this.index-1])};var Ba=function(){if(r)for(var a=0;a<12;a++)if(r)try{s.stopChannel(a)}catch(b){r=!1}},Da=function(){v&&(Ca("guitar11-sound-player")||Ca("guitar11-sound-player-2"))},Ca=function(a){return(a=v.getElementById(a))&&a.playTrack?(s=a,r=!0):!1},T=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0},U=function(a){a=a.match(/[\d]+/g);a.length=3;return a.join(".")},Ea=function(){var a=!1,b="";if(navigator.plugins&&navigator.plugins.length){var c=navigator.plugins["Shockwave Flash"];c&&(a=!0,c.description&&(b=U(c.description)));navigator.plugins["Shockwave Flash 2.0"]&&(a=!0,b="2.0.0.11")}else if(navigator.mimeTypes&&navigator.mimeTypes.length)(a=(c=navigator.mimeTypes["application/x-shockwave-flash"])&&c.enabledPlugin)&&(b=U(c.enabledPlugin.description));else try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),a=!0,b=U(c.GetVariable("$version"))}catch(d){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),a=!0,b="6.0.21"}catch(e){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),a=!0,b=U(c.GetVariable("$version"))}catch(f){}}}t=a;aa=b},Fa=function(){for(var a=0,b=String(aa).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),c=String("9.0.0.0").replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=Math.max(b.length,c.length),e=0;a==0&&e<d;e++){var f=b[e]||"",j=c[e]||"",p=RegExp("(\\d*)(\\D*)","g"),k=RegExp("(\\d*)(\\D*)","g");do{var l=p.exec(f)||["","",""],q=k.exec(j)||["","",""];if(l[0].length==0&&q[0].length==0)break;a=T(l[1].length==0?0:parseInt(l[1],10),q[1].length==0?0:parseInt(q[1],10))||T(l[2].length==0,q[2].length==0)||T(l[2],q[2])}while(a==0)}return a>=0},W=g,X=function(a,b){this.F=a;this.duration=Math.max(b,0);var c=0;c+=this.F.length==1?5:11;c+=this.duration<Math.pow(2,5)?6:21;this.size=c};X.prototype.play=function(){for(var a=0;a<this.F.length;++a)n.aa(this.F[a])};var Y=function(a,b){for(var c=[],d=0;d<b;++d)c.push(!!(a&1)),a>>=1;return c},Ga=function(a){for(var b=[],c=0;c<10;++c)b.push(!1);for(c=0;c<a.length;++c)b[a[c]]=!0;return b};X.prototype.ma=function(){var a=[];this.F.length==1?(a.push(!1),a=a.concat(Y(this.F[0],4))):(a.push(!0),a=a.concat(Ga(this.F)));this.duration<Math.pow(2,5)?(a.push(!1),a=a.concat(Y(this.duration,5))):(a.push(!0),a=a.concat(Y(this.duration,20)));return a};var N=function(a){this.d=a||[];this.ka=g;for(var b=this.duration=a=0;b<this.d.length;++b)a+=this.d[b].size,b!=0&&(this.duration+=this.d[b].duration*50);this.size=a};N.prototype.Qa=function(a){this.d.push(a);this.size+=a.size;this.d.size>1&&(this.duration+=a.duration*50)};N.prototype.Ra=function(){return(this.size+4)*1.37/8};var Ha=g,Ia=function(){i==1&&G(2)},Ja=g,Ka=function(){(i==1||i==2)&&G(4)};N.prototype.Za=function(){this.la=0;this.B=[];this.Ua=!0;var a=this;this.ka=window.setTimeout(function(){a.tick(!0)},50);return function(b){a.B.push(b)}};N.prototype.tick=function(a){this.la++;if(this.B&&this.B.length>0){var b=this.la;this.la=0;var c;if(this.B.length==1)c=this.B[0];else{for(var d=[],e=0;c=this.B[e++];)for(var f=0;f<c.length;++f)d[c[f]]=1;c=[];for(e=0;e<d.length;++e)d[e]&&c.push(e)}this.B=[];this.Qa(new X(c,b));this.d.length==1&&(window.clearTimeout(Ja),Ja=window.setTimeout(Ka,28E3),window.clearTimeout(Ha),Ha=window.setTimeout(Ia,23E3));b=this.Ra();if(b>=1900||this.duration>=28E3){G(4);return}else b>=1800&&G(2)}if(a){var j=this;this.ka=window.setTimeout(function(){j.tick(!0)},50)}};N.prototype.stop=function(){window.clearTimeout(this.ka);this.tick(!1);if(this.d.length>0)this.d[0].duration=0;this.Ua=!1};N.prototype.play=function(a){if(i==5)if(this.duration>28E3)i==5&&G(4);else{var b=a||0;b>0&&this.d[b-1].play();if(b>=this.d.length)i==5&&G(4);else{var c=this;window.setTimeout(function(){c.play(b+1)},this.d[b].duration*50)}}};eval("google.doodle.mod = (function(a,n){return a"+"%%".charAt(0)+"n;})");N.prototype.ma=function(){for(var a=[],b=0;b<this.d.length;++b)a=a.concat(this.d[b].ma());for(window.bits=a;google.doodle.mod(a.length,8)!=0;)a.push(!1);return a};N.prototype.Wa=function(){if(this.d.length==0)return g;var a="http://www.google.com/webhp?",b;if(b=window.location.toString()){b=b.match(/\?[^#]*/);b=(b&&b.length>0?b[0].substr(1):"").split("&");for(var c={},d=0;d<b.length;++d){var e=b[d];e&&(e=e.split("="),c[e[0]]=e[1]||"")}b=c}else b={};(b=b.hl)&&(a+="hl="+b+"&");a+="tune=";c=this.ma();b=[];for(d=0;d<c.length;d+=8){for(var f=e=0;f<8;++f)e*=2,e|=c[d+f]?1:0;b.push(e)}if(!W){W={};for(c=0;c<65;c++)W[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_*".charAt(c)}c=W;d=[];for(e=0;e<b.length;e+=3){var j=b[e],p=(f=e+1<b.length)?b[e+1]:0,k=e+2<b.length,l=k?b[e+2]:0,q=j>>2,j=(j&3)*16|p>>4,p=(p&15)*4|l>>6;l&=63;k||(l=64,f||(p=64));d.push(c[q],c[j],c[p],c[l])}return a+d.join("")};var Z=function(){if(google.rein&&google.dstr&&!google.doodle.$a)google.doodle.$a=!0,google.rein.push(Z),google.dstr.push($);if(document.getElementById("hplogo")){$();google.psy&&google.psy.q&&google.msg&&google.msg.listen(22,function(){$();return!0});google.doodle.url=ma;o=document.getElementById("hplogo-g");w=document.createElement("canvas");w.getContext?(w.width=474,w.height=175,w.hideFocus=!0,ba=w.getContext("2d"),o.appendChild(w)):w=g;ta();n=new ya(ba,o);r=!1;Ea();if(t&&Fa()){google.doodle.flashLoaded=Da;u=document.createElement("iframe");u.name="doodle-sound";u.style.position="absolute";u.style.top="-150px";u.style.border=0;u.style.width="100px";u.style.height="100px";document.getElementById("hplogo").appendChild(u);v=u.contentDocument;if(v==void 0||v==g)v=u.contentWindow.document;v.open();v.write("<html><head></head><body><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\"0\" height=\"0\" id=\"guitar11-sound-player\" type=\"application/x-shockwave-flash\"><param name=\"movie\" value=\"/logos/swf/guitar11.swf\"><param name=\"allowScriptAccess\" value=\"always\"><object id=\"guitar11-sound-player-2\" type=\"application/x-shockwave-flash\" data=\"/logos/swf/guitar11.swf\" width=\"0\" height=\"0\"><param name=\"allowScriptAccess\" value=\"always\"></object></object></body></html>");v.close()}var a=document.getElementById("hplogot");a&&(oa=typeof a.style.opacity!="undefined");va();m=!0;La();if(da)try{document.execCommand("BackgroundImageCache",!1,!0)}catch(b){}}},La=function(){n&&(n.bb(),ca=window.setTimeout(La,30));var a=document.getElementById("hplogo-led");if(a&&H)a.style.backgroundPosition=-540-23*Math.abs(Math.round(5*Math.sin(H*Math.PI/12)))+"px -139px",H++},M=function(){var a=document.getElementById("hplogo-led");if(a)a.style.backgroundPosition="1000px 1000px"},$=function(){try{window.clearTimeout(ca);P();Ba();ia();n&&(n.na(),n=g);u&&(D(u),u=g,r=!1);w&&(D(w),w=g);B&&B.stop();C=B=g;G(0);var a=document.getElementById("hplogo-lcd-text");if(a)a.value="";var b=document.getElementById("hplogo-lcd-screen");if(b)b.style.backgroundPosition="1000px 1000px";M();google.msg&&window.setTimeout(function(){google.msg.unlisten(22,$)},0)}catch(c){}};google.doodle.cpDestroy=$;google.doodle.go=function(){google.nav&&google.nav.go?google.nav.go("/search?q=%E8%8E%B1%E6%96%AF%C2%B7%E4%BF%9D%E7%BD%97+%E7%94%B5%E5%90%89%E4%BB%96&ct=lespaul11-hp&oi=ddle&hl=zh-CN"):window.location.href="/search?q=%E8%8E%B1%E6%96%AF%C2%B7%E4%BF%9D%E7%BD%97+%E7%94%B5%E5%90%89%E4%BB%96&ct=lespaul11-hp&oi=ddle&hl=zh-CN"};google.x?google.x("DOODLE",Z):Z()}catch(Ma){google.ml(Ma,!1,{cause:"DOODLE"})};})();</script></div><form action="/search" name=f><table cellpadding=0 cellspacing=0><tr valign=top><td width=25%>&nbsp;</td><td align=center nowrap><input name=hl type=hidden value=zh-CN><input name=source type=hidden value=hp><input type=hidden name=biw><input type=hidden name=bih><div class=ds style="height:32px;margin:4px 0"><input autocomplete=off maxlength=2048 name=q class="lst" title="Google 搜索" value="" size=57 style="background:#fff;border:1px solid #ccc;border-bottom-color:#999;border-right-color:#999;color:#000;font:18px arial,sans-serif bold;margin:0;padding:5px 8px 0 6px;vertical-align:top"></div><br style="line-height:0"><span class=ds ><span class=lsbb><input name=btnG type=submit value="Google 搜索" class=lsb onclick="this.checked=1"></span></span><span class=ds><span class=lsbb><input name=btnI type=submit value="&nbsp;手气不错&nbsp;" class=lsb onclick="this.checked=1"></span></span></td><td nowrap width=25% align=left class="fl sblc"><a href="/advanced_search?hl=zh-CN">高级搜索</a><a href="/language_tools?hl=zh-CN">语言工具</a></td></tr></table></form><div style="font-size:83%;min-height:3.5em"><br><div id=als><font size=-1 id=addlang>Google.com.hk 使用下列语言: <a href="http://www.google.com.hk/setprefs?sig=0_a6qB4-ZODUN8JKA24hXVRgw359g=&amp;hl=zh-TW">中文(繁體)</a> <a href="http://www.google.com.hk/setprefs?sig=0_a6qB4-ZODUN8JKA24hXVRgw359g=&amp;hl=en">English</a></font><br><br></div></div><div id=res></div></center></span> <span id=footer><center id=fctr><div style="font-size:10pt"><div id=fll style="margin:19px auto 19px auto;text-align:center"><a href="/intl/zh-CN/ads/">加入营销计划</a><a href="/intl/zh-CN/about.html">Google 大全</a><a href="http://www.google.com/ncr" class="gl nobr">Google.com in English</a></div></div><p style="color:#767676;font-size:8pt">&copy; 2011 - <a href="/intl/zh-CN/privacy.html">隐私权政策</a></p></center></span> </div> <script>function _gjp(){!(location.hash&&_gjuc())&&setTimeout(_gjp,500);}google.j[1]={cc:[],co:['body','footer','xjsi'],pc:[],css:document.getElementById('gstyle').innerHTML,main:'<span id=body></span>'+'<span id=footer></span>'+'<span id=xjsi></span>',bl:['mngb','gb_']};</script><script>function wgjp(){var xjs=document.createElement('script');xjs.src='/extern_chrome/e40e5df9d0bcdb18.js?hl=zh-CN';(document.getElementById('xjsd')||document.body).appendChild(xjs)};</script></center><div id=xjsd></div><div id=xjsi><script>if(google.y)google.y.first=[];google.dlj=function(b){window.setTimeout(function(){var a=document.createElement("script");a.src=b;document.getElementById("xjsd").appendChild(a)},0)};
if(google.y)google.y.first=[];if(!google.xjs){google.dstr=[];google.rein=[];if(google.timers&&google.timers.load.t){google.timers.load.t.xjsls=new Date().getTime();}google.dlj('/extern_js/f/CgV6aC1DThICaGsrMEU4ACwrMFo4ACwrMA44ACwrMBc4ACwrMDw4ACwrMFE4ACwrMFk4ACwrMAo4AEACmgICY2MsKzAWOAAsKzAZOAAsKzAlOAAsKzAqOAAsKzArOAAsKzBAOAAsKzBBOAAsKzBNOAAsKzBOOAAsKzBTOACaAgZzZWFyY2gsKzBUOAAsKzBfOAAsKzBpOAAsKzAdOAAsKzAYOAAsKzAmOAAsgAJJkAJA/QMt_V75R-SQ.js');google.xjs=1}google.neegg=1;google.mc = [];google.mc = google.mc.concat([[69,{}],[14,{}],[60,{}],[81,{}],[42,{}],[43,{}],[83,{"bih":638,"biw":1366}],[95,{"kfe":{"kfeHost":"clients1.google.com.hk","kfeUrlPrefix":"/webpagethumbnail?c=11\u0026r=2\u0026f=2\u0026s=300:585\u0026query=\u0026hl=zh\u0026gl=hk","maxPrefetchConnections":2,"prefetch":90,"slowConnection":false},"logging":{"csiFraction":0.050,"gen204Fraction":0.050},"msgs":{"loading":"仍在载入...","mute":"静音","noPreview":"未提供预览","sound":"声音:","soundOff":"关闭","soundOn":"打开","unmute":"取消静音"},"pb":{"desiredHeight":585,"desiredWidth":300,"minHeight":200,"minWidth":300},"time":{"hoverClose":300,"hoverModeTimeout":60,"hoverOpen":125,"loading":100,"longHoverOpen":725,"prefetchOnLoad":3000,"timeout":2500}}],[78,{}],[25,{"m":{"bks":true,"blg":true,"dsc":true,"evn":true,"frm":true,"isch":true,"klg":true,"mbl":true,"nws":true,"plcs":true,"ppl":true,"prc":true,"pts":true,"rcp":true,"shop":true,"vid":true},"t":null}],[64,{}],[105,{}],[22,{"m_errors":{"32":"抱歉,没有更多结果可以显示了。","default":"\u003Cfont color=red\u003E错误:\u003C/font\u003E服务器无法完成您的请求。请在 30 秒后再次尝试。"},"m_tip":"点击获得详细信息"}],[77,{}],[84,{}],[29,{"fdst":true,"mcr":5}],[24,{}],[38,{}]]);google.y.first.push(function(){try{var form=document.f||document.f||document.gs;google.ac.i(form,form.q,'','','',{o:1,sw:1});}catch(e){google.ml(e,false,{'cause':'defer'});}if(google.med) {google.med('init');google.initHistory();google.med('history');}google.History&&google.History.initialize('/webhp?hl\x3dzh-CN')});if(google.j&&google.j.en&&google.j.xi){window.setTimeout(google.j.xi,0);}</script></div><script>(function(){
var b,d,e,f;function g(a,c){if(a.removeEventListener){a.removeEventListener("load",c,false);a.removeEventListener("error",c,false)}else{a.detachEvent("onload",c);a.detachEvent("onerror",c)}}function h(a){f=(new Date).getTime();++d;a=a||window.event;var c=a.target||a.srcElement;g(c,h)}var i=document.getElementsByTagName("img");b=i.length;d=0;for(var j=0,k;j<b;++j){k=i[j];if(k.complete||typeof k.src!="string"||!k.src)++d;else if(k.addEventListener){k.addEventListener("load",h,false);k.addEventListener("error",
h,false)}else{k.attachEvent("onload",h);k.attachEvent("onerror",h)}}e=b-d;function l(){if(!google.timers.load.t)return;google.timers.load.t.ol=(new Date).getTime();google.timers.load.t.iml=f;google.kCSI.imc=d;google.kCSI.imn=b;google.kCSI.imp=e;google.timers.load.t.xjs&&google.report&&google.report(google.timers.load,google.kCSI)}if(window.addEventListener)window.addEventListener("load",l,false);else if(window.attachEvent)window.attachEvent("onload",l);google.timers.load.t.prt=(f=(new Date).getTime());
})();
</script>

 

这里先记录,以后有时间再研究一下。Google还是很牛很有创意啊!

  • 大小: 28.9 KB
  • 大小: 31.6 KB
0
1
分享到:
评论

相关推荐

    Google首页电吉他Doodle源代码

    为了纪念电吉他之父莱斯·保罗(Les Paul,1915年6月9日-2009年8月13日)诞辰96周年,Google Doodle又出神作,首页的Logo被设计成一个电吉他形,并且鼠标滑过会弹出美妙的音乐,当你按下键盘图标时,还可以直接用...

    电子政务-带电子发声音乐铃自行车.zip

    标题中的“电子政务-带电子发声音乐铃自行车”可能...通过阅读这份资料,读者不仅可以了解到电子发声音乐铃自行车的技术细节,还能深入理解电子政务如何通过科技创新改善公共事务管理和服务,为城市带来智能化的变革。

    emeu8086+proteus音乐发声器

    在电子设计领域,"emeu8086+Proteus音乐发声器"是一个结合了软件和硬件模拟的项目,旨在让学习者了解并实践基于8086微处理器的音乐合成技术。8086是Intel公司推出的一款16位微处理器,广泛应用于早期个人计算机系统...

    单片机C语言实例--184-蜂鸣器发声.zip

    本实例聚焦于单片机如何通过C语言控制蜂鸣器发声,这是一种常见的应用场景,例如设备报警、音乐播放等。蜂鸣器通常分为无源蜂鸣器和有源蜂鸣器两种,前者需要通过驱动电路来产生声音,后者则自带振荡电路,可以直接...

    单片机C语言实例--186-蜂鸣器间断发声.zip

    当GPIO口输出高电平时,蜂鸣器发声;低电平则不发声。因此,我们可以通过改变GPIO口的状态来实现蜂鸣器的开关控制。 接着,我们要实现间断发声,这就需要用到单片机的定时器功能。定时器可以设置成周期性中断,每隔...

    电子功用-智能安全发声移动电源

    《电子功用-智能安全发声移动电源》是一份深入探讨现代科技与移动电源结合的行业资料。这份文档聚焦于一种创新的移动电源设计,它不仅具备基本的充电功能,还融入了智能安全特性和声音反馈系统,为用户带来更加便捷...

    单片机音乐发声----牧羊曲

    我在开始学习用单片机练习发声时走了不少的弯路,仅仅提供我做的一个完整的牧羊曲的乐曲,希望同大家弧线交流探讨,共同进步。

    单片机音乐发声--牧羊曲

    在本文中,我们将深入探讨如何使用单片机实现音乐发声,以"牧羊曲"为例。首先,单片机音乐发声的基本原理是通过控制单片机的某个输出引脚(在这个例子中是P3^7,连接到蜂鸣器)以特定频率脉冲输出,从而产生声音。...

    行业分类-电子-关于可发声电筒的介绍分析.rar

    标题中的“可发声电筒”是指一种结合了照明和声音播放功能的电子设备,它不仅具备传统的手电筒照明作用,还能播放音频,比如语音提示、音乐或是其他有用的信息。这种创新的产品设计使得电筒在应急、户外活动、教育、...

    186-蜂鸣器间断发声(51单片机C语言实例Proteus仿真和代码)

    186-蜂鸣器间断发声(51单片机C语言实例Proteus仿真和代码)186-蜂鸣器间断发声(51单片机C语言实例Proteus仿真和代码)186-蜂鸣器间断发声(51单片机C语言实例Proteus仿真和代码)186-蜂鸣器间断发声(51单片机C语言实例...

    电子-一种电子发声书

    标题中的“电子发声书”指的是使用电子技术来呈现传统书籍内容并能发声的设备或软件应用。这种技术结合了数字阅读和有声读物的特点,为用户提供了一种新的阅读体验。电子发声书通常包含文本显示和语音合成功能,能够...

    行业资料-电子功用-半模组式发声装置和电子产品的介绍分析.rar

    在电子产品中,发声装置通常指的是扬声器或音频驱动器,它们负责将电信号转化为声音信号。半模组式设计意味着这种发声装置可以根据用户的需求和系统配置进行部分定制或扩展。这种设计方法提供了灵活性,允许用户根据...

    行业分类-设备装置-一种同步发声触发播放的发声互动平台及其同步发声方法.zip

    标题中的“行业分类-设备装置-一种同步发声触发播放的发声互动平台及其同步发声方法”表明,这个压缩包内含的资源是关于一种创新的设备装置,特别关注于声音同步播放的技术,它涉及到互动平台的设计与同步发声的实现...

    电子发声设计.docx

    ### 电子发声设计知识点解析 #### 一、概述 **1.1 题目名称:** 本项目名为“电子发声设计”,旨在通过微型计算机原理与接口技术的应用,实现对电子发声系统的开发。 **1.2 功能和技术指标要求:** - **功能描述...

    单片机C语言实例--75-喇叭发声原理.zip

    5. **调试与测试**:通过串口通信或其他方式将音频数据传输到单片机,然后观察喇叭是否能正常发声,调整程序以优化声音质量。 文件“喇叭发声原理.c”很可能是这个项目的源代码,包含了实现上述功能的函数和逻辑。...

    75-喇叭发声原理(51单片机C语言实例Proteus仿真和代码)

    75-喇叭发声原理(51单片机C语言实例Proteus仿真和代码)75-喇叭发声原理(51单片机C语言实例Proteus仿真和代码)75-喇叭发声原理(51单片机C语言实例Proteus仿真和代码)75-喇叭发声原理(51单片机C语言实例Proteus仿真和...

    Google首页电吉他源代码下载

    注意:下载之后如果直接解压缩运行index.htm会无法发声,这很正常,因为google的这个电吉他的声音保存在flash内,直接双击是无法正确访问flash的.所以请将该源码放到您的服务器空间上或web虚拟目录内就可以正常使用了

    单片机音乐发声器单片机音乐发声器.doc

    单片机音乐发声器的一个有趣特性是音乐与灯光的同步效果,这使得音乐的播放伴随着相应的视觉效果,增强了用户体验。这种同步可以通过单片机对时间的精确控制来实现,确保音乐和灯光变化的节奏一致。 在实际应用中,...

    电子政务-带发声指示放电的镊子.zip

    很抱歉,但根据您给出的信息,标题"电子政务-带发声指示放电的镊子.zip"和描述似乎与常规的IT知识或者电子政务的主题不完全相符。它涉及到一个可能的医疗或工程设备,即“带发声指示放电的镊子”,这通常用于医疗...

Global site tag (gtag.js) - Google Analytics