首页 > 代码库 > 一些flash和页面效果

一些flash和页面效果

人形时钟

<div height="120" width="150" align="center"><embed height="120" width="150" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src=http://www.mamicode.com/"http://chabudai.sakura.ne.jp/blogparts/honehoneclock/honehone_clock_wh.swf" quality="high" autostart="1" wmode="transparent"></div>

 

小仓鼠

<embed type="application/x-shockwave-flash" src=http://www.mamicode.com/"http://cdn.abowman.com/widgets/hamster/hamster.swf" width="250" height="210" id="flashID" name="flashID" bgcolor="#FFFFFF" quality="high" flashvars="up_backgroundColor=FFFFFF" wmode="opaque" allowscriptaccess="always">

 

百度分享代码(浮窗)

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"slide":{"type":"slide","bdImg":"2","bdPos":"right","bdTop":"100"}};with(document)0[(getElementsByTagName(head)[0]||body).appendChild(createElement(script)).src=http://www.mamicode.com/http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=+~(-new Date()/36e5)];</script>

更多分享代码:share.baidu.com

 

IP地址代码

站长之家

<script type="text/javascript" src=http://www.mamicode.com/"http://ip.chinaz.com/getip.aspx"></script>

 

搜狐接口

<script src=http://www.mamicode.com/"http://pv.sohu.com/cityjson?ie=utf-8"></script> <script type="text/javascript"> document.write(returnCitySN["cip"]+,+returnCitySN["cname"]) </script>

 

1616

<script src=http://www.mamicode.com/"http://w.1616.net/chaxun/iptolocal.php"></script><script>console.log(WData)</script>

 

126

<script src=http://www.mamicode.com/"http://ip.ws.126.net/ipquery"></script><script>console.log(lo);console.log(lc);</script>

 

flagcounter

<a href=http://www.mamicode.com/"http://s11.flagcounter.com/more/MQy"><img src=http://www.mamicode.com/"http://s11.flagcounter.com/count2/MQy/bg_FFFFFF/txt_000000/border_CCCCCC/columns_2/maxflags_10/viewers_0/labels_0/pageviews_0/flags_0/percent_0/" alt="Flag Counter" border="0"></a>

 

雪花效果

<script>(function($){$.fn.snow=function(options){var $flake=$(<div id="flake" />).css({position:absolute,top:-50px}).html(&#10052;),documentHeight=$(document).height(),documentWidth=$(document).width(),defaults={minSize:10,maxSize:20,newOn:500,flakeColor:"#FFFFFF"},options=$.extend({},defaults,options);var interval=setInterval(function(){var startPositionLeft=Math.random()*documentWidth-100,startOpacity=0.5+Math.random(),sizeFlake=options.minSize+Math.random()*options.maxSize,endPositionTop=documentHeight-40,endPositionLeft=startPositionLeft-100+Math.random()*200,durationFall=documentHeight*10+Math.random()*5000;$flake.clone().appendTo(body).css({left:startPositionLeft,opacity:startOpacity,font-size:sizeFlake,color:options.flakeColor}).animate({top:endPositionTop,left:endPositionLeft,opacity:0.2},durationFall,linear,function(){$(this).remove()});},options.newOn);};})(jQuery);$.fn.snow({ minSize: 5, maxSize: 50, newOn: 1000, flakeColor: #FFF });</script>

 

一些flash和页面效果