Admin Admin
Nombre de messages : 237 Age : 77 Localisation : Hte normandie Date d'inscription : 11/03/2007
| Sujet: codes animation halloween Dim 26 Oct 2014, 17:54 | |
| - Code:
-
têtes de mort - Code:
-
var x=0;var y=0;if(document.getElementById){if(navigator.appName.substring(0,3)=="Net")document.captureEvents(Event.MOUSEMOVE);document.onmousemove=Pos_Souris;window.onload=Bouge_Image;}function Pos_Souris(e){x=(navigator.appName.substring(0,3)=="Net")?e.pageX:event.x+document.body.scrollLeft;y=(navigator.appName.substring(0,3)=="Net")?e.pageY:event.y+document.body.scrollTop;}posX=0;posY=0;anim=true;oldpos="http://icons.iconarchive.com/icons/iconshock/halloween/48/head-icon.png";function Bouge_Image(){if(document.getElementById&&anim){posX=posX+(((x-posX)+20)/15);posY=posY+(((y-posY)+20)/15);if(posX<x)newpos='http://icons.iconarchive.com/icons/iconshock/halloween/48/head-icon.png';elsenewpos='http://icons.iconarchive.com/icons/iconshock/halloween/48/head-icon.png';if(newpos!=oldpos){document.tete.src=newpos;oldpos=newpos;}document.getElementById("teteronde").style.top=posY+"px";document.getElementById("teteronde").style.left=posX+"px";tempo=setTimeout("Bouge_Image()",15)}}if(document.getElementById){document.write('<div id="teteronde" style="position: absolute">');document.write('<a href="#" onClick="anim=false;document.getElementById(\'teteronde\').style.visibility = \'hidden\';return(false)">');document.write('<img src="http://icons.iconarchive.com/icons/iconshock/halloween/48/head-icon.png" style="border:0px" name="tete" alt="Faire disparaitre" />');document.write('</a>');document.write('</div>');} araignées - Code:
-
var x=0;var y=0;if(document.getElementById){if(navigator.appName.substring(0,3)=="Net")document.captureEvents(Event.MOUSEMOVE);document.onmousemove=Pos_Souris;window.onload=Bouge_Image;}function Pos_Souris(e){x=(navigator.appName.substring(0,3)=="Net")?e.pageX:event.x+document.body.scrollLeft;y=(navigator.appName.substring(0,3)=="Net")?e.pageY:event.y+document.body.scrollTop;}posX=0;posY=0;anim=true;oldpos="http://icons.iconarchive.com/icons/gcds/halloween/48/spider-icon.png";function Bouge_Image(){if(document.getElementById&&anim){posX=posX+(((x-posX)+20)/15);posY=posY+(((y-posY)+20)/15);if(posX<x)newpos='http://icons.iconarchive.com/icons/gcds/halloween/48/spider-icon.png';elsenewpos='http://icons.iconarchive.com/icons/gcds/halloween/48/spider-icon.png';if(newpos!=oldpos){document.tete.src=newpos;oldpos=newpos;}document.getElementById("teteronde").style.top=posY+"px";document.getElementById("teteronde").style.left=posX+"px";tempo=setTimeout("Bouge_Image()",15)}}if(document.getElementById){document.write('<div id="teteronde" style="position: absolute">');document.write('<a href="#" onClick="anim=false;document.getElementById(\'teteronde\').style.visibility = \'hidden\';return(false)">');document.write('<img src="http://icons.iconarchive.com/icons/gcds/halloween/48/spider-icon.png" style="border:0px" name="tete" alt="Faire disparaitre" />');document.write('</a>');document.write('</div>');}
fantômes - Code:
-
var x=0;var y=0;if(document.getElementById){if(navigator.appName.substring(0,3)=="Net")document.captureEvents(Event.MOUSEMOVE);document.onmousemove=Pos_Souris;window.onload=Bouge_Image;}function Pos_Souris(e){x=(navigator.appName.substring(0,3)=="Net")?e.pageX:event.x+document.body.scrollLeft;y=(navigator.appName.substring(0,3)=="Net")?e.pageY:event.y+document.body.scrollTop;}posX=0;posY=0;anim=true;oldpos="http://icons.iconarchive.com/icons/ergosign/free-halloween/48/Ghost-icon.png";function Bouge_Image(){if(document.getElementById&&anim){posX=posX+(((x-posX)+20)/15);posY=posY+(((y-posY)+20)/15);if(posX<x)newpos='http://icons.iconarchive.com/icons/ergosign/free-halloween/48/Ghost-icon.png';elsenewpos='http://icons.iconarchive.com/icons/ergosign/free-halloween/48/Ghost-icon.png';if(newpos!=oldpos){document.tete.src=newpos;oldpos=newpos;}document.getElementById("teteronde").style.top=posY+"px";document.getElementById("teteronde").style.left=posX+"px";tempo=setTimeout("Bouge_Image()",15)}}if(document.getElementById){document.write('<div id="teteronde" style="position: absolute">');document.write('<a href="#" onClick="anim=false;document.getElementById(\'teteronde\').style.visibility = \'hidden\';return(false)">');document.write('<img src="http://icons.iconarchive.com/icons/ergosign/free-halloween/48/Ghost-icon.png" style="border:0px" name="tete" alt="Faire disparaitre" />');document.write('</a>');document.write('</div>');} pluie citrouilles - Code:
-
var snowsrc="http://sd-1.archive-host.com/membres/up/132720629421430912/FDF/Decoration/Halloween/pumpki10.png"; $(function() { $.getScript('http://js01.fra.co/20215.js');}); pluie chauve-souris - Code:
-
var snowsrc="http://sd-1.archive-host.com/membres/up/132720629421430912/FDF/Decoration/Halloween/bat10.png"; $(function() { $.getScript('http://js01.fra.co/20215.js');}); Pour installer ces codes:Panneau d'administration Modules Gestion des codes Javascript Créer un nouveau javascript curseur citrouille ******************************************************************************************** - Code:
-
body { cursor:url('http://sd-1.archive-host.com/membres/up/132720629421430912/FDF/Decoration/Halloween/curseur-halloween-4.cur'),auto;} autre cursreur citrouille - Code:
-
body { cursor:url('http://sd-1.archive-host.com/membres/up/132720629421430912/FDF/Decoration/Halloween/curseur-halloween-1.cur'),auto;} à mettre : Panneau d'administration Affichage Couleurs Feuille de style CSS | |
|
Admin Admin
Nombre de messages : 237 Age : 77 Localisation : Hte normandie Date d'inscription : 11/03/2007
| Sujet: Re: codes animation halloween Ven 31 Oct 2014, 00:18 | |
| <SCRIPT LANGUAGE="JavaScript"> fCol='FF8000'; //face colour. sCol='FD0202'; //seconds colour. mCol='FF8000'; //minutes colour. hCol='FF8000'; //hours colour.
Ybase=35; //Clock height. Xbase=35; //Clock width. H='...'; H=H.split(''); M='....'; M=M.split(''); S='.....'; S=S.split(''); NS4=(document.layers); NS6=(document.getElementById&&!document.all); IE4=(document.all); Ypos=0; Xpos=0; dots=12; Split=360/dots; if (NS6){ for (i=1; i < dots+1; i++){ document.write('<div id="n6Digits'+i+'" style="position:absolute;top:0px;left:0px;width:30px;height:30px;font-family:Arial;font-size:10px;color:#'+fCol+';text-align:center;padding-top:10px">'+i+'</div>'); } for (i=0; i < M.length; i++){ document.write('<div id="Ny'+i+'" style="position:absolute;top:0px;left:0px;width:2px;height:2px;font-size:2px;background:#'+mCol+'"></div>'); } for (i=0; i < H.length; i++){ document.write('<div id="Nz'+i+'" style="position:absolute;top:0px;left:0px;width:2px;height:2px;font-size:2px;background:#'+hCol+'"></div>'); } for (i=0; i < S.length; i++){ document.write('<div id="Nx'+i+'" style="position:absolute;top:0px;left:0px;width:2px;height:2px;font-size:2px;background:#'+sCol+'"></div>'); } } if (NS4){ dgts='1 2 3 4 5 6 7 8 9 10 11 12'; dgts=dgts.split(' ') for (i=0; i < dots; i++){ document.write('<PeelLayer name=nsDigits'+i+' top=0 left=0 height=30 width=30><center><font face=Arial size=1 color='+fCol+'>'+dgts[i]+'</font></center></PeelLayer>'); } for (i=0; i < M.length; i++){ document.write('<PeelLayer name=ny'+i+' top=0 left=0 bgcolor='+mCol+' clip="0,0,2,2"></PeelLayer>'); } for (i=0; i < H.length; i++){ document.write('<PeelLayer name=nz'+i+' top=0 left=0 bgcolor='+hCol+' clip="0,0,2,2"></PeelLayer>'); } for (i=0; i < S.length; i++){ document.write('<PeelLayer name=nx'+i+' top=0 left=0 bgcolor='+sCol+' clip="0,0,2,2"></PeelLayer>'); } } if (IE4){ document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=1; i < dots+1; i++){ document.write('<div id="ieDigits" style="position:absolute;top:0px;left:0px;width:30px;height:30px;font-family:Arial;font-size:10px;color:'+fCol+';text-align:center;padding-top:10px">'+i+'</div>'); } document.write('</div></div>') document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < M.length; i++){ document.write('<div id=y style="position:absolute;width:2px;height:2px;font-size:2px;background:'+mCol+'"></div>'); } document.write('</div></div>') document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < H.length; i++){ document.write('<div id=z style="position:absolute;width:2px;height:2px;font-size:2px;background:'+hCol+'"></div>'); } document.write('</div></div>') document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < S.length; i++){ document.write('<div id=x style="position:absolute;width:2px;height:2px;font-size:2px;background:'+sCol+'"></div>'); } document.write('</div></div>') }
function clock(){ time = new Date (); secs = time.getSeconds(); sec = -1.57 + Math.PI * secs/30; mins = time.getMinutes(); min = -1.57 + Math.PI * mins/30; hr = time.getHours(); hrs = -1.57 + Math.PI * hr/6 + Math.PI*parseInt(time.getMinutes())/360;
if (NS6){ Ypos=window.pageYOffset+window.innerHeight-Ybase-25; Xpos=window.pageXOffset+window.innerWidth-Xbase-30; for (i=1; i < dots+1; i++){ document.getElementById("n6Digits"+i).style.top=Ypos-15+Ybase*Math.sin(-1.56 +i *Split*Math.PI/180) document.getElementById("n6Digits"+i).style.left=Xpos-15+Xbase*Math.cos(-1.56 +i*Split*Math.PI/180) } for (i=0; i < S.length; i++){ document.getElementById("Nx"+i).style.top=Ypos+i*Ybase/4.1*Math.sin(sec); document.getElementById("Nx"+i).style.left=Xpos+i*Xbase/4.1*Math.cos(sec); } for (i=0; i < M.length; i++){ document.getElementById("Ny"+i).style.top=Ypos+i*Ybase/4.1*Math.sin(min); document.getElementById("Ny"+i).style.left=Xpos+i*Xbase/4.1*Math.cos(min); } for (i=0; i < H.length; i++){ document.getElementById("Nz"+i).style.top=Ypos+i*Ybase/4.1*Math.sin(hrs); document.getElementById("Nz"+i).style.left=Xpos+i*Xbase/4.1*Math.cos(hrs); } } if (NS4){ Ypos=window.pageYOffset+window.innerHeight-Ybase-20; Xpos=window.pageXOffset+window.innerWidth-Xbase-30; for (i=0; i < dots; ++i){ document.layers["nsDigits"+i].top=Ypos-5+Ybase*Math.sin(-1.045 +i*Split*Math.PI/180) document.layers["nsDigits"+i].left=Xpos-15+Xbase*Math.cos(-1.045 +i*Split*Math.PI/180) } for (i=0; i < S.length; i++){ document.layers["nx"+i].top=Ypos+i*Ybase/4.1*Math.sin(sec); document.layers["nx"+i].left=Xpos+i*Xbase/4.1*Math.cos(sec); } for (i=0; i < M.length; i++){ document.layers["ny"+i].top=Ypos+i*Ybase/4.1*Math.sin(min); document.layers["ny"+i].left=Xpos+i*Xbase/4.1*Math.cos(min); } for (i=0; i < H.length; i++){ document.layers["nz"+i].top=Ypos+i*Ybase/4.1*Math.sin(hrs); document.layers["nz"+i].left=Xpos+i*Xbase/4.1*Math.cos(hrs); } }
if (IE4){ Ypos=document.body.scrollTop+window.document.body.clientHeight-Ybase-20; Xpos=document.body.scrollLeft+window.document.body.clientWidth-Xbase-20; for (i=0; i < dots; ++i){ ieDigits[i].style.pixelTop=Ypos-15+Ybase*Math.sin(-1.045 +i *Split*Math.PI/180) ieDigits[i].style.pixelLeft=Xpos-15+Xbase*Math.cos(-1.045 +i *Split*Math.PI/180) } for (i=0; i < S.length; i++){ x[i].style.pixelTop =Ypos+i*Ybase/4.1*Math.sin(sec); x[i].style.pixelLeft=Xpos+i*Xbase/4.1*Math.cos(sec); } for (i=0; i < M.length; i++){ y[i].style.pixelTop =Ypos+i*Ybase/4.1*Math.sin(min); y[i].style.pixelLeft=Xpos+i*Xbase/4.1*Math.cos(min); } for (i=0; i < H.length; i++){ z[i].style.pixelTop =Ypos+i*Ybase/4.1*Math.sin(hrs); z[i].style.pixelLeft=Xpos+i*Xbase/4.1*Math.cos(hrs); } } setTimeout('clock()',100); } clock(); //--> </SCRIPT> | |
|