ساعت و تاريخ و اي پي بازديد كننده در اين پايين

akaveh

Member
سلام من مي خوام در پايين ie جايي كه در همين سايت يك نوشته دارد ساعت و تاريخ و اي پي كسي كه از سايت ديدن مي كنه نمايش داده بشه حالا همه با هم يا هر كدوم باشه
موفق باشي
 

iRWEBDES

Active Member
اين ساعت و تاريخ و آپ ديت :
کد:
<html>

<head>
<meta name="GENERATOR" content="(c) 1998 Copyright Next Step Software">
<title>Passwords -  Total JavaScripts 99</title>
</head>
<script LANGUAGE="JavaScript">

     <!--//

browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion); 

if (browser_name == "Netscape" && browser_version >= 3.0) { roll = 'true'; }
else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 4.0) { roll = 'true'; }
else { roll = 'false'; }

function msover1(img1,ref1) { if (roll == 'true') { document.images[img1].src = ref1; } }
function msout1(img1,ref1) { if (roll == 'true') { document.images[img1].src = ref1; } }

function msover2(img1,ref1,img2,ref2) { if (roll == 'true') 
        { document.images[img1].src = ref1; document.images[img2].src = ref2;} }

function msout2(img1,ref1) { if (roll == 'true')  
        { document.images[img1].src = ref1; } }

function msover3(img1,ref1,img2,ref2,img3,ref3) { if (roll == 'true') 
        { document.images[img1].src = ref1; document.images[img2].src = ref2; document.images[img3].src = ref3;         } }
function msout3(img1,ref1,img2,ref2) { if (roll == 'true')  
        { document.images[img1].src = ref1; document.images[img2].src = ref2; } }
                
//-->

</script>


<body onLoad="window.defaultStatus='Passwords - Total JavaScripts 99'">

<p><!--webbot bot="ImageMap" startspan
rectangle="(160,1) (205,16) javascript:history.go(-1)"
rectangle="(389,1) (449,16) javascript:history.go(1)"
alt="Click Mouse on Main Menu Bar to Activate It!" border="0" height="29" src="title.GIF"
width="450" --><MAP NAME="FrontPageMap0"><AREA SHAPE="RECT" COORDS="160,1,205,16" HREF   ="javascript:history.go(-1)"><AREA SHAPE="RECT" COORDS="389,1,449,16" HREF   ="javascript:history.go(1)"></MAP><IMG alt="Click Mouse on Main Menu Bar to Activate It!" border=0 height=29 src="title.GIF" useMap=#FrontPageMap0 width=450><!--webbot bot="ImageMap" i-checksum="24119" endspan --></p>

<table border="0" cellpadding="0" cellspacing="0" width="153">
  <tr>
    <td><A href="logincoder_.htm" onmouseout="msout1('imageA','_view1.gif');"
    onmouseover="msover1('imageA','_view2.gif');"><IMG alt="Total Java Scripts 99" border
    =0 height=29 name=imageA src="_view1.gif" width=158 ></A> </td>
    <td></td>
  </tr>
</table>

<form method="post" action="--WEBBOT-SELF--">
  <p><TEXTAREA cols=64 name=scrolls rows=23 style="BACKGROUND-COLOR: rgb(255,200,16); COLOR: rgb(0,0,0)">
<!-- ONE STEP TO INSTALL LOGIN CODER:

   1.  Add the first code into the BODY of your HTML document  -->

<!-- STEP ONE: Add the first code into the BODY of your HTML document  -->

<BODY>

<center><table border=1>
<tr><form name=members><td rowspan=4>
<select name=memlist size=10 onChange="showmem(this.form)">

<!-- Original:  Dion ([email protected]) -->
<!-- Web Site:  http://www.omen.com.au/~dion -->

<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->

