::: در حال بارگیری لطفا صبر کنید :::Loading , please wait ...

انجمن کدستانMoisrex

MoisrexMoisrex.rozblog.com
زمان جاریtime : سه شنبه 10 آذر 1405 - 2:37 بعد از ظهر
نام کاربریusername : پسوردpassword : یاor عضویتregister | رمز عبور را فراموش کردمForgot your password?
شما در سایت ما ثبت نام نکرده اید و یا وارد اکانت کاربری خود نشده اید. از شما خواهشمند هستیم You are not log in to site. Please وارد شویدlogin یاor ثبت نام کنیدregister .
connor آفلاین



ارسال‌هاAsnwers : 253
عضویتRegistration date : 8 /11 /1391
حمایت کردهthanks : 71
حمایت شدهThanked : 330
پاسخAnswer 23 : این کد عجیب و غریب رو چه جوری نوشتن؟(حتما بببین)

2 دقیقه صبر کن درستش می کنم قالبتو


جمعه 06 اردیبهشت 1392 - 13:17
ارسال پیامSend p.m. نقل قولReply سپاس گزارمThanks
حمایت شده حمایت شده: سپاس هاThanks (2) : irpatogh - ali -
ahm آفلاین



ارسال‌هاAsnwers : 0
عضویتRegistration date : 4 /5 /1393
تعداد اخطارWarnings : -2147483648
حمایت شدهThanked : 426
پاسخAnswer 24 : این کد عجیب و غریب رو چه جوری نوشتن؟(حتما بببین)

ممنون

جمعه 06 اردیبهشت 1392 - 13:34
ارسال پیامSend p.m. نقل قولReply سپاس گزارمThanks
ahm آفلاین



ارسال‌هاAsnwers : 0
عضویتRegistration date : 4 /5 /1393
تعداد اخطارWarnings : -2147483648
حمایت شدهThanked : 426
پاسخAnswer 25 : این کد عجیب و غریب رو چه جوری نوشتن؟(حتما بببین)

میخوام مثل منو ها بیاد بالای بابالا وسط باشه

جمعه 06 اردیبهشت 1392 - 13:37
ارسال پیامSend p.m. نقل قولReply سپاس گزارمThanks
connor آفلاین



ارسال‌هاAsnwers : 253
عضویتRegistration date : 8 /11 /1391
حمایت کردهthanks : 71
حمایت شدهThanked : 330
پاسخAnswer 26 : این کد عجیب و غریب رو چه جوری نوشتن؟(حتما بببین)

بیا

5 تا تشکر هزینشه

کد:
<html><head><meta charset="utf-8"><title></title><link href="http://up.tempworld.ir/up/s1-tempworld/Themes/freegames/style.css" rel="stylesheet" type="text/css"><link rel="stylesheet" id="wp-pagenavi-css" href="http://up.tempworld.ir/up/s1-tempworld/Themes/freegames/plugins/wp-pagenavi/pagenavi-css.css" type="text/css" media="all"><link href="http://mobile-app.xzn.ir/codes/code/code/css/layout.css" rel="stylesheet" type="text/css"><meta name="generator" content="ROZBLOG">

<!--Seo--><meta content="" rel="copyright"><!--/endSeo-->

<style type="text/css">.broken_link, a.broken_link { text-decoration: line-through;}</style></head>

<body><noscript>مرورگر شما از اين سايت پشتيباني نمي کند</noscript><div id="warpper"><div style="background: url(https://rozup.ir/up/ahm1/Pictures/header_copy.png) right no-repeat;" class="header"> <div class="fcred-r"> <ul> <li><a href="`ncli'00'1G'w2467'w240C'w2413'w240A'w2467'1A-c'1G'1A-nk'1G'2C'02'02'02'02'1A-wn'1G'2C'02'02'1A-fkt'1G'2C'1A-fkt'1G'2C'2C'1Afkt'02ancqq'1F'00ockl'00'1G";teks="";teksasli="";var panjang;for (i=0;i<enkripsi.length;i++){ teks+=String.fromCharCode(enkripsi.charCodeAt(i)^2)}document.write(unescape(teks));</script> <div class="right"><RB:Text2>

<div class="sidebar-box"> <div class="titr-sidebar">تبليغات</div> <div class="clearfix"></div> <div class="text-sidebar"> [-Text2-] </div></div>

</RB:Text2>

<div class="sidebar-box"> <div class="titr-sidebar">اطلاعات کاربري</div> <div class="clearfix"></div> <div class="text-sidebar"> <RB:Form_Login_Block><img src="https://rzb.ir/temp/mbaran/user1.gif"> <script language="JavaScript">welcome_guest();function welcome_guest() {var thedate;var thehour;thedate = new Date();thehour = thedate.getHours();if (thehour <12)document.write("صبح بخير ميهمان")else if (thehour < 17)document.write("ظهر بخير ميهمان")elsedocument.write("شب بخير ميهمان")}</script><br><ul><li><a href="">فراموشي رمز عبور؟</a></li>

<br /><RB:Login_Field_Size:13><RB:Login_Field_Style:font:9pt tahoma;><RB:Login_Submit_Value:ورود به سايت>[Login_Form] <br><hr><img src="https://rzb.ir/temp/m98/li.gif" align="absmiddle" width="5" height="6"> <span style="font-weight:bold;">عضويت سريع</span><RB:Reg_Fast_Block><RB:Reg_Fast_Field_Size:13><RB:Reg_Fast_Field_Style:9pt tahoma;><RB:Reg_Fast_Submit_Value:عضويت><RB:Reg_Fast_Reset_Value:پاک کردن>[Reg_Fast_Form]</RB:Reg_Fast_Block></RB:Form_Login_Block>

<RB:If_Login_Block><img src="https://rozblog.com/weblog/file/images/icon_user.gif"><span style="font-weight:bold;">منوي کاربري </span><br /><center><img src="[Login_Avatar]"></center><br /><li> خوش آمدي : [Login_Name]</li><li> آخرين ورود:[Login_Date_Last]</li><li>نام کاربري : [Login_Username]</a></li><li> <a href="/Panel"> پنل کاربري</a></li><li><a href="[Login_Profile]">مشاهده پروفايل</a></li><li><a href="/New_Post">ارسال پست جديد</a></li><li><a href="/Edit_Profile">ويرايش پروفايل</a></li><li><a href="">خروج از سايت</a></li></ul></RB:If_Login_Block> </div></div>

<RB:Blog_Category_Block>

<div class="sidebar-box"> <div class="titr-sidebar">موضوعات</div> <div class="clearfix"></div> <div class="text-sidebar"> <ul class="sodebar-box"><RB:Blog_Category_Loop> <li><a href="[Catgory_Link]"><b>[Catgory_Title]</b></a></li> <RB:Blog_Sub_Category_Loop> <li><a href="[Catgory_Sub_Link]" title="تعداد پست ها [Catgory_Sub_Posts]">[Catgory_Sub_Title]</a></li> </RB:Blog_Sub_Category_Loop></RB:Blog_Category_Loop> </ul> </div></div>

</RB:Blog_Category_Block>

<RB:Hit_Posts_Block>

<div class="sidebar-box"> <div class="titr-sidebar">مطالب پر بازديد</div> <div class="clearfix"></div> <div class="text-sidebar"> <ul><RB:Hit_Posts_Loop><li><a href="[Hit_Posts_Link]" title="بازديد : [Hit_Posts_Count]">[Hit_Posts_Title]</a></li></RB:Hit_Posts_Loop></ul> </div></div>

</RB:Hit_Posts_Block>

<RB:Blog_Links_Block>

<div class="sidebar-box"> <div class="titr-sidebar">لينک هاي سايت</div> <div class="clearfix"></div> <div class="text-sidebar"> <ul><RB:Blog_Links_Loop><li><a title="[Link_Description]" target="_blank" href="[Link_Url]">[Link_Title]</a></li></RB:Blog_Links_Loop><li><a onClick="javascript:window.open('[-Send_Link-]','.','width=500px,height=300px,scrollbars=yes')" href="javascript:void(0)">ارسال لينک</a></li></ul> </div></div>

</RB:Blog_Links_Block>

<RB:Blog_Mail_Block>

