<head> <title>effekt<Effekt> <meta name=> <script language="JavaScript"> <!-- function namosw_fade_background(r1, g1, b1, r2, g2, b2, maxstep) { var i, r, g, b; for (i = 0; i <= maxstep; i++) { r = Math.floor((r1*(maxstep-i) + r2*i)/maxstep); g = Math.floor((g1*(maxstep-i) + g2*i)/maxstep); b = Math.floor((b1*(maxstep-i) + b2*i)/maxstep); namosw_fade_setbgcolor(r, g, b) } }
function namosw_fade_setbgcolor() { var hexchars = '0123456789abcdef'; var i; var color_str = '#'; var args = namosw_fade_setbgcolor.arguments; if (args.length != 3) return; for (i = 0; i < 3; i++) { color_str += hexchars.charAt(Math.floor(args[i]/16)); color_str += hexchars.charAt(args[i]%16); } document.bgColor = color_str; }
<head> <title>Effekt</title> <script language="JavaScript"> <!-- function namosw_fade_background(r1, g1, b1, r2, g2, b2, maxstep) { var i, r, g, b; for (i = 0; i <= maxstep; i++) { r = Math.floor((r1*(maxstep-i) + r2*i)/maxstep); g = Math.floor((g1*(maxstep-i) + g2*i)/maxstep); b = Math.floor((b1*(maxstep-i) + b2*i)/maxstep); namosw_fade_setbgcolor(r, g, b) } }
function namosw_fade_setbgcolor() { var hexchars = '0123456789abcdef'; var i; var color_str = '#'; var args = namosw_fade_setbgcolor.arguments; if (args.length != 3) return; for (i = 0; i < 3; i++) { color_str += hexchars.charAt(Math.floor(args[i]/16)); color_str += hexchars.charAt(args[i]%16); } document.bgColor = color_str; }
bare vær opmærksom på at det kun virker i IE (tror det må være fra v5 eller deromkring).
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.