BuLaN- Administrator
| Subiect: SCRIPT PHP SHOW IP DATA ORA BROWSER Mier Sept 21, 2011 11:08 am | |
| Demo: http://utilzdemo.hi2.ro/Script PHP care arata Ip-ul, Data, Ora, Browserul folosit de catre utilizator.
Scriptul PHP: - Cod:
-
<center> <font color="red">Ip-ul tau este :</font> <script src="http://embed.ipcatch.com/ip/" type="text/javascript"></script> <font color="red">Esti din tara :</font> <script src="http://embed.ipcatch.com/country/" type="text/javascript"></script><script src="http://embed.ipcatch.com/flag/" type="text/javascript"></script> <font color="red">Folosesti :</font> <script src="http://embed.ipcatch.com/browser/" type="text/javascript"></script> </b><script language="JavaScript" type="text/javascript"> <!-- // for all date displays // http://scripturi.3xforum.ro/ today = new Date(); year = (today.getFullYear) ? today.getFullYear() : today.getYear(); month = today.getMonth(); switch (month) { case 0 : month = "Ian"; break; case 1 : month = "Feb"; break; case 2 : month = "Mar"; break; case 3 : month = "Apr"; break; case 4 : month = "Mai"; break; case 5 : month = "Iun"; break; case 6 : month = "Iul"; break; case 7 : month = "Aug"; break; case 8 : month = "Sep"; break; case 9 : month = "Oct"; break; case 10 : month = "Noe"; break; case 11 : month = "Dec"; break; } date = today.getDate(); day = today.getDay(); switch (day) { case 0 : day = "Duminica"; break; case 1 : day = "Luni"; break; case 2 : day = "Marti"; break; case 3 : day = "Miercuri"; break; case 4 : day = "Joi"; break; case 5 : day = "Vineri"; break; case 6 : day = "Sambata"; break; } hours = today.getHours(); if (hours<12) greeting = 'Buna dimineata!'; if (hours<18 && hours>11) greeting = 'Buna ziua!'; if (hours<20 && hours>17) greeting = 'Buna seara!'; if (hours>19) greeting = 'Noapte buna! '; hour = (hours>12) ? (hours-12) : hours; halfDay = (hours>11 && hours<24) ? 'PM' : 'AM'; minutes = today.getMinutes(); dayStr = day+ ', ' +date+ ' ' +month+ ', ' +year; timeStr = (minutes<10) ? hour+ ':0' +minutes+ ' ' +halfDay : hour+
':' +minutes+ ' ' +halfDay;
// --> </script> <script language="JavaScript" type="text/javascript"> <!-- document.writeln('<font color="red">Astazi este:</font> ' +dayStr+ '.<font color="red">Ora este:</font> '
+timeStr+ '.');document.write(greeting+ ''); // --> </script> <body bgcolor="black" text="#FFFFFF"> <table align="center" border="0" cellpading="1" cellspacing="1"> <tr> <td width="850" class="noaccount" align="center" valign="top"> <head> <script language="javascript"> function toggle() { var ele = document.getElementById("toggleText"); var text = document.getElementById("displayText"); if(ele.style.display == "block") { ele.style.display = "none"; text.innerHTML = "ARATA"; } else { ele.style.display = "block"; text.innerHTML = "ASCUNDE"; } } </script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="ddimgtooltip.css" />
<script type="text/javascript" src="ddimgtooltip.js">
</center> |
|