<!-- "member name | password | destination pagename |" -->
<option selected value="John Smith|password|mainpage|">John Smith
<option value="Peter Jones|theirpwd|endpages|">Peter Jones
<option value="Sue Brown|asdfvcxz|nowheres|">Sue Brown
<option value="Sally West|zaqxswde|logintop|">Sally West
</select></td>
<td align=right>User:</td><td><input type=hidden value="0" name=entry>
<input type=text name=memname size=10 value="" onBlur="update(this.form)"></td></tr>
<tr><td align=right>Password:</td><td><input type=text name=password size=10 maxlength=8 onBlur="update(this.form)"> *</td></tr>
<tr><td align=right>Page Name:</td><td><input type=text name=pagename size=10 maxlength=8 onBlur="update(this.form)"><b>.html</b> *</td></tr>
<tr><td colspan=2 align=center>
<input type=button value="New User" onclick="addnew(this.form);">
<input type=button value="Delete User" onclick="delthis(this.form);">
<input type=button value="Show Coding" onclick="create(this.form);"></td></tr>
<tr><td colspan=3 align=center>
<input type=text size=60 name=message value="Note:  Starred entries (*) must be exactly 8 letters! (a-z)">
<input type=hidden name=num value=1></td>
</form></tr>
</table>
<hr size=2 width=75%>
<form name=js><textarea cols=75 rows=10 name=scrpt wrap=virtual>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var params=new Array(4);
var alpha="ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHI";
function check(form) {
which=form.memlist.selectedIndex;
choice = form.memlist.options[which].value+"|";
if (choice=="x|") {
alert("Please Select Your Name From The List");
return;
}
p=0;
for (i=0;i<3;i++) {
a=choice.indexOf("|",p);
params[i]=choice.substring(a,p);
p=a+1;
}
h1=makehash(form.pass.value,3);
h2=makehash(form.pass.value,10)+" ";
if (h1!=params[1]) {
alert("Incorrect Password!"); return; };
var page="";
for (var i=0;i<8;i++) {
letter=params[2].substring(i,i+1)
ul=letter.toUpperCase();
a=alpha.indexOf(ul,0);
a-=(h2.substring(i,i+1)*1);
if (a<0) a+=26;
page+=alpha.substring(a,a+1); };
top.location=page.toLowerCase()+".html";
}
function makehash(pw,mult) {
pass=pw.toUpperCase();
hash=0;
for (i=0;i<8;i++) {
letter=pass.substring(i,i+1);
c=alpha.indexOf(letter,0)+1;
hash=hash*mult+c;
}
return(hash);
}
// End -->
</script>
</textarea>
</form>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var params=new Array(4);
var script=document.js.scrpt.value;
document.js.scrpt.value="Create your users, their passwords, and their destination pages using the form above.\n\nThen, click 'Show Coding' to see the login HTML and JavaScript that you need to put on your page to password-protect your site with that info.\n\nQuestions about this script or how to put it on your site should be directed to it's author via email:  [email][email protected][/email]\n\n*Honestly, we don't even totally understand this JavaScript!*";
var alpha="ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHI";
showmem(document.members);
function showmem(form) {
document.members.num.value=document.members.memlist.length;
var which=form.memlist.selectedIndex;
splt(form.memlist[which].value);
form.entry.value=which+1;
for (i=2;i<5;i++) {
form.elements[i].value=params[i-2]; };
}
function splt(choice) {
p=0;
for (i=0;i<3;i++) {
a=choice.indexOf("|",p);
params[i]=choice.substring(a,p);
p=a+1;
   }
}
function addnew(form) {
newmem=getfields(form);
var who=prompt("New User's Name:","");
form.memlist[form.memlist.length] = new Option(who, newmem, false, true);
if (navigator.appName=="Netscape") {
document.js.scrpt.value=script;
history.go(0);
}
else {
showmem(document.members);
   }
}
function getfields(form) {
newmem="";
for (i=2;i<5;i++) {
newmem+=form.elements[i].value+"|"; };
for (i=3;i<5;i++) {
a=form.elements[i];
if (a.value.length!=8)
alert(a.name+" Requires 8 characters!");
for (k=0;k<8;k++) {
b=a.value.substring(k,k+1);
c=b.toUpperCase();
if (alpha.indexOf(c,0)<0) {
alert(a.name+" Must Use Letters A Through Z Only!"); break; };
   }
}
return(newmem);
}
function delthis(form) {
if (confirm("Delete "+form.memname.value+"?")) {
form.memlist.options[form.entry.value-1]=null;
form.message.value=form.memname.value+" Deleted";
form.memlist.selectedIndex=0;
if (navigator.appName=="Netscape") {
document.js.scrpt.value=script;
history.go(0);
}
else {
showmem(document.members);
      }
   }
}
function update(form) {
form.memlist[form.entry.value-1].value=getfields(form);
form.message.value=form.memname.value+"'s record was updated";
}
function create(form) {

var html="<center><form name=login>\n";
html+="<table border=1 cellpadding=3>\n\n";
html+="<!-- Original:  Dion ([email protected]) -->\n";
html+="<!-- Web Site:  http://www.omen.com.au/~dion -->\n";
html+="<!-- This script and many more are available online from -->\n";
html+="<!-- The JavaScript Source!! http://javascriptsource.com -->\n\n";
html+='<tr><td colspan=2 align=center><font size="+2"><b>Members-Only Area!</b></font></td></tr>\n';
html+="<tr><td>Username:</td><td><select name=memlist>\n<option value='x'>";
for (j=0;j<form.memlist.length;j++) {
splt(form.memlist.options[j].value);
h1=makehash(params[1],3);
h2=makehash(params[1],10)+" ";
var page="";
for (var i=0;i<8;i++) {
letter=params[2].substring(i,i+1);
ul=letter.toUpperCase();
a=alpha.indexOf(ul,0);
a+=(h2.substring(i,i+1)*1);
page+=alpha.substring(a,a+1);
}
html+="\n<option value='"+params[0]+"|"+h1+"|"+page+"'>"+params[0];
};
html+="\n</select></td></tr>\n";
html+="<tr><td>Password:</td><td><input type=password size=10 maxlength=8 name=pass></td></tr>\n";
html+='<tr><td colspan=2 align=center><input type=button value="Login" onclick="check(this.form)"></td>\n';
html+="</tr>\n</table>\n</form>\n";
document.js.scrpt.value=html+script+"</center>";
}
function makehash(pw,mult) {
pass=pw.toUpperCase();
hash=0;
for (i=0;i<8;i++) {
letter=pass.substring(i,i+1);
c=alpha.indexOf(letter,0)+1;
hash=hash*mult+c;
}
return(hash);
}
// End -->
</script>
</center>

