تغییر رنگ پشت صفحه بر اساس کد رنگ
این کد را بین تگ هایBODY قرار دهید.
<!-- Start Of Fading Background Script --> <!-- Instructions: Just put this script on your webpage and the background color will change with a display of what the current hex code is. --> <!-- Mahsa Adib --> <SCRIPT Language = "JavaScript"> start = new Date(); minstart = start.getMinutes() secstart = start.getSeconds() function brighter(){ var now = new Date(); var seconds = now.getSeconds(); var minutes = now.getMinutes(); var base = "00"; var color = 1000; var interval = 103; var sec= interval * (seconds - secstart); var min= 60 * interval * (minutes - minstart); var add= color + min + sec; total= base + add; if (add>=9999) {secstart = seconds; minstart = minutes} document.bgColor = total; setTimeout("brighter()", 1000); document.coffeeform.cc.value = total; } </script> </HEAD> <body onLoad = "brighter()" text="white" LINK="C0C0C0" VLINK="C0C0C0"> <form name="coffeeform"> <P>This is the hex code of the current background color <input name = "cc" type="text" size="7"> </form>
سلام دوست خویموبلاگ قشنگی داری.اگه با تبادل لینک موافقی مارا به اسم بهترین سایت ایرانی لینک کنید و سپس به ما اطلاع بدهید.www.zavyeh.com
سلام دوست خویم
وبلاگ قشنگی داری.اگه با تبادل لینک موافقی مارا به اسم بهترین سایت ایرانی لینک کنید و سپس به ما اطلاع بدهید.
www.zavyeh.com