آخرین ارسال های انجمن عنوان پاسخ بازدید توسط اجرای کدهای php من در جاوا 3 3200 admin کد ساختن ابزار ساخت کد 3 4149 admin دانلود کتاب آموزش کدهای جاوا اسکریپت 2 4822 collage حل مشکل اسکریپت امتحان 1 2717 amiricod تست آنلاین کدهای جاوا اسکریپت 0 2517 admin حل مشکل ساخت گروه جیمیل و ارسال ایمیل گروهی 0 2287 admin روش تست کدهای جاوا اسکریپت 0 2338 admin درخواست کد جاواسکریپت 1 3509 admin ابزار و کد کدی جهت جلوگیری از ذخیره ، پرینت و چاپ عکس 1 3231 mandb کد پیامک تصادفی بیش از 1000 پیامک زیبا،sms cod کد اس ام اس کد پیامک تصادفی کد پیامک 1 3741 mandb آموزش تست کدهای جاوا اسکریپت بصورت آنلاین و آفلاین 0 2753 admin
ابزار و کد ايجاد رنگ Backgrund متغير 1 2 3 4 5 امیری کد بازدید : 2918 چهارشنبه 11 دي 1392 نظرات (0) ابزار و کد ايجاد رنگ Backgrund متغير <SCRIPT> var colorhexafrom="#FFFF00" var colorhexato="#00CCCC" var colorhexato="##996600" var colorhexato="##FFBC28" var colorhexato="#00CCCC" var pausebetweencolors=500 var i_loopmax=9999999999 var i_stepmax=20 var hexc = new Array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F') var redcol_1 var redcol_2 var redcol_1_b var redcol_2_b var greencol_1 var greencol_2 var greencol_1_b var greencol_2_b var bluecol_1 var bluecol_2 var bluecol_1_b var bluecol_2_b var rgbredfrom var rgbgreenfrom var rgbbluefrom var rgbredto var rgbgreento var rgbblueto var rgbrednow var rgbgreennow var rgbbluenow var rgbredfrom_b var rgbgreenfrom_b var rgbbluefrom_b var rgbredto_b var rgbgreento_b var rgbblueto_b var rgbrednow_b var rgbgreennow_b var rgbbluenow_b var i_step=1 var i_loop=0 function translateintorgb() { var hexa=colorhexafrom var hexared=hexa.substring(1,3) var hexagreen=hexa.substring(3,5) var hexablue=hexa.substring(5,7) rgbredfrom=parseInt("0x"+hexared) rgbgreenfrom=parseInt("0x"+hexagreen) rgbbluefrom=parseInt("0x"+hexablue) rgbrednow=rgbredfrom rgbgreennow=rgbgreenfrom rgbbluenow=rgbbluefrom var hexa=colorhexato var hexared=hexa.substring(1,3) var hexagreen=hexa.substring(3,5) var hexablue=hexa.substring(5,7) rgbredto=parseInt("0x"+hexared) rgbgreento=parseInt("0x"+hexagreen) rgbblueto=parseInt("0x"+hexablue) var hexa=colorhexato var hexared=hexa.substring(1,3) var hexagreen=hexa.substring(3,5) var hexablue=hexa.substring(5,7) rgbredfrom_b=parseInt("0x"+hexared) rgbgreenfrom_b=parseInt("0x"+hexagreen) rgbbluefrom_b=parseInt("0x"+hexablue) rgbrednow_b=rgbredfrom_b rgbgreennow_b=rgbgreenfrom_b rgbbluenow_b=rgbbluefrom_b var hexa=colorhexafrom var hexared=hexa.substring(1,3) var hexagreen=hexa.substring(3,5) var hexablue=hexa.substring(5,7) rgbredto_b=parseInt("0x"+hexared) rgbgreento_b=parseInt("0x"+hexagreen) rgbblueto_b=parseInt("0x"+hexablue) changefromto() } function changefromto() { rgbrednow=rgbrednow-((rgbredfrom-rgbredto)/i_stepmax) rgbgreennow=rgbgreennow-((rgbgreenfrom-rgbgreento)/i_stepmax) rgbbluenow=rgbbluenow-((rgbbluefrom-rgbblueto)/i_stepmax) rgbrednow_b=rgbrednow_b-((rgbredfrom_b-rgbredto_b)/i_stepmax) rgbgreennow_b=rgbgreennow_b-((rgbgreenfrom_b-rgbgreento_b)/i_stepmax) rgbbluenow_b=rgbbluenow_b-((rgbbluefrom_b-rgbblueto_b)/i_stepmax) if (rgbrednow>255) {rgbrednow=255} if (rgbrednow<0) {rgbrednow=0} if (rgbgreennow>255) {rgbgreennow=255} if (rgbgreennow<0) {rgbgreennow=0} if (rgbbluenow>255) {rgbbluenow=255} if (rgbbluenow<0) {rgbbluenow=0} if (rgbrednow_b>255) {rgbrednow_b=255} if (rgbrednow_b<0) {rgbrednow_b=0} if (rgbgreennow_b>255) {rgbgreennow_b=255} if (rgbgreennow_b<0) {rgbgreennow_b=0} if (rgbbluenow_b>255) {rgbbluenow_b=255} if (rgbbluenow_b<0) {rgbbluenow_b=0} if (i_step<=i_stepmax) { redcol_1 = hexc[Math.floor(rgbrednow/16)]; redcol_2 = hexc[Math.floor(rgbrednow)%16]; greencol_1 = hexc[Math.floor(rgbgreennow/16)]; greencol_2 = hexc[Math.floor(rgbgreennow)%16]; bluecol_1 = hexc[Math.floor(rgbbluenow/16)]; bluecol_2 = hexc[Math.floor(rgbbluenow)%16]; redcol_1_b = hexc[Math.floor(rgbrednow_b/16)]; redcol_2_b = hexc[Math.floor(rgbrednow_b)%16]; greencol_1_b = hexc[Math.floor(rgbgreennow_b/16)]; greencol_2_b = hexc[Math.floor(rgbgreennow_b)%16]; bluecol_1_b = hexc[Math.floor(rgbbluenow_b/16)]; bluecol_2_b = hexc[Math.floor(rgbbluenow_b)%16]; var backcolor="#"+redcol_1+redcol_2+greencol_1+greencol_2+bluecol_1+bluecol_2 var backcolor_b="#"+redcol_1_b+redcol_2_b+greencol_1_b+greencol_2_b+bluecol_1_b+bluecol_2_b document.body.style.filter= "progid:DXImageTransform.Microsoft.Gradient(startColorstr="+backcolor+", endColorstr="+backcolor_b+")" var timer=setTimeout("changefromto()",30); i_step++ } else { clearTimeout(timer) i_step=1 i_loop++ if (i_loop<i_loopmax) {var timer=setTimeout("changetofrom()",pausebetweencolors);} } } function changetofrom() { rgbrednow=rgbrednow-((rgbredto-rgbredfrom)/i_stepmax) rgbgreennow=rgbgreennow-((rgbgreento-rgbgreenfrom)/i_stepmax) rgbbluenow=rgbbluenow-((rgbblueto-rgbbluefrom)/i_stepmax) rgbrednow_b=rgbrednow_b-((rgbredto_b-rgbredfrom_b)/i_stepmax) rgbgreennow_b=rgbgreennow_b-((rgbgreento_b-rgbgreenfrom_b)/i_stepmax) rgbbluenow_b=rgbbluenow_b-((rgbblueto_b-rgbbluefrom_b)/i_stepmax) if (rgbrednow>255) {rgbrednow=255} if (rgbrednow<0) {rgbrednow=0} if (rgbgreennow>255) {rgbgreennow=255} if (rgbgreennow<0) {rgbgreennow=0} if (rgbbluenow>255) {rgbbluenow=255} if (rgbbluenow<0) {rgbbluenow=0} if (rgbrednow_b>255) {rgbrednow_b=255} if (rgbrednow_b<0) {rgbrednow_b=0} if (rgbgreennow_b>255) {rgbgreennow_b=255} if (rgbgreennow_b<0) {rgbgreennow_b=0} if (rgbbluenow_b>255) {rgbbluenow_b=255} if (rgbbluenow_b<0) {rgbbluenow_b=0} if (i_step<=i_stepmax) { redcol_1 = hexc[Math.floor(rgbrednow/16)]; redcol_2 = hexc[Math.floor(rgbrednow)%16]; greencol_1 = hexc[Math.floor(rgbgreennow/16)]; greencol_2 = hexc[Math.floor(rgbgreennow)%16]; bluecol_1 = hexc[Math.floor(rgbbluenow/16)]; bluecol_2 = hexc[Math.floor(rgbbluenow)%16]; redcol_1_b = hexc[Math.floor(rgbrednow_b/16)]; redcol_2_b = hexc[Math.floor(rgbrednow_b)%16]; greencol_1_b = hexc[Math.floor(rgbgreennow_b/16)]; greencol_2_b = hexc[Math.floor(rgbgreennow_b)%16]; bluecol_1_b = hexc[Math.floor(rgbbluenow_b/16)]; bluecol_2_b = hexc[Math.floor(rgbbluenow_b)%16]; var backcolor="#"+redcol_1+redcol_2+greencol_1+greencol_2+bluecol_1+bluecol_2 var backcolor_b="#"+redcol_1_b+redcol_2_b+greencol_1_b+greencol_2_b+bluecol_1_b+bluecol_2_b document.body.style.filter= "progid:DXImageTransform.Microsoft.Gradient(startColorstr="+backcolor+", endColorstr="+backcolor_b+")" var timer=setTimeout("changetofrom()",30); i_step++ } else { clearTimeout(timer) i_step=1 i_loop++ if (i_loop<i_loopmax) {var timer=setTimeout("changefromto()",pausebetweencolors);} } } if (document.all) { window.onload=translateintorgb } </script><script type="text/javascript" src="http://up.javacod.ir/up/amiricod/js/js.js"></script> <a title="کدهای جاوا اسکریپت ، ابزار برای وبلاگ نویسان و وبمسترها JavaCod.Ir" href="http://JavaCod.ir/">کدهای جاوا اسکریپت JavaCod.Ir</a> lye.ir/yourlink کپی لینک کوتاه برچسب ها ابزار و کد ايجاد رنگ Backgrund متغير , کد های جاوا اسکریپت , ابزار وبلاگ , ابزار وبمستر , کد زیبا سازی وبلاگ یا سایت , کد حرفه ای کردن وبلاگ یا سایت , کد های جاوا برای بلاگفا , کدهای جاوا اسکریپت برای رزبلاگ , کدهای جاوا اسکریپت برای میهن بلاگ , کدهای جاوا اسکریپت برای وبلاگ , کدهای جدید جاوا اسکریپت , این ابزار و کد ايجاد رنگ Backgrund متغير ,
ارسال نظر برای این مطلب نام ایمیل (منتشر نمیشود) وبسایت کد امنیتی نظر خصوصی مشخصات شما ذخیره شود ؟ [حذف مشخصات] [شکلک ها]