<!-- Script Size:  6.50 KB  --></TEXTAREA></p>
</form>

<p align="left"><small><small><strong><font face="MS Sans Serif"><small>1998 Copyright (C)
Next Step All Rights Reserved</small></font></strong></small></small></p>
</body>
</html>
اينم يك نوعه ديگه ( ساعت و تاريخ ) :
کد:
<!-- ONE STEP TO INSTALL DATE & TIME STAMP:

   1.  Paste the coding into the BODY of your HTML document  -->

<!-- STEP ONE: Copy this code into the BODY of your HTML document  -->

<BODY>

<CENTER>
<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->

<!-- Begin
Stamp = new Date();
document.write('<font size="2" face="Arial"><B>' + (Stamp.getMonth() + 1) +"/"+Stamp.getDate()+ "/"+Stamp.getYear() + '</B></font><BR>');
var Hours;
var Mins;
var Time;
Hours = Stamp.getHours();
if (Hours >= 12) {
Time = " P.M.";
}
else {
Time = " A.M.";
}
if (Hours > 12) {
Hours -= 12;
}
if (Hours == 0) {
Hours = 12;
}
Mins = Stamp.getMinutes();
if (Mins < 10) {
Mins = "0" + Mins;
}	
document.write('<font size="2" face="Arial"><B>' + Hours + ":" + Mins + Time + '</B></font>');
// End -->
</SCRIPT>
</CENTER>

