Hashtag più usati
1 | #include |
2 | #drone |
3 | #ets2 |
4 | #eurotrucksimulator2 |
5 | #dlcitalia |
6 | #arduino |
7 | #aukey |
8 | #xiaomi |
9 | #farmingsimulator |
Ultimi argomenti attivi
» Comunicazione termine servizio Arduino BT ControlDa Admin Mar Mag 10, 2022 12:55 pm
» Robot aspirapolvere per Alexa: Dreame D9
Da Admin Mar Feb 09, 2021 9:42 am
» Come costruire un robot smart con Arduino
Da Admin Mar Nov 17, 2020 12:15 pm
» TOPPS Trading Cards Match Attax Champsion League/Europa League 2020/21
Da Admin Mar Nov 10, 2020 3:21 pm
» Guida per utilizzare Arduino BT Control v1.2
Da Admin Gio Lug 09, 2020 12:01 pm
» Recensione Umidigi A3 Pro - Smartphone sotto i 100€
Da Admin Gio Apr 04, 2019 12:22 pm
» [Arduino] aiuto programma
Da Glak Mar Mar 12, 2019 9:30 am
» ERRORE NELLA COMPILAZIONE NEXTION
Da papat Mar Feb 26, 2019 7:11 am
» Comandare la Smart TV con Alexa senza broadlink (gratis)
Da Admin Mar Feb 19, 2019 4:31 pm
I postatori più attivi del mese
Nessun utente |
Codice javascript natalizio
Wiki Info :: Codici :: Codici Javascript
Pagina 1 di 1
Codice javascript natalizio
Ciao a tutti, in questa guida vi propongo un bel codice Javascript da inserire nel vostro sito per abbellirlo
Il codice potrebbe non funzionare per il fatto che ci sono alcuni troppi Script nel tuo sito.
Tutti i brower supportano questo questo tipo di Java script:
- Codice:
<html>
<head>
<SCRIPT language=JavaScript>
<!--
//Power by Wiki Info.forumattivo.it
var message="";
/////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</SCRIPT>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>calendario3</title>
<style type="text/css">
a:hover
{ cursor:crosshair}
</style>
<style type="text/css">
.skin0 {
BORDER-RIGHT: #454545 1px solid;
BORDER-TOP: #454545 1px solid;
FONT-SIZE: 10px; COLOR: dadada;
VISIBILITY: hidden;
BORDER-LEFT: #454545 1px solid;
WIDTH: 43px;
CURSOR: default;
LINE-HEIGHT: 15px;
BORDER-BOTTOM: #454545 1px solid;
FONT-FAMILY: comic sans ms;
POSITION: absolute;
BACKGROUND-COLOR: #000000
}
.skin1 {
BORDER-RIGHT: buttonhighlight 2px outset;
BORDER-TOP: buttonhighlight 2px outset;
VISIBILITY: hidden;
BORDER-LEFT: buttonhighlight 2px outset;
WIDTH: 166px;
CURSOR: default;
BORDER-BOTTOM: buttonhighlight 2px outset;
POSITION: absolute;
BACKGROUND-COLOR: white
}
.menuitems {
PADDING-RIGHT: 3px;
PADDING-LEFT: 3px
}
</style>
<SCRIPT type="text/javascript" language=JavaScript1.2>
var menuskin=0
var display_url=0
function showmenuie5(){
var rightedge=document.body.clientWidth-event.clientX
var bottomedge=document.body.clientHeight-event.clientY
if (rightedge<ie5menu.offsetWidth)
ie5menu.style.left=document.body.scrollLeft+event.clientX-ie5menu.offsetWidth
else
ie5menu.style.left=document.body.scrollLeft+event.clientX
if (bottomedge<ie5menu.offsetHeight)
ie5menu.style.top=document.body.scrollTop+event.clientY-ie5menu.offsetHeight
else
ie5menu.style.top=document.body.scrollTop+event.clientY
ie5menu.style.visibility="visible"
return false
}
function hidemenuie5(){
ie5menu.style.visibility="hidden"
}
</SCRIPT>
</head>
<html>
<body topmargin="0" leftmargin="0" bgcolor="#000000">
<table border="0" width="252" height="190" style="border: 3px double #50ADDF; background-image: url('http://digilander.libero.it/merryxmas2002/images/bab_006.gif')" cellspacing="0" cellpadding="0">
<tr>
<td width="45%" valign="middle">
</td>
<td width="48%" valign="middle">
<div style="FILTER: shadow(color='#101010';strength=5); WIDTH: 100%;" align="center">
<script language="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!--//Begin
monthnames = new Array(
"Gennaio",
"Febbraio",
"Marzo",
"Aprile",
"Maggio",
"Giugno",
"Luglio",
"Agosto",
"Settembre",
"Ottobre",
"Novembre",
"Dicembre");
var linkcount=0;
function addlink(month, day, href) {
var entry = new Array(3);
entry[0] = month;
entry[1] = day;
entry[2] = href;
this[linkcount++] = entry;
}
Array.prototype.addlink = addlink;
linkdays = new Array();
monthdays = new Array(12);
monthdays[0]=31;
monthdays[1]=28;
monthdays[2]=31;
monthdays[3]=30;
monthdays[4]=31;
monthdays[5]=30;
monthdays[6]=31;
monthdays[7]=31;
monthdays[8]=30;
monthdays[9]=31;
monthdays[10]=30;
monthdays[11]=31;
todayDate=new Date();
thisday=todayDate.getDay();
thismonth=todayDate.getMonth();
thisdate=todayDate.getDate();
thisyear=todayDate.getYear();
thisyear = thisyear % 100;
thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear));
if (((thisyear % 4 == 0)
&& !(thisyear % 100 == 0))
||(thisyear % 400 == 0)) monthdays[1]++;
startspaces=thisdate;
while (startspaces > 7) startspaces-=7;
startspaces = thisday - startspaces + 1;
if (startspaces < 0) startspaces+=7;
document.write("<FONT face='verdana'>");<!--Font Face-->
document.write("<table border=0 " );<!--Border size-->
document.write("style='font-size :10px; color : #dadada; font-weight: bold; ???•???:???:???A??' cellpadding=1 cellspacing=2>");<!--Border color, font size, cell padding, cellspacing and font color-->
document.write("<tr><td align=center colspan=7><center>"
+ monthnames[thismonth] + " " + thisyear
+ "</center></td></tr>");
document.write("<tr>");
document.write("<td align=center><font color=#cc0000>D</td>");<!--The color here and below are for each week day-->
document.write("<td align=center><font color=#dadada>L</td>");
document.write("<td align=center><font color=#dadada>M</td>")
document.write("<td align=center><font color=#dadada>M</td>");
document.write("<td align=center><font color=#dadada>G</td>");
document.write("<td align=center><font color=#dadada>V</td>");
document.write("<td align=center><font color=#dadada>S</td>");<!--Colore-->
document.write("</tr>");
document.write("<tr>");
for (s=0;s<startspaces;s++) {
document.write("<td align=center>-</td>");
}
count=1;
while (count <= monthdays[thismonth]) {
for (b = startspaces;b<7;b++) {
linktrue=false;
document.write("<td align=center>");
for (c=0;c<linkdays.length;c++) {
if (linkdays[c] != null) {
if ((linkdays[c][0]==thismonth + 1) && (linkdays[c][1]==count)) {
document.write("<a href=\"" + linkdays[c][2] + "\">");
linktrue=true;
}
}
}
if (count==thisdate) {
document.write("<span style='background-color: #00005A; border: 1px solid #50ADDF'><font color='#dadada'>");<!--Colore della data-->
}
if (count <= monthdays[thismonth]) {
document.write(count);
}
else {
document.write(" ");
}
if (count==thisdate) {
document.write("</font>");
}
if (linktrue)
document.write("</a>");
document.write("</td>");
count++;
}
document.write("</tr>");
document.write("<tr>");
startspaces=0;
}
document.write("</table>");
document.write("</FONT>");
</script>
</DIV>
</td>
<td width="2%" align="center" valign="middle">
</td>
</tr>
<tr>
<td width="45%" valign="middle">
</td>
<td width="48%" valign="middle">
<div style="FILTER: shadow(color='#101010';strength=5); WIDTH: 100%;" align="center">
<div align="center"><center><b><font color="#dadada" size="1">
<a target="_blank" href="http://wikiinfo.forumattivo.it/">
<font color="#dadada" face="comic sans ms">Wiki Info</font></a></font></b><table
border="0" cellspacing="0" bgcolor="#00005A" style="border: 1px solid #50ADDF" cellpadding="0">
<tr>
<td width="100%"><font face="Verdana" size="1"><strong><script>
document.write("<FONT color='#dadada' face='verdana' style='font-size : 10px;'>");
var clockid=new Array()
var clockidoutside=new Array()
var i_clock=-1
var thistime= new Date()
var hours=thistime.getHours()
var minutes=thistime.getMinutes()
var seconds=thistime.getSeconds()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
if (seconds < 10) {seconds="0"+seconds}
var thistime = hours+":"+minutes+":"+seconds
function writeclock() {
i_clock++
if (document.all || document.getElementById || document.layers) {
clockid[i_clock]="clock"+i_clock
document.write("<span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span>")
}
}
function clockon() {
thistime= new Date()
hours=thistime.getHours()
minutes=thistime.getMinutes()
seconds=thistime.getSeconds()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
if (seconds < 10) {seconds="0"+seconds}
thistime = hours+":"+minutes+":"+seconds
if (document.all) {
for (i=0;i<=clockid.length-1;i++) {
var thisclock=eval(clockid[i])
thisclock.innerHTML=thistime
}
}
if (document.getElementById) {
for (i=0;i<=clockid.length-1;i++) {
document.getElementById(clockid[i]).innerHTML=thistime
}
}
var timer=setTimeout("clockon()",1000)
}
window.onload=clockon
</script><script>writeclock()</script></strong></font></td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="0" cellspacing="0"
cellpadding="0" width="72">
<tr>
<td width="100%">
<p align="center"><strong><font face="verdana" size="1"> </font></strong></td>
</tr>
</table>
</center></div></td>
<td width="2%" align="center" valign="middle">
</td>
</tr>
</table>
</body>
</html>
<p align="center"> <html>
<head>
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
{
return (new Object());
}
window.open = SymWinOpen;
//-->
</script>
<DIV class=skin0 id=ie5menu>
<DIV class=menuitems><B>Copia il Codice!</B> <!-- Il messaggio da visualizzare nella finestrella va inserito qui -->
</DIV></DIV>
<SCRIPT type="text/javascript" language=JavaScript1.2>
if (document.all&&window.print){
if (menuskin==0)
ie5menu.className="skin0"
else
ie5menu.className="skin1"
document.oncontextmenu=showmenuie5
document.body.onclick=hidemenuie5
}
</SCRIPT>
</head>
</body>
</html>
</body>
</html>
Immagine demo(la data è fissa, perché è un immagine.Se lo inserite nel vostro sito cambia la data e l'ora):
ATTENZIONE:E' vietata la rimozione delle fonti all'interno del codice!
Argomenti simili
» Codice Javascript natalizio per il conto alla rovescia.
» Codice Javascript nuvole
» Codice Javascript turn.js
» Codice Javascript per creare un countdown
» Codice Javascript per creare un pop-up dinamico
» Codice Javascript nuvole
» Codice Javascript turn.js
» Codice Javascript per creare un countdown
» Codice Javascript per creare un pop-up dinamico
Wiki Info :: Codici :: Codici Javascript
Pagina 1 di 1
Permessi in questa sezione del forum:
Non puoi rispondere agli argomenti in questo forum.