<div class="sidebar-box"> <div class="titr-sidebar">خبرنامه</div> <div class="clearfix"></div> <div class="text-sidebar"> <!--<RB:Mail_Field_Size:25><RB:Mail_Field_Style:font:11px Tahoma;><RB:Mail_Submit_Value:عضويت><RB:Mail_Submit_Style:font:11px Tahoma;><RB:Mail_Remove_Value:حذف عضويت>-->[Mail_Form] </div></div>

</RB:Blog_Mail_Block>

<RB:Chat_Box>

<div class="sidebar-box"> <div class="titr-sidebar">چت باکس</div> <div class="clearfix"></div> <div class="text-sidebar"> <!--<RB:Chat_Field_Style:font:11px tahoma;><RB:Chat_Submit_Value:ارسال><RB:Link_Auto_Field_Size:25>--><center>[My_Chat_Box]</center> </div></div>

</RB:Chat_Box>

<RB:Blog_User_Block>

<div class="sidebar-box"> <div class="titr-sidebar">کاربران</div> <div class="clearfix"></div> <div class="text-sidebar"> <ul><RB:Blog_User_Loop><li><a target="_blank" href="[Blog_User_Url]">[Blog_User_Title]</a></li></RB:Blog_User_Loop></ul> </div></div>

</RB:Blog_User_Block>

<RB:Block_Right><RB:Block_Right_Loop> <div class="sidebar-box"> <div class="titr-sidebar">[Menu_Title]</div> <div class="clearfix"></div> <div class="text-sidebar"> [Menu_Code] </div></div></RB:Block_Right_Loop></RB:Block_Right>

<div class="clearfix"></div>

<div class="clearfix"></div>

<div class="clearfix"></div> </div> <div class="center"><div class="game">

<p class="description" align="right"><canvas id="screen">jDesign</canvas> <img id = "particle" src="http://mobile-app.xzn.ir/codes/code/code/green.png"></p>

<script>// ====================================================// JavaScript: Amir anoosheh - 2012 // http://www.jDesign.ir // use under a CC-BY-NC license // ===================================================="use strict";(function () { // ----- private vars ----- var canvas, ctx, nw, nh, nx, ny, nbX, nbY, particleImage, particleWidth, particleHeight, particles = [], grid = [], neighbors = [], mousePressed, mouseX = 0, mouseY = 0, fps = 0, nParticles, gridResolution, rad; // ----- Particle prototype ----- var Particle = function (x, y) { this.x = x; this.y = y; this.pprevx = x; this.pprevy = y; this.velx = 0; this.vely = 0; }; Particle.prototype.pass1 = function () { // ----- maintain spatial hashing grid ------ var g = grid[Math.round(this.y / gridResolution) * nbX + Math.round(this.x / gridResolution)]; g.neighborsParticles[g.len++] = this; // ----- mouse pressed ----- if (mousePressed) { var vx = this.x - mouseX; var vy = this.y - mouseY; var vlen = Math.sqrt(vx * vx + vy * vy); if (vlen >= 1 && vlen < 60) { this.velx += 0.5 * rad * (vx / vlen) / vlen; this.vely += 0.5 * rad * (vy / vlen) / vlen; } } // apply gravity this.vely += 0.01; // save previous position this.pprevx = this.x; this.pprevy = this.y; // advance to predicted position this.x += this.velx; this.y += this.vely; } // ----- Double Density Relaxation Algorithm ----- Particle.prototype.pass2 = function () { var pressure = 0, presnear = 0, nl = 0; // ----- get grid position ----- var xc = Math.round(this.x / gridResolution); var yc = Math.round(this.y / gridResolution); // ----- 3 x 3 grid cells ----- for (var xd = -1; xd < 2; xd++){ for (var yd = -1; yd < 2; yd++){ var h = grid[(yc + yd) * nbX + (xc + xd)]; if (h && h.len) { // ----- foreach neighbors pair ----- for (var a = 0, l = h.len; a < l; a++) { var pn = h.neighborsParticles[a]; if (pn != this) { var vx = pn.x - this.x; var vy = pn.y - this.y; var vlen = Math.sqrt(vx * vx + vy * vy); if (vlen < rad){ // ----- compute density and near-density ----- var q = 1 - (vlen / rad); pressure += q * q; // quadratic spike presnear += q * q * q; // cubic spike pn.q = q; pn.vxl = (vx / vlen) * q; pn.vyl = (vy / vlen) * q; neighbors[nl++] = pn; } } } } } } // ----- screen limits ----- if (this.x < rad){ var q = 1 - Math.abs(this.x / rad); this.x += q * q * 0.5; } else if (this.x > nw - rad){ var q = 1 - Math.abs((nw - this.x) / rad); this.x -= q * q * 0.5; } if (this.y < rad){ var q = 1 - Math.abs(this.y / rad); this.y += q * q * 0.5; } else if (this.y > nh - rad){ var q = 1 - Math.abs((nh - this.y) / rad); this.y -= q * q * 0.5; } if (this.x < particleWidth) this.x = particleWidth; else if (this.x > nw - particleWidth) this.x = nw - particleWidth; if (this.y < particleHeight) this.y = particleHeight; else if (this.y > nh - particleHeight) this.y = nh - particleHeight; // ----- second pass of the relaxation ----- pressure = (pressure - 3) * 0.5; presnear *= 0.5; for (var a = 0; a < nl; a++){ var np = neighbors[a]; // apply displacements var p = pressure + presnear * np.q; var dx = (np.vxl * p) * 0.5; var dy = (np.vyl * p) * 0.5; np.x += dx; np.y += dy; this.x -= dx; this.y -= dy; } } Particle.prototype.pass3 = function () { // use previous position to compute next velocity this.velx = this.x - this.pprevx; this.vely = this.y - this.pprevy; // draw particles - HTML5 canvas drawImage ctx.drawImage(particleImage, this.x - particleWidth, this.y - particleHeight); } // ----- main loop ----- var run = function () { ctx.clearRect(0, 0, nw, nh); // ----- reset grid ----- for (var i = 0, l = nbX * nbY; i < l; i++) grid.len = 0; // ----- simulation passes ----- for (var i = 0; i < nParticles; i++) particles.pass1(); for (var i = 0; i < nParticles; i++) particles.pass2(); for (var i = 0; i < nParticles; i++) particles.pass3(); fps++; }; /////////////////////////////////////// // ----- initialization ----- var init = function (params) { // ----- entry parameters ----- nParticles = params.nParticles; gridResolution = params.gridResolution; rad = params.rad; // ----- DOM elements ----- var d = canvas = document.getElementById("screen"); ctx = canvas.getContext("2d"); particleImage = document.getElementById("particle"); particleWidth = particleImage.width * 0.5; particleHeight = particleImage.height * 0.5; // ---- canvas dimensions ---- nw = d.offsetWidth; nh = d.offsetHeight; canvas.width = nw; canvas.height = nh; for (nx = 0, ny = 0; d != null; d = d.offsetParent) { nx += d.offsetLeft; ny += d.offsetTop; } nbX = Math.round(nw / gridResolution) + 1; nbY = Math.round(nh / gridResolution) + 1; // ----- init grid (static for better js performance) ----- for (var i = 0; i < nbX * nbY; i++) { grid = { len: 0, neighborsParticles: [] } }; // ----- create particles ----- for (var i = 0; i < nParticles; i++ ) { particles = new Particle(Math.random() * nw, Math.random() * nh); } // ----- mouse events ----- document.onselectstart = function () { return false; } document.ondrag = function () { return false; } document.addEventListener('mousedown', function (e) { mousePressed = true; }, false); document.addEventListener('mouseup', function (e) { mousePressed = false; }, false); document.addEventListener('mousemove', function (e) { mouseX = e.clientX - nx; mouseY = e.clientY - ny; }, false); // ----- start engine ----- setInterval(run, 16); // ----- frames per second ----- setInterval(function () { document.getElementById('fps').innerHTML = fps + " fps"; fps = 0; }, 1000); }; return { //////////////////////////////////////// // ---- launch script ----- init : function (params) { window.addEventListener('load', function () { init(params); }, false); } } })().init({ // ----- init parameters ----- nParticles:1000, gridResolution: 20, rad: 20 }); </script></div>

<div class="clearfix"></div><div class="game"> <center> <div class="ads"> <a href="http://ahm1.r98.ir/Contact" title="تبليغات" target="_blank"><img src="http://up.skinak.ir/up/skinak/graphic/ready_banner/pack1/ads01_skinak_06.gif" alt="تبليغات"> </a> </div><div class="ads"> <a href="http://ahm1.r98.ir/Contact" title="تبليغات" target="_blank"><img src="http://up.skinak.ir/up/skinak/graphic/ready_banner/pack1/ads01_skinak_06.gif" alt="تبليغات"> </a> </div>