<!-- Script Size:  0.97 KB  -->

اينم يك ساعت و مشخصات صفحه و منطقه شما :
کد:
<!-- ONE STEP TO INSTALL PAGE VIEWED DATE:

   1.  Paste the coding into the BODY of your HTML document  -->

<!-- STEP ONE: Copy this code into the BODY of your HTML document  -->

<BODY>

<CENTER>
<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->

<!-- Begin
var now = new Date();
document.write("<BR><CENTER><FONT COLOR=800000>");
document.write("<B>Page viewed at: </B></FONT> <B>"+now+"</B><BR>");
// End -->
</SCRIPT>
</CENTER>

<!-- Script Size:  0.60 KB  -->
اين براي آيپي :
کد:
<!-- ONE STEP TO INSTALL IP ADDRESS:

   1.  Put the code into the BODY of your HTML document  -->

<!-- STEP ONE: Copy this code into the BODY of your HTML document  -->

<BODY>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->

<!-- Begin
netscapeTest = parseInt(navigator.appVersion)
explorerTest = navigator.appName.indexOf("Microsoft") + 1
function netscapeThree() {
if (navigator.javaEnabled()) {
userDomain = java.net.InetAddress.getLocalHostName()
return (userDomain.toString())
} else {
return null
   }
}
function netscapeFour() {
if (navigator.javaEnabled()) {
baseAddress = java.net.InetAddress.getLocalHost()
userDomain = baseAddress.getHostName()
return (userDomain.toString())
} else {
return null
   }
}
if ((explorerTest == "0") && (netscapeTest == "3")) {
domainName = netscapeThree()
}
else if ((explorerTest == "0") && (netscapeTest == "4")) {
domainName = netscapeFour()
}
else {
domainName = "using Internet Explorer?  Then I don\'t know what your IP address is."
}
alert('Are you really ' + domainName + ' ?')
// End -->
</SCRIPT>

<!-- Script Size:  1.20 KB  -->

موفق باشيد :wink:

مهرداد كوهي
 

akaveh

Member
آقا ممنون البته هنوز امتحان نكردم ولي اميدوارم نتيچه بگيرم
به هر حال مرسي :oops:
 

akaveh

Member
سلام
اقا اين كد اول كه اصلا چيزي نداد كد 2 هم ي ساعت داد كه فقط ساعت زمان ورود رو ميده و اونجا يي كه من مي خواستم باشه نبود من مي خوام اين پايين جايي كه تو اين سايت نوشتهPERSIAN GRAPHIC ,... WEB
 

iRWEBDES

Active Member
akaveh گفت:
سلام
اقا اين كد اول كه اصلا چيزي نداد كد 2 هم ي ساعت داد كه فقط ساعت زمان ورود رو ميده و اونجا يي كه من مي خواستم باشه نبود من مي خوام اين پايين جايي كه تو اين سايت نوشتهPERSIAN GRAPHIC ,... WEB
دقيق بگو چي ميخواي بهت بگم

مهرداد كوهي
 

iRWEBDES

Active Member
iRWEBDES گفت:
akaveh گفت:
سلام
اقا اين كد اول كه اصلا چيزي نداد كد 2 هم ي ساعت داد كه فقط ساعت زمان ورود رو ميده و اونجا يي كه من مي خواستم باشه نبود من مي خوام اين پايين جايي كه تو اين سايت نوشتهPERSIAN GRAPHIC ,... WEB
دقيق بگو چي ميخواي بهت بگم

مهرداد كوهي
آهان تو بگو كد استاتوس بار رو ميخواي ديگه
Status bar
به اونجا ميگن status bar
3 ساعت نگاه كردم ببينم منظورت چيه
آخرش فهميدم چي ميخواي...

مهرداد كوهي
 