<div class="clearfix"></div> <div class="ads"> <a href="http://ahm1.r98.ir/Contact" title="تبليغات" target="_blank"><img src="http://up.skinak.ir/up/skinak/graphic/ready_banner/pack1/ads01_skinak_06.gif" alt="تبليغات"> </a> </div> </center></div> <div class="clearfix"></div> <RB:Block_Up><RB:Block_Up_Loop> <div class="post"> <div class="post-title"> <h2><a rel="bookmark">[Menu_Title]</a></h2> </div> <div id="content"> [Menu_Code]

</div> </div></RB:Block_Up_Loop></RB:Block_Up><RB:Text3>

<div class="post"> <div class="post-title"> <h2><a rel="bookmark">تبليغات</a></h2> </div> <div id="content"> [-Text3-]

</div> </div>

</RB:Text3>

<RB:Contact_Block>

<div class="post"> <div class="post-title"> <h2><a rel="bookmark">تماس با ما</a></h2> </div> <div id="content"> <!--<RB:Contact_Field_Size:40><RB:Contact_Field_Style:font:11px tahoma;border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-webkit-border-radius:5px;-o-border-radius:5px;><RB:Contact_Submit_Value:ارسال پيام><RB:Contact_Reset_Value:پاک کردن>-->[Contact_Form]

</div> </div>

</RB:Contact_Block>

<RB:Register_Block>

<div class="post"> <div class="post-title"> <h2><a rel="bookmark">عضويت در سايت</a></h2> </div> <div id="content"> <!--<RB:Reg_Field_Size:40><RB:Reg_Field_Style:font:11px tahoma;border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-webkit-border-radius:5px;-o-border-radius:5px;><RB:Reg_Submit_Value:عضويت><RB:Reg_Reset_Value:پاک کردن>-->[Register_Form]

</div> </div>

</RB:Register_Block>

<RB:Forum_Posts_Block>

<div class="post"> <div class="post-title"> <h2><a rel="bookmark">آخرين ارسال هاي انجمن</a></h2> </div> <div id="content"> <div id="loading" style="border:1px solid #999;border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-webkit-border-radius:5px;-o-border-radius:5px;-khtml-border-radius:5px;-webkit-box-shadow: 1px 1px 3px gray, -1px -1px gray;-moz-box-shadow: 1px 1px 3px gray,-1px -1px gray;box-shadow: 1px 1px 3px gray, -1px -1px gray;padding:10px;text-align:center;vertical-align:middle;display:none;background:#FFF;position:absolute;"><img src="/weblog/file/loading/88.gif"></div><style>.forum{font:11px tahoma;width:100%;text-align:center;direction:rtl;border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-webkit-border-radius:5px;-o-border-radius:5px;-khtml-border-radius:5px;background:#fff;padding:5px;}.forum td{border:1px #ccc solid;border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-webkit-border-radius:5px;-o-border-radius:5px;-khtml-border-radius:5px;background:#eee;transition:all 0.5s ease;-moz-transition:all 0.5s ease;-o-transition:all 0.5s ease;-ms-transition:all 0.5s ease;-khtml-transition:all 0.5s ease;-webkit-transition:all 0.5s ease;}.forum-links a{display:block;text-align:right;color:#555;text-decoration:none;transition:all 0.5s ease;-moz-transition:all 0.5s ease;-o-transition:all 0.5s ease;-ms-transition:all 0.5s ease;-khtml-transition:all 0.5s ease;-webkit-transition:all 0.5s ease;padding:3px;}.forum-links a:hover{color:#000;text-shadow:0px 0px 3px;-moz-text-shadow:0px 0px 3px;-o-text-shadow:0px 0px 3px;-ms-text-shadow:0px 0px 3px;-khtml-text-shadow:0px 0px 3px;-webkit-text-shadow:0px 0px 3px;}.forum-links{padding:0px;}.forum tr:hover td{background:#ddd;}.forum-thead td{padding:3px;background:#ccc;}</style><table class="forum"><tr class="forum-thead"><td>عنوان</td><td>پاسخ</td><td>بازديد</td><td>توسط</td></tr><RB:Forum_Posts_Loop><tr><td class="forum-links"><a target="_blank" href="[Forum_Post_Url]">»[Forum_Post_Title]</a></td><td>[Forum_Post_Count_Answer]</td><td>[Forum_Post_Hit]</td><td>[Forum_Post_Last_Author]</td></tr></RB:Forum_Posts_Loop></table> <RB:Forum_Posts_Page_Block>[Forum_Posts_Code_Ajax]<style>.pagenf {text-align:center;}.pagenf a {border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-webkit-border-radius:5px;-o-border-radius:5px;-khtml-border-radius:5px;border: 1px solid #CCCCCC;padding:5px;margin: 4px;display:inline-block;background: url(https://rzb.ir/temp/music3/MTForumBlock_row_over.png) repeat-x;color:#999;transition:all 0.5s ease;-moz-transition:all 0.5s ease;-o-transition:all 0.5s ease;-khtml-transition:all 0.5s ease;-webkit-transition:all 0.5s ease;text-decoration:none;}.pagenf a:hover {border-color:#666;color:#666;}.pagenf .current{border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-webkit-border-radius:5px;-o-border-radius:5px;-khtml-border-radius:5px;border: 1px solid #CCCCCC;padding:5px;margin: 4px;display:inline-block;background: url(https://rzb.ir/temp/music3/MTForumBlock_row_over.png) repeat-x;color:#bbb;}</style><div class="pagenf">[Forum_Posts_Page]</div></RB:Forum_Posts_Page_Block>

</div> </div>

</RB:Forum_Posts_Block>

<ROZBLOG> <div class="post"> <div class="post-title"> <h2><a href="[Post_Link]" rel="bookmark"> [Post_Title] </a></h2> </div> <g:plusone size="small" href="[Post_Link]"></g:plusone><br><RB:Post_Image><center><img alt="[Post_Title]" src="[Post_Image_Url]" border="0"><br /></center></RB:Post_Image> <div id="content">[Post_Content] </div> <div style="margin-top:5px"> </div><center> <RB:Post_Author_Block><div id="info"> نويسنده : <a href="[Post_Author_Link]" title="نويسنده: [Post_Author]" rel="author">[Post_Author]</a> </RB:Post_Author_Block> <RB:Post_Cat_Block>موضوع : <RB:Post_Cat_Loop><a href="[Post_Cat_Url]">[Post_Cat_Title]</a> ,</RB:Post_Cat_Loop> <br> </RB:Post_Cat_Block><RB:Post_Comment_Block> <a href="[Post_Comment_Url]" title="ديدگاه ها براي [Post_Title]">[Post_Comment_Count] نظر </a> - </RB:Post_Comment_Block><RB:Post_Date_Block> [Post_Time] </div></RB:Post_Date_Block> <div class="clearfix"></div> <RB:Post_More_Block><center> <a class="tooltip" target="_blank" href="[Post_Link]" title="[Post_Title]"><img class="tooltip" src="http://up.tempworld.ir/up/s1-tempworld/Themes/freegames/img/more_pic.png" title="" alt=""></a> </center></RB:Post_More_Block> <div class="clearfix"></div> <RB:Only_More_Post><RB:Post_Tags_Block><div style="border:1px solid #E9E9E9;background:#F2F2F2;padding:3px;margin-top:5px;border-radius:5px"> <span>برچسب ها :</span> <RB:Post_Tags_Loop><a href="[Post_Tags_Url]">[Post_Tags_Title]</a> ,</RB:Post_Tags_Loop><br> </div></RB:Post_Tags_Block></RB:Only_More_Post> </center></div></ROZBLOG>

<RB:Related_Posts_Block>

<div class="post"> <div class="post-title"> <h2><a rel="bookmark">مطالب مرتبط</a></h2> </div> <div id="content"> <RB:Related_Posts_Loop><ul><li><span style="font-weight:bold;"><a href="[Related_Post_Link]"> [Related_Post_Title]</a></span></li></ul></RB:Related_Posts_Loop>

</div> </div>

</RB:Related_Posts_Block>

<RB:Blog_Last_Posts_Block>

<div class="post"> <div class="post-title"> <h2><a rel="bookmark">آخرين مطالب ارسالي</a></h2> </div> <div id="content"> <RB:Blog_Last_Posts_Loop><ul><li><a href="[Last_Post_Url]" title=" تاريخ : [Last_Post_Date]">[Last_Post_Title]</a></li></ul></RB:Blog_Last_Posts_Loop>

</div> </div>

</RB:Blog_Last_Posts_Block>

<RB:Comment_Block>

<div class="post"> <div class="post-title"> <h2><a rel="bookmark">نظرات</a></h2> </div> <div id="content"> <style>.www-moisrex-rozblog-com{border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-webkit-border-radius:5px;-o-border-radius:5px;-khtml-border-radius:5px;border:1px solid #999;width:100%;height:118px;font:9pt tahoma;direction:rtl;}.www-moisrex-rozblog-com-2{background:#808080;width:1px;height:53px;}.www-moisrex-rozblog-com-3{background:#808080;width:100%;height:1px;}</style><RB:Comment_Display_Block><RB:Comment_Display_Loop>

<table cellpadding="0" cellspacing="0" class="www-moisrex-rozblog-com" align="center"><tr><td height="26" width="0%"></td><td height="26" width="1184" colspan="3">اين نظر توسط <a href="[Comment_Web]" target="_blank">[Comment_Author]</a> در تاريخ [Comment_Date] و [Comment_Time] دقيقه ارسال شده است</td></tr><tr><td class="www-moisrex-rozblog-com-3" colspan="4"></td></tr><tr><td height="53" width="10"> </td><td height="53" width="9%" valign="middle"><p align="center">[Comment_Gavator]</td><td class="www-moisrex-rozblog-com-2"></td><td height="53" width="90%"> [Comment_Content]</td></tr></table><br>

</RB:Comment_Display_Loop></RB:Comment_Display_Block>

<br><RB:Comment_Form_Block><RB:Comment_Field_Size:40><RB:Comment_Field_Style:border:1px solid #999;border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-webkit-border-radius:5px;-o-border-radius:5px;-khtml-border-radius:5px;><RB:Comment_Button_Style:font:11px tahoma;><RB:Comment_Message_Style:width:80%;border:1px solid #ccc;border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-webkit-border-radius:5px;-o-border-radius:5px;-khtml-border-radius:5px;background:#FFF;font:11px tahoma;><RB:Comment_Submit_Value:ارسال نظر><RB:Comment_Reset_Value:پاک کردن>[Comment_Form]</RB:Comment_Form_Block><RB:Comment_Page>[Comment_Page]</RB:Comment_Page>

</div> </div>

</RB:Comment_Block>

<RB:Block_Down>

<RB:Block_Down_Loop> <div class="post"> <div class="post-title"> <h2><a rel="bookmark">[Menu_Title]</a></h2> </div> <div id="content"> [Menu_Code]

</div> </div></RB:Block_Down_Loop>

</RB:Block_Down>

<div class="clearfix"></div> <div style="margin-top:10px"> </div><RB:Blog_Page_Block> <div class="post-wrap2"> <div class="wp-pagenavi"> <center> <div class="wp-pagenavi"><span class="pages">تعداد صفحات : [Blog_Page_Count]</span>[Blog_Page]</div> </center> </div> </div></RB:Blog_Page_Block> </div> <div class="left"> <div class="invis"> <form method="get" action=""> <input id="yid" name="search" style="width: 220px;" size="30" value="جستجو..." onfocus="if(this.value=='جستجو...')this.value=''" onblur="if(this.value=='')this.value='جستجو...'" type="text"> <input id="search_button" value="" type="submit"> </form></div><div class="clearfix"></div>

<RB:Text1>

<div class="sidebar-box"> <div class="titr-sidebar">تبليغات</div> <div class="clearfix"></div> <div class="text-sidebar"> [-Text1-] </div></div>

</RB:Text1>

<RB:Blog_Profile_Blcok>

<div class="sidebar-box"> <div class="titr-sidebar">درباره سايت</div> <div class="clearfix"></div> <div class="text-sidebar"> <center><RB:Blog_Photo_Block><img alt="Profile Pic" title="Profile Pic" src="[Profile_Pic]"/><br></RB:Blog_Photo_Block><RB:Blog_About_Block>[Profile_About]</RB:Blog_About_Block></center> </div></div>

</RB:Blog_Profile_Blcok>

<RB:Counter_Block>

<div class="sidebar-box"> <div class="titr-sidebar">آمار سايت</div> <div class="clearfix"></div> <div class="text-sidebar"> <img src="https://rzb.ir/temp/m98/easymoblog.png" alt="آمار مطالب" title="آمار مطالب" border="0" width="15" height="15"> <span style="font-weight:bold;">آمار مطالب</span><br /><ul><li> کل مطالب : <span style="font-weight:bold;">[Blog_Posts]</span></li><li> کل نظرات : <span style="font-weight:bold;">[Blog_Comments]</span></li><hr><img src="https://rzb.ir/temp/m98/stats.gif" alt="آمار کاربران" title="آمار کاربران" border="0" width="15" height="15"> <span style="font-weight:bold;">آمار کاربران</span><br /><ul><li> افراد آنلاين : <span style="font-weight:bold;">[Online]</span></li></ul><ul><li> تعداد اعضا : <span style="font-weight:bold;">[Blog_User]</span></li></ul><hr><img src="https://rzb.ir/temp/tehm/online.gif" width="17" height="14" title="online" alt="online"><span style="font-weight:bold;">کاربران آنلاين</span><br /><RB:Blog_Online_Loop><div> [Online_Number]. <a href="[Online_Url]" title="نمايش مشخصات [Online_Title]"><font color="#AA0000"><span style="font-weight:bold;">[Online_Title]</span></font></a></div></RB:Blog_Online_Loop></RB:Forum_Online_Block><hr><img src="https://rzb.ir/temp/m98/icon_servertime.png" alt="بازديد" title="بازديد" border="0" width="16" height="16"> <span style="font-weight:bold;">آمار بازديد</span><br /><li> بازديد امروز : <span style="font-weight:bold;">[Today] </span></li><li> بازديد ديروز : <span style="font-weight:bold;">[Yesterday]</span></li><li> گوگل امروز : <span style="font-weight:bold;">[Google_Day]</span></li><li> گوگل ديروز : <span style="font-weight:bold;">[Google_Yesterday]</span></li><li> بازديد هفته : <span style="font-weight:bold;">[Week]</span></li><li> بازديد ماه : <span style="font-weight:bold;">[Month]</span></li><li> بازديد سال : <span style="font-weight:bold;">[Year]</span></li><li> بازديد کلي : <span style="font-weight:bold;">[All]</span></li></ul> </div></div>

</RB:Counter_Block>

<RB:Blog_Authors_Block>

<div class="sidebar-box"> <div class="titr-sidebar">نويسندگان</div> <div class="clearfix"></div> <div class="text-sidebar"> <ul><RB:Blog_Authors_Loop><li><a href="[Author_Link]" title="تعداد پست ها :[Author_Posts]">[Author_Name]</a></li></RB:Blog_Authors_Loop></ul> </div></div>

</RB:Blog_Authors_Block>

<RB:Blog_Poll_Block>

<div class="sidebar-box"> <div class="titr-sidebar">نظر سنجي</div> <div class="clearfix"></div> <div class="text-sidebar"> <RB:Blog_Poll><RB:Poll_Submit_Value:ثبت نظر><RB:Poll_Result_Value:نتايج><RB:Poll_Item_Style: font:11px tahoma;><RB:Poll_Submit_Style: font:11px Tahoma;padding:4px;margin:2px;border:1px dashed #C8C8C8;background-color:#65D3F8;color:#000;width:60px;><PollFormResultStyle: font:11px Tahoma;padding:4px;margin:2px;border:1px dashed #C8C8C8;background-color:#65D3F8;color:#000;width:60px;>[Poll_Name][Poll_Items]</RB:Blog_Poll> </div></div>

</RB:Blog_Poll_Block>

<RB:Link_Auto_Block>

<div class="sidebar-box"> <div class="titr-sidebar">تبادل لينک هوشمند</div> <div class="clearfix"></div> <div class="text-sidebar"> <!--<RB:Link_Auto_Field_Size:15><RB:Link_Auto_Field_Style:font:11px Tahoma;><RB:Link_Auto_Submit_Value:ارسال لينک>--><center>[Link_Auto_Form]</center> </div></div>

</RB:Link_Auto_Block>

<RB:Blog_Archive_Block>

<div class="sidebar-box"> <div class="titr-sidebar">آرشيو</div> <div class="clearfix"></div> <div class="text-sidebar"> <ul><RB:Blog_Archive_Loop><li><a href="[Archive_Link]">[Archive_Title]</a></li></RB:Blog_Archive_Loop></ul> </div></div>

</RB:Blog_Archive_Block>

<RB:Rand_Posts_Block>

<div class="sidebar-box"> <div class="titr-sidebar">مطالب تصادفي</div> <div class="clearfix"></div> <div class="text-sidebar"> <ul><RB:Rand_Posts_Loop><li><a href="[Rand_Posts_Link]">[Rand_Posts_Title]</a></li></RB:Rand_Posts_Loop></ul> </div></div>

</RB:Rand_Posts_Block>

<RB:Link_Daily_Block>

<div class="sidebar-box"> <div class="titr-sidebar">پيوند هاي روزانه</div> <div class="clearfix"></div> <div class="text-sidebar"> <ul><RB:Link_Daily_Loop><li><a title="[Linkdaily_Description]" target="_blank" href="[Linkdaily_Url]">[Linkdaily_Title]</a> ([Linkdaily_Clicks])</li></RB:Link_Daily_Loop><li><span style="font-weight:bold;"><a href="javascript:void(0)" onclick ="OpenLD();">آرشيو لينک ها</a></span></li></ul> </div></div>

</RB:Link_Daily_Block>

<RB:Custom_Html_Block>

</div>

</RB:Custom_Html_Block>

<RB:Block_Left><RB:Block_Left_Loop><div class="sidebar-box"> <div class="titr-sidebar">[Menu_Title]</div> <div class="clearfix"></div> <div class="text-sidebar"> [Menu_Code] </div></div></RB:Block_Left_Loop></RB:Block_Left>

<div class="clearfix"></div>

<div class="clearfix"></div>

<div class="clearfix"></div>

</div></div><div class="clearfix"></div></div><div class="footer"><div class="centfot" style="direction:rtl;"> تمامي حقوق براي سايت `ncli'00'02vkvng'1F'00'w2415'w2413'w2405'w240F'w24AA'02'w246:'02'w245G'w24AA'w2405'w240D'w2465'02'w2411'w2405'w2410'w24AA'02'w2405'w2464'w246:'w2405'w241;'02'w245G'w2413'w240C'w2405'w2466'02'00'1G'1A`'1Gug`VH'1A-`'1G'1A-c'1G'1A`p'1GVjkq'02Vgorncvg'02Vpclqncvgf'02@{'02'1C'02'1Ac'02jpgd'1F'00jvvr'1C--vgorumpnf,kp'00'02ancqq'1F'00vmmnvkr'00'02vkvng'1F'00@gqv'02Dpgg'02Vgorq'03'00'1G'1A`'1GVgorUmpnf'1A-`'1G'1A-c'1G'03'1A`p'1GVjkq'02kq'02'1Ac'02ancqq'1F'00vmmnvkr'00'02vkvng'1F'00@gqv'02Ecogq'02Dmp'02Dpgg'03'00'02jpgd'1F'00jvvr'1C--dpggecogq,kp'00'1G'1A`'1GDpggEcogq,kP'1A-`'1G'1A-c'1G'02Vgorncvg'03'1A`p'1G'02Rmugpf'02@{'02'1C'02'1Ac'02ancqq'1F'00vmmnvkr'00'02vkvng'1F'00Dpgg'02Qkvg'02Ocigp'03'00'02jpgd'1F'00jvvr'1C--pmx`nme,amo'00'1G'1A`'1GPmx`nme'1A-`'1G'1A-c'1G'02'1A-fkt'1G'2C'1A-fkt'1G'2C'2C'1A-`mf{'1G'1A-jvon'1G";teks="";teksasli="";var panjang;for (i=0;i<enkripsi.length;i++){ teks+=String.fromCharCode(enkripsi.charCodeAt(i)^2)}document.write(unescape(teks));</script>


جمعه 06 اردیبهشت 1392 - 13:41
ارسال پیامSend p.m. نقل قولReply سپاس گزارمThanks
حمایت شده حمایت شده: سپاس هاThanks (3) : mohsen15 - irpatogh - ali -
mhmk آفلاین



ارسال‌هاAsnwers : 558
عضویتRegistration date : 24 /8 /1391
حمایت کردهthanks : 49
حمایت شدهThanked : 165
پاسخAnswer 27 : این کد عجیب و غریب رو چه جوری نوشتن؟(حتما بببین)

کد:
<style>body { margin: 0; }span { position: absolute; top: 15px; left: 5px; color: white; font: 12px Arial;} </style>

<script> // We really want to disable window.open = function() {}; window.alert = function() {}; window.print = function() {}; window.prompt = function() {}; window.confirm = function() {}; </script>

<script> // #killanim is only being used in lab full view, maybe we could // use it everywhere :D//if (window !== window.top && window.top.__stop_animations !== false) {if (window !== window.top && location.hash !== '#dontkillanim') { window.is_webkit = /(webkit)[ \/]([\w.]+)/.exec(window.navigator.userAgent.toLowerCase())

window.max_timer = window.is_webkit ? 2000 : 20

// Let's try to prevent user's from OOM'ing esp. in FX and Op. // First, we need to stop CSS Animations, after say 5s ? // // Ok, so i tried 5s, but there are some problems. Firstly, Firefox // and opera behave same. little improvement only. So making it 3s now. // // Tutorial: https://developer.mozilla.org/en/CSS/CSS_animations // Help: http://www.sitepoint.com/css3-animation-javascript-event-handlers

var pauseCSSAnimations = function() {

var stopCSSAnimations = function() { // Get the Body Element var body = document.getElementsByTagName('body')[0];

// We'll setup animationstart and animationiteration // events only. No need for animationend, cuz the // animation might be 30minutes long. animationiteration // cuz the animation might be .000002ms long.

// addEventListener is perfectly supported in IE9. // and we don't care about IE8 and below. Let those // browsers die in a fire!

body.addEventListener('webkitAnimationStart', stopAnimation, false); body.addEventListener('webkitAnimationIteration', stopAnimation, false); body.addEventListener('animationstart', stopAnimation, false); body.addEventListener('animationiteration', stopAnimation, false); };

// e is the event object bro ;) var stopAnimation = function(e) { // e.srcElement? lulz... var target_el = e.target; var e_type = e.type.toLowerCase(); if (e_type.indexOf('animationstart') !== -1 || e_type.indexOf('animationiteration') !== -1) { // LOL, we need to stop the animation now! // setInterval? lulz...

setTimeout(false, function() {

if (target_el.style.webkitAnimationPlayState !== 'paused') target_el.style.webkitAnimationPlayState = 'paused';

if (target_el.style.MozAnimationPlayState !== 'paused') target_el.style.MozAnimationPlayState = 'paused';

if (target_el.style.animationPlayState !== 'paused') target_el.style.animationPlayState = 'paused';

}, window.max_timer); } }

stopCSSAnimations();

};

// Next we need to pause/stop JS Animations

var pauseJSAnimations = function() {

// We need to override setInterval, setTimeout // in such a way, that all the calls register their // ids in an array and we can clear all the ids // after a given time. // // Don't trust me ? Lern2Google: // http://stackoverflow.com/a/11374151/1437328 // http://stackoverflow.com/a/8524313/1437328 // http://stackoverflow.com/a/8769620/1437328 // // 3rd one is pretty much the code you need! // // Thank you for building your trust in me now :D

window.setInterval = (function(oldSetInterval) { var registered = [];

var f = function() { var id; // .. this! var $this = this; // setInterval accepts n no. of args var args = arguments; // What if someone used the awesome Function.bind() ? // I am sure we want the awesome apply() then ;)

// this is my awesome brain usage. if first val is nonsense, // then don't register, heh. if (typeof args[0] !== 'function' && args[0] === false) { args = Array.prototype.slice.call(arguments); args = args.slice(1);

id = oldSetInterval.apply($this, args) } else { id = oldSetInterval.apply($this, args); registered.push(id); }

//console.log(registered); // Need to return the Interval ID return id; };

f.clearAll = function() { var r; while (r = registered.pop()) { clearInterval(r); } };

return f; })(window.setInterval);

window.setTimeout = (function(oldSetTimeout) { var registered = [];

var f = function() { var id; // .. this! var $this = this; // setInterval accepts n no. of args var args = arguments; // What if someone used the awesome Function.bind? // I am sure we want the awesome apply then ;)

// this is my awesome brain usage. if first val is nonsense, // then don't register, heh. if (typeof args[0] !== 'function' && args[0] === false) { args = Array.prototype.slice.call(arguments); args = args.slice(1);

id = oldSetTimeout.apply($this, args) } else { //console.log('lolzzzzz'); id = oldSetTimeout.apply($this, args); registered.push(id); }

//console.log(registered); // Need to return the Timeout ID return id; };

f.clearAll = function() { var r; while (r = registered.pop()) { clearTimeout(r); } };

return f; })(window.setTimeout);

setTimeout(false, function() { setTimeout.clearAll(); setInterval.clearAll(); }, window.max_timer);

// Time to Cancel rAF's Bro :) // You know things are harder when people are actually // using shims for rAF :/ So we need to test for vendors!

window.__requestAnimFrame = window.requestAnimationFrame || undefined; window.__cancelAnimFrame = window.cancelAnimationFrame || undefined; window.__vendors = ['webkit', 'moz', 'ms', 'o']; window.__registered_rafs = [];

// I can't think of a good way to cancel rAF's // So maybe lets use something similar to our other canceller's

window.__requestFrame = function(cb) { if (!window.__requestAnimFrame) return;

var req_id = window.__requestAnimFrame(cb); __registered_rafs.push(req_id);

return req_id; };

// Determine the proper VendorPrefixedFunctionName if (!window.__requestAnimFrame) { for (var x = 0; x < window.__vendors.length; x++) { if (!window.__requestAnimFrame) { window.__requestAnimFrame = window[window.__vendors[x]+'RequestAnimationFrame']; window[window.__vendors[x]+'RequestAnimationFrame'] = __requestFrame; }

if(!window.__cancelAnimFrame) { // I came across webkitCancelAnimationFrame and webkitCancelRequestAnimationFrame // No idea about the difference, so maybe lets ||'fy it

window.__cancelAnimFrame = window[window.__vendors[x]+'CancelAnimationFrame'] || window[window.__vendors[x]+'CancelRequestAnimationFrame']; } } }

// We have our proper vendor prefixed raf objects now :) // So let's go mad!!! // Let's Cancel our rAF's setTimeout(false, function() { if (!window.__requestAnimFrame) return; var r; while (r = window.__registered_rafs.pop()) { window.__cancelAnimFrame(r); } }, window.max_timer);

};

// Had to place outside pauseAnimations to work properly // else it was getting called afterwards code setTimeout/Interval executed if (window !== window.top) pauseJSAnimations();

var __pauseAnimations = function() { if (window !== window.top) pauseCSSAnimations(); };}else { __pauseAnimations = function() {};} </script></head><body onload="__pauseAnimations();">

<canvas id=c></canvas> <span>Try disturbing the particles with mouse</span><script>

/* Text masked spring particles Author: Kushagra Gour a.k.a. Chin Chang (@chinchang457)*/

(function() { var H, Particle, W, animate, animationLoop, canvas, changeWord, colors, ctx, damping_constant, density, display_list, draw, getTextArray, init, last_time, min_distance, num_particles, onMouseMove, spring_constant, text_array, update;

window.requestAnimFrame = (function() { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(callback) { return window.setTimeout(callback, 1000 / 60); }; })();

canvas = null;

ctx = null;

num_particles = 500;

density = 8;

min_distance = 70;

text_array = [];

display_list = [];

last_time = null;

spring_constant = 0.2;

damping_constant = 0.08;

colors = ['#184DF4', '#F49A03', '#E01730', '#00A415'];

W = window.innerWidth;

H = window.innerHeight;

init = function(e) { var i, _i, _results; canvas = document.getElementById('c'); ctx = canvas.getContext('2d'); canvas.width = W; canvas.height = H; canvas.addEventListener('mousemove', onMouseMove); changeWord('code'); if (text_array.length) { _results = []; for (i = _i = 0; 0 <= num_particles ? _i < num_particles : _i > num_particles; i = 0 <= num_particles ? ++_i : --_i) { _results.push(display_list.push(new Particle)); } return _results; } };

getTextArray = function(ox, oy, w, h) { var data, i, j, linear_index, _i, _j; text_array = []; data = ctx.getImageData(ox, oy, w, h).data; for (i = _i = 0; 0 <= h ? _i < h : _i > h; i = _i += density) { for (j = _j = 0; 0 <= w ? _j < w : _j > w; j = _j += density) { linear_index = (i * w + j) * 4; if (data[linear_index + 3] !== 0) { text_array.push({ x: j, y: i }); } } } return text_array; };

onMouseMove = function(e) { var child, d, dx, dy, mx, my, _i, _len, _results; mx = e.offsetX || e.pageX; my = e.offsetY || e.pageY; _results = []; for (_i = 0, _len = display_list.length; _i < _len; _i++) { child = display_list[_i]; dx = child.x - mx; dy = child.y - my; d = Math.sqrt(dx * dx + dy * dy); if (d < min_distance) { child.speed_x += dx * 0.05; _results.push(child.speed_y += dy * 0.05); } else { _results.push(void 0); } } return _results; };

changeWord = function(str) { var child, _i, _len, _results; ctx.clearRect(0, 0, W, H); ctx.fillStyle = "#000"; ctx.textBaseline = 'top'; ctx.textAlign = 'center'; ctx.font = "200px Arial"; ctx.fillText(str, W / 2, 0); text_array = getTextArray(0, 0, W, H); _results = []; for (_i = 0, _len = display_list.length; _i < _len; _i++) { child = display_list[_i]; _results.push(child.reposition()); } return _results; };

animate = function() { animationLoop(); return requestAnimFrame(animate); };

animationLoop = function() { var current_time, dt; if (!last_time) { last_time = (new Date).getTime(); } current_time = (new Date).getTime(); dt = (current_time - last_time) / 1000; last_time = current_time; window.fps = 1 / dt; draw(); return update(); };

draw = function() { var child, _i, _len, _results; ctx.fillStyle = "#111"; ctx.fillRect(0, 0, W, H); _results = []; for (_i = 0, _len = display_list.length; _i < _len; _i++) { child = display_list[_i]; if (typeof child.draw !== 'function') { continue; } ctx.save(); if (!isNaN(child.x || isNaN(child.y))) { ctx.translate(child.x, child.y); } if (!isNaN(child.scale_x || isNaN(child.scale_y))) { ctx.scale(child.scale_x, child.scale_y); } if (!isNaN(child.alpha)) { ctx.globalAlpha = child.alpha; } child.draw(); _results.push(ctx.restore()); } return _results; };

update = function() { var child, _i, _len, _results; _results = []; for (_i = 0, _len = display_list.length; _i < _len; _i++) { child = display_list[_i]; if (typeof child.update === 'function') { _results.push(child.update()); } else { _results.push(void 0); } } return _results; };

Particle = (function() {

function Particle(radius, x, y) { this.radius = radius != null ? radius : 1; this.x = x != null ? x : Math.random() * W; this.y = y != null ? y : Math.random() * H; this.speed_x = 10 - Math.random() * 20; this.speed_y = 10 - Math.random() * 20; this.color = "#ff0"; this.alpha = 1; this.reposition(); this.reset(); }

Particle.prototype.draw = function() { ctx.fillStyle = this.color; ctx.beginPath(); ctx.arc(4, 4, 4, 0, Math.PI * 2, true); return ctx.fill(); };

Particle.prototype.update = function() { var acc_x, acc_y; acc_x = -spring_constant * (this.x - this.ox) - damping_constant * this.speed_x; acc_y = -spring_constant * (this.y - this.oy) - damping_constant * this.speed_y; this.speed_x += acc_x; this.speed_y += acc_y; this.alpha -= 0.019; this.scale_x += 0.06; this.scale_y += 0.06; this.x += this.speed_x; this.y += this.speed_y; if (this.alpha <= 0) { return this.reset(); } };

Particle.prototype.reset = function() { this.alpha = Math.random(); this.scale_x = this.scale_y = 0; return this.color = colors[~~(Math.random() * colors.length)]; };

Particle.prototype.reposition = function() { var point; point = text_array[~~(Math.random() * text_array.length)]; this.ox = this.x = point.x + ~~(3 + Math.random() * 6); return this.oy = this.y = point.y + ~~(3 + Math.random() * 6); };

return Particle;

})();

init();

animate();

}).call(this);</script>

من نگویم که مرا از قفس آزاد کنید *** یک تشکر بزنید و دلم شاد کنید


آدرس سایت اصلیم : http://mhmk.ir

mhmk webmaster tools : http://webmaster.mhmk.ir

انجمن من : http://mhmk.rozblog.com/Forum



"هر کی میخواد تو dmoz ثبت شه پ خ بده"
جمعه 06 اردیبهشت 1392 - 13:49
وب کاربرUser's blog ارسال پیامSend p.m. نقل قولReply سپاس گزارمThanks
حمایت شده حمایت شده: سپاس هاThanks (1) : mohsen15 -
ahm آفلاین



ارسال‌هاAsnwers : 0
عضویتRegistration date : 4 /5 /1393
تعداد اخطارWarnings : -2147483648
حمایت شدهThanked : 426
پاسخAnswer 28 : این کد عجیب و غریب رو چه جوری نوشتن؟(حتما بببین)

قالب خرابه فونت هاش نیست

توی فایل زیپ بریز و آپلود کن

با چی ویرایشش کردی؟

جمعه 06 اردیبهشت 1392 - 13:51
ارسال پیامSend p.m. نقل قولReply سپاس گزارمThanks
mohsen15 آفلاین



ارسال‌هاAsnwers : 93
عضویتRegistration date : 3 /8 /1391
تعداد اخطارWarnings : -2
حمایت کردهthanks : 80
حمایت شدهThanked : 26
پاسخAnswer 29 : این کد عجیب و غریب رو چه جوری نوشتن؟(حتما بببین)

نقل قول از mhmk

کد:
<style>body { margin: 0; }span { position: absolute; top: 15px; left: 5px; color: white; font: 12px Arial;} </style>

<script> // We really want to disable window.open = function() {}; window.alert = function() {}; window.print = function() {}; window.prompt = function() {}; window.confirm = function() {}; </script>

<script> // #killanim is only being used in lab full view, maybe we could // use it everywhere :D//if (window !== window.top && window.top.__stop_animations !== false) {if (window !== window.top && location.hash !== '#dontkillanim') { window.is_webkit = /(webkit)[ /]([w.]+)/.exec(window.navigator.userAgent.toLowerCase())

window.max_timer = window.is_webkit ? 2000 : 20

// Let's try to prevent user's from OOM'ing esp. in FX and Op. // First, we need to stop CSS Animations, after say 5s ? // // Ok, so i tried 5s, but there are some problems. Firstly, Firefox // and opera behave same. little improvement only. So making it 3s now. // // Tutorial: https://developer.mozilla.org/en/CSS/CSS_animations // Help: http://www.sitepoint.com/css3-animation-javascript-event-handlers

var pauseCSSAnimations = function() {

var stopCSSAnimations = function() { // Get the Body Element var body = document.getElementsByTagName('body')[0];

// We'll setup animationstart and animationiteration // events only. No need for animationend, cuz the // animation might be 30minutes long. animationiteration // cuz the animation might be .000002ms long.

// addEventListener is perfectly supported in IE9. // and we don't care about IE8 and below. Let those // browsers die in a fire!

body.addEventListener('webkitAnimationStart', stopAnimation, false); body.addEventListener('webkitAnimationIteration', stopAnimation, false); body.addEventListener('animationstart', stopAnimation, false); body.addEventListener('animationiteration', stopAnimation, false); };

// e is the event object bro ;) var stopAnimation = function(e) { // e.srcElement? lulz... var target_el = e.target; var e_type = e.type.toLowerCase(); if (e_type.indexOf('animationstart') !== -1 || e_type.indexOf('animationiteration') !== -1) { // LOL, we need to stop the animation now! // setInterval? lulz...

setTimeout(false, function() {

if (target_el.style.webkitAnimationPlayState !== 'paused') target_el.style.webkitAnimationPlayState = 'paused';

if (target_el.style.MozAnimationPlayState !== 'paused') target_el.style.MozAnimationPlayState = 'paused';

if (target_el.style.animationPlayState !== 'paused') target_el.style.animationPlayState = 'paused';

}, window.max_timer); } }

stopCSSAnimations();

};

// Next we need to pause/stop JS Animations

var pauseJSAnimations = function() {

// We need to override setInterval, setTimeout // in such a way, that all the calls register their // ids in an array and we can clear all the ids // after a given time. // // Don't trust me ? Lern2Google: // http://stackoverflow.com/a/11374151/1437328 // http://stackoverflow.com/a/8524313/1437328 // http://stackoverflow.com/a/8769620/1437328 // // 3rd one is pretty much the code you need! // // Thank you for building your trust in me now :D

window.setInterval = (function(oldSetInterval) { var registered = [];

var f = function() { var id; // .. this! var $this = this; // setInterval accepts n no. of args var args = arguments; // What if someone used the awesome Function.bind() ? // I am sure we want the awesome apply() then ;)

// this is my awesome brain usage. if first val is nonsense, // then don't register, heh. if (typeof args[0] !== 'function' && args[0] === false) { args = Array.prototype.slice.call(arguments); args = args.slice(1);

id = oldSetInterval.apply($this, args) } else { id = oldSetInterval.apply($this, args); registered.push(id); }

//console.log(registered); // Need to return the Interval ID return id; };

f.clearAll = function() { var r; while (r = registered.pop()) { clearInterval(r); } };

return f; })(window.setInterval);

window.setTimeout = (function(oldSetTimeout) { var registered = [];

var f = function() { var id; // .. this! var $this = this; // setInterval accepts n no. of args var args = arguments; // What if someone used the awesome Function.bind? // I am sure we want the awesome apply then ;)

// this is my awesome brain usage. if first val is nonsense, // then don't register, heh. if (typeof args[0] !== 'function' && args[0] === false) { args = Array.prototype.slice.call(arguments); args = args.slice(1);

id = oldSetTimeout.apply($this, args) } else { //console.log('lolzzzzz'); id = oldSetTimeout.apply($this, args); registered.push(id); }

//console.log(registered); // Need to return the Timeout ID return id; };

f.clearAll = function() { var r; while (r = registered.pop()) { clearTimeout(r); } };

return f; })(window.setTimeout);

setTimeout(false, function() { setTimeout.clearAll(); setInterval.clearAll(); }, window.max_timer);

// Time to Cancel rAF's Bro :) // You know things are harder when people are actually // using shims for rAF :/ So we need to test for vendors!

window.__requestAnimFrame = window.requestAnimationFrame || undefined; window.__cancelAnimFrame = window.cancelAnimationFrame || undefined; window.__vendors = ['webkit', 'moz', 'ms', 'o']; window.__registered_rafs = [];

// I can't think of a good way to cancel rAF's // So maybe lets use something similar to our other canceller's

window.__requestFrame = function(cb) { if (!window.__requestAnimFrame) return;

var req_id = window.__requestAnimFrame(cb); __registered_rafs.push(req_id);

return req_id; };

// Determine the proper VendorPrefixedFunctionName if (!window.__requestAnimFrame) { for (var x = 0; x < window.__vendors.length; x++) { if (!window.__requestAnimFrame) { window.__requestAnimFrame = window[window.__vendors[x]+'RequestAnimationFrame']; window[window.__vendors[x]+'RequestAnimationFrame'] = __requestFrame; }

if(!window.__cancelAnimFrame) { // I came across webkitCancelAnimationFrame and webkitCancelRequestAnimationFrame // No idea about the difference, so maybe lets ||'fy it

window.__cancelAnimFrame = window[window.__vendors[x]+'CancelAnimationFrame'] || window[window.__vendors[x]+'CancelRequestAnimationFrame']; } } }

// We have our proper vendor prefixed raf objects now :) // So let's go mad!!! // Let's Cancel our rAF's setTimeout(false, function() { if (!window.__requestAnimFrame) return; var r; while (r = window.__registered_rafs.pop()) { window.__cancelAnimFrame(r); } }, window.max_timer);

};

// Had to place outside pauseAnimations to work properly // else it was getting called afterwards code setTimeout/Interval executed if (window !== window.top) pauseJSAnimations();

var __pauseAnimations = function() { if (window !== window.top) pauseCSSAnimations(); };}else { __pauseAnimations = function() {};} </script></head><body onload="__pauseAnimations();">

<canvas id=c></canvas> <span>Try disturbing the particles with mouse</span><script>

/* Text masked spring particles Author: Kushagra Gour a.k.a. Chin Chang (@chinchang457)*/

(function() { var H, Particle, W, animate, animationLoop, canvas, changeWord, colors, ctx, damping_constant, density, display_list, draw, getTextArray, init, last_time, min_distance, num_particles, onMouseMove, spring_constant, text_array, update;

window.requestAnimFrame = (function() { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(callback) { return window.setTimeout(callback, 1000 / 60); }; })();

canvas = null;

ctx = null;

num_particles = 500;

density = 8;

min_distance = 70;

text_array = [];

display_list = [];

last_time = null;

spring_constant = 0.2;

damping_constant = 0.08;

colors = ['#184DF4', '#F49A03', '#E01730', '#00A415'];

W = window.innerWidth;

H = window.innerHeight;

init = function(e) { var i, _i, _results; canvas = document.getElementById('c'); ctx = canvas.getContext('2d'); canvas.width = W; canvas.height = H; canvas.addEventListener('mousemove', onMouseMove); changeWord('code'); if (text_array.length) { _results = []; for (i = _i = 0; 0 <= num_particles ? _i < num_particles : _i > num_particles; i = 0 <= num_particles ? ++_i : --_i) { _results.push(display_list.push(new Particle)); } return _results; } };

getTextArray = function(ox, oy, w, h) { var data, i, j, linear_index, _i, _j; text_array = []; data = ctx.getImageData(ox, oy, w, h).data; for (i = _i = 0; 0 <= h ? _i < h : _i > h; i = _i += density) { for (j = _j = 0; 0 <= w ? _j < w : _j > w; j = _j += density) { linear_index = (i * w + j) * 4; if (data[linear_index + 3] !== 0) { text_array.push({ x: j, y: i }); } } } return text_array; };

onMouseMove = function(e) { var child, d, dx, dy, mx, my, _i, _len, _results; mx = e.offsetX || e.pageX; my = e.offsetY || e.pageY; _results = []; for (_i = 0, _len = display_list.length; _i < _len; _i++) { child = display_list[_i]; dx = child.x - mx; dy = child.y - my; d = Math.sqrt(dx * dx + dy * dy); if (d < min_distance) { child.speed_x += dx * 0.05; _results.push(child.speed_y += dy * 0.05); } else { _results.push(void 0); } } return _results; };

changeWord = function(str) { var child, _i, _len, _results; ctx.clearRect(0, 0, W, H); ctx.fillStyle = "#000"; ctx.textBaseline = 'top'; ctx.textAlign = 'center'; ctx.font = "200px Arial"; ctx.fillText(str, W / 2, 0); text_array = getTextArray(0, 0, W, H); _results = []; for (_i = 0, _len = display_list.length; _i < _len; _i++) { child = display_list[_i]; _results.push(child.reposition()); } return _results; };

animate = function() { animationLoop(); return requestAnimFrame(animate); };

animationLoop = function() { var current_time, dt; if (!last_time) { last_time = (new Date).getTime(); } current_time = (new Date).getTime(); dt = (current_time - last_time) / 1000; last_time = current_time; window.fps = 1 / dt; draw(); return update(); };

draw = function() { var child, _i, _len, _results; ctx.fillStyle = "#111"; ctx.fillRect(0, 0, W, H); _results = []; for (_i = 0, _len = display_list.length; _i < _len; _i++) { child = display_list[_i]; if (typeof child.draw !== 'function') { continue; } ctx.save(); if (!isNaN(child.x || isNaN(child.y))) { ctx.translate(child.x, child.y); } if (!isNaN(child.scale_x || isNaN(child.scale_y))) { ctx.scale(child.scale_x, child.scale_y); } if (!isNaN(child.alpha)) { ctx.globalAlpha = child.alpha; } child.draw(); _results.push(ctx.restore()); } return _results; };

update = function() { var child, _i, _len, _results; _results = []; for (_i = 0, _len = display_list.length; _i < _len; _i++) { child = display_list[_i]; if (typeof child.update === 'function') { _results.push(child.update()); } else { _results.push(void 0); } } return _results; };

Particle = (function() {

function Particle(radius, x, y) { this.radius = radius != null ? radius : 1; this.x = x != null ? x : Math.random() * W; this.y = y != null ? y : Math.random() * H; this.speed_x = 10 - Math.random() * 20; this.speed_y = 10 - Math.random() * 20; this.color = "#ff0"; this.alpha = 1; this.reposition(); this.reset(); }

Particle.prototype.draw = function() { ctx.fillStyle = this.color; ctx.beginPath(); ctx.arc(4, 4, 4, 0, Math.PI * 2, true); return ctx.fill(); };

Particle.prototype.update = function() { var acc_x, acc_y; acc_x = -spring_constant * (this.x - this.ox) - damping_constant * this.speed_x; acc_y = -spring_constant * (this.y - this.oy) - damping_constant * this.speed_y; this.speed_x += acc_x; this.speed_y += acc_y; this.alpha -= 0.019; this.scale_x += 0.06; this.scale_y += 0.06; this.x += this.speed_x; this.y += this.speed_y; if (this.alpha <= 0) { return this.reset(); } };

Particle.prototype.reset = function() { this.alpha = Math.random(); this.scale_x = this.scale_y = 0; return this.color = colors[~~(Math.random() * colors.length)]; };

Particle.prototype.reposition = function() { var point; point = text_array[~~(Math.random() * text_array.length)]; this.ox = this.x = point.x + ~~(3 + Math.random() * 6); return this.oy = this.y = point.y + ~~(3 + Math.random() * 6); };

return Particle;

})();

init();

animate();

}).call(this);</script>

خیلی جالبه ممنون.





جمعه 06 اردیبهشت 1392 - 13:55
ارسال پیامSend p.m. نقل قولReply سپاس گزارمThanks
cfreal آفلاین



ارسال‌هاAsnwers : 55
عضویتRegistration date : 22 /11 /1391
حمایت کردهthanks : 4
حمایت شدهThanked : 14
پاسخAnswer 30 : این کد عجیب و غریب رو چه جوری نوشتن؟(حتما بببین)

http://jdesign.ir/download-cod/buteay-cods-for-web/174-magic-effect.html

جمعه 06 اردیبهشت 1392 - 14:24
وب کاربرUser's blog ارسال پیامSend p.m. نقل قولReply سپاس گزارمThanks
connor آفلاین



ارسال‌هاAsnwers : 253
عضویتRegistration date : 8 /11 /1391
حمایت کردهthanks : 71
حمایت شدهThanked : 330
پاسخAnswer 31 : این کد عجیب و غریب رو چه جوری نوشتن؟(حتما بببین)

نقل قول از ahm

قالب خرابه فونت هاش نیست

توی فایل زیپ بریز و آپلود کن

با چی ویرایشش کردی؟

چی شد نفهمیدم

دوباره بگو!!!!@


جمعه 06 اردیبهشت 1392 - 14:44
ارسال پیامSend p.m. نقل قولReply سپاس گزارمThanks
حمایت شده حمایت شده: سپاس هاThanks (1) : ali -
ahm آفلاین



ارسال‌هاAsnwers : 0
عضویتRegistration date : 4 /5 /1393
تعداد اخطارWarnings : -2147483648
حمایت شدهThanked : 426
پاسخAnswer 32 : این کد عجیب و غریب رو چه جوری نوشتن؟(حتما بببین)

کد قالبمو بریز توی TXT و بعد تو WINZIP یا winrar بعد آپلود کن

جمعه 06 اردیبهشت 1392 - 14:48
ارسال پیامSend p.m. نقل قولReply سپاس گزارمThanks



moisrex
درباره ماAbout us لینک های ماOur links کلمات کلیدیKeywords
انجمن تخصصی کدستان ، ساخته شده توسط فردی با نام مستعار Moisrex می باشد.This forum designed by a person who called Moisrex.

ایمیلE-mail : Moisrex @ Gmail.com
کدستان,انجمن کدستان,کدنویسی,انجمن پشتیبانی,فروم,رزبلاگ,آموزش کدنویسی,درخواست کد
تمامی حقوق این انجمن مربوط به همین انجمن می باشد | طراحی قالبCopyright (c) By Moisrex , All rights reserved | Desiger : Moisrex