iRWEBDES

Active Member
اين كد در استاتوس بار ساعت رو نشون ميده :

کد:
<html>

<head>
<title>Digital Clock - Status Bar</title>
<script Language="JavaScript">
var timerID = null;
var timerRunning = false;

function stopclock (){
        if(timerRunning)
                clearTimeout(timerID);
        timerRunning = false;
}


function showtime () {
        var now = new Date();
        var hours = now.getHours();
        var minutes = now.getMinutes();
        var seconds = now.getSeconds()
        var timeValue = "" + ((hours >12) ? hours -12 :hours)
        timeValue += ((minutes < 10) ? ":0" : ":") + minutes
        timeValue += ((seconds < 10) ? ":0" : ":") + seconds
        timeValue += (hours >= 12) ? " P.M." : " A.M."
        window.status = timeValue;
        timerID = setTimeout("showtime()",1000);
        timerRunning = true;
}
function startclock () {
        stopclock();
        showtime();
}
</script>
</head>

<body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080"
onLoad="startclock()">
</body>
</html>

اين كد - روز و ساعت و تاريخ رو نشون ميده :

کد:
<HTML>
<HEAD>
<TITLE>Clock And Date</TITLE>
<SCRIPT LANGUAGE="JavaScript">

  <!-- Hide JavaScript From Java-Impaired Browsers
  var timerID = null
  var timerRunning = false
  function MakeArray(size) 
  {
  this.length = size;
  for(var i = 1; i <= size; i++)
  {
  this[i] = "";
  }
  return this;
  }
  function stopclock (){
  if(timerRunning)
  clearTimeout(timerID);
  timerRunning = false
  }
  function showtime () {
  var now = new Date();
  var year = now.getYear();
  var month = now.getMonth() + 1;
  var date = now.getDate();
  var hours = now.getHours();
  var minutes = now.getMinutes();
  var seconds = now.getSeconds();
  var day = now.getDay();
  Day = new MakeArray(7);
  Day[0]="SUN";
  Day[1]="MON";
  Day[2]="TUE";
  Day[3]="WED";
  Day[4]="THU";
  Day[5]="FRI";
  Day[6]="SAT";
  var timeValue = "";
  timeValue += (Day[day]) + "   ";
  timeValue += ((month < 10) ? " 0" : " ") + month + "-";
  timeValue += date + "-" + year + "    ";
  timeValue += ((hours <= 12) ? hours : hours - 12);
  timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
  timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
  timeValue += (hours < 12) ? " AM" : " PM";
  window.status = timeValue;
  timerID = setTimeout("showtime()",1000);
  timerRunning = true
  }
  function startclock () {
  stopclock();
  showtime()
  }
  // End Hiding -->

</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="startclock();">

اين كد چند تا جمله به صورت رندوم نشون ميده :

کد:
<html>
<body bgcolor=ffffff>
<head> 
<script> 

// This script came from Web-Development.Com JavaScript Site
// Located at http://www.web-development.com/ 

message = new Array(5);
message[0] = "This is a sample of a Scrolling Status";  
message[1] = "The code for this is in the bottom right frame ";  
message[2] = "Hope this is what you wanted.";  
message[3] = "Come back to see us soon.";  
message[4] = "Don\'t forget to bookmark us";  
var showmsg = true;
function nextMessage() {
  if (!showmsg) {
    window.setTimeout("nextMessage()",5000);
    showmsg = true;
    return;
  }
  index = Math.floor(message.length * Math.random());
  window.status = message[index];
  window.setTimeout("nextMessage()",5000);
}   
nextMessage();  
</script> 
</head> 
<body bgcolor=ffffff> 
<font color="000080">
<center>
Look in the status bar for a sample of this code 
</center>
</font> 
</body> 
</html>

اين صفحه رو هم ببين : www.m-sharifi.com/teaching-statusbar.htm :wink:

مهرداد كوهي
 

جدیدترین ارسال ها

بالا