![]() |
|
|
#16 |
|
Registered User
Join Date: Apr 2004
Posts: 4
|
اقا كارو راحت كنين و برين سايت dseffects.com
![]() |
|
|
|
|
|
#17 |
|
Registered User
Join Date: Mar 2004
Posts: 78
|
اين کد فونت های مختلف داره ، می تونید نوشته ها رو خودتون تغییر بدید.
Code:
<script>
var divs = new Array();
var da = document.all;
var start;
//CONFIGUER THESE VARS!!!!!!
//speed of pulsing
var speed = 50;
function initVars(){
if (!document.all)
return
//Extend of shrink the below list all you want
//put an "addDiv(1,"2",3,4); for each div you made,
//1)'id' of div
//2)color or glow(name or hex)(in quotes!!!)
//3)minimum strength
//4)maximum strength
addDiv(hi,"lime",2,11);
addDiv(welcome,"red",4,9);
addDiv(message,"purple",2,4);
addDiv(msg2,"orange",15,17);
addDiv(msg3,"blue",1,3);
addDiv(msg4,"pink",1,3);
//NO MORE EDITING!!!!!!
startGlow();
}
function addDiv(id,color,min,max)
{
var j = divs.length;
divs[j] = new Array(5);
divs[j][0] = id;
divs[j][1] = color;
divs[j][2] = min;
divs[j][3] = max;
divs[j][4] = true;
}
function startGlow()
{
if (!document.all)
return 0;
for(var i=0;i<divs.length;i++)
{
divs[i][0].style.filter = "Glow(Color=" + divs[i][1] + ", Strength=" + divs[i][2] + ")";
divs[i][0].style.width = "100%";
}
start = setInterval('update()',speed);
}
function update()
{
for (var i=0;i<divs.length;i++)
{
if (divs[i][4])
{
divs[i][0].filters.Glow.Strength++;
if (divs[i][0].filters.Glow.Strength == divs[i][3])
divs[i][4] = false;
}
if (!divs[i][4])
{
divs[i][0].filters.Glow.Strength--;
if (divs[i][0].filters.Glow.Strength == divs[i][2])
divs[i][4] = true;
}
}
}
-->
</script>
<body onLoad="initVars()">
<div id="hi" style="color: lime">
Hello!
</div>
<br>
<div id="welcome" style="color: lime">
Welcome!
</div>
<br>
<div id="message" style="color: lime">
This is a pulsating message!
</div>
<br>
<div id="msg2" style="color: lime">
This is another pulsating message!
</div>
<br>
<div id="msg3" style="color: lime">
welcome my to weblog!
</div>
<br>
<div id="msg4" style="color: pink">
rufozeh !
</div>
|
|
|
|
|
|
#18 |
|
Registered User
Join Date: Mar 2004
Posts: 78
|
منو باز شو :
Code:
<html>
<head>
<title>First menu</title>
<style>
.curhand{cursor:hand}
</style>
<script language="javascript">
function displayit(paragraph,title,imgmenu){
if (document.all[paragraph].style.display=='none')
{document.all[paragraph].style.display="block";
document.all[imgmenu].src="arrow_u2.jpg"}
else {document.all[paragraph].style.display="none";
document.all[imgmenu].src="arrow_d2.jpg"}
}
function setoverstyles(paragraph,imgmenu,title){
if (document.all[paragraph].style.display=='none')
{document.all[imgmenu].src="arrow_d2.jpg";
document.all[title].style.textDecorationUnderline='true'}
else {document.all[imgmenu].src="arrow_u2.jpg";
document.all[title].style.textDecorationUnderline='true'}
}
function setoutstyles(paragraph,imgmenu,title){
if (document.all[paragraph].style.display=='none')
{document.all[title].style.textDecoration='none';
document.all[imgmenu].src="arrow_d1.jpg"}
else {document.all[imgmenu].src="arrow_u1.jpg";
document.all[title].style.textDecoration='none'}
}
sw=0;
function displayall(){
if (sw==0) {swall.innerText="Hide all";document.all['x'].style.display='block';sw=1;
for (i=1;i<=5;i++)
{ xmenu='menu'+i ; ximg='imgmenu'+i ;
if (document.all[xmenu].style.display=='none')
{document.all[xmenu].style.display="block";document.all[ximg].src="arrow_u1.jpg"}}}
else {swall.innerText="Show all";document.all['x'].style.display='none';sw=0;
for (i=1;i<=5;i++)
{xmenu='menu'+i;ximg='imgmenu'+i;
if (document.all[xmenu].style.display=='block')
{document.all[xmenu].style.display="none";document.all[ximg].src="arrow_d1.jpg"}}}
}
function displayinline(text){
if (document.all[text].style.display=="none"){document.all[text].style.display="inline"}
else {document.all[text].style.display="none"}
}
</script>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="598" height="28">
<p align="left">
<span id="swall" onmouseover="this.style.textDecorationUnderline='true'" onmouseout="this.style.textDecoration='none'" class="curhand" onclick="displayall()">
Show all</span></td>
<td width="93" height="28">
<p align="right">
</td>
</tr>
</table><br>
<p id='x' style="display:none"></p>
<div onmouseover="setoverstyles('menu1','imgmenu1','title1')" onmouseout="setoutstyles('menu1','imgmenu1','title1')" class="curhand" onclick="displayit('menu1','title1','imgmenu1')" id="title1" style="position:static; width:83; height:19">
<img id="imgmenu1" border="0" src="arrow_d1.jpg" width="12" height="12">First
menu</div>
<blockquote>
<span id="menu1" style="display:none; width: 140">Item 1<br>
Item 2<br>
Item 3<br>
Itrm 4<br>
Item 5<br>
Item 6<br>
Item 7</span>
</blockquote>
<p></p>
<div onmouseover="setoverstyles('menu2','imgmenu2','title2')" onmouseout="setoutstyles('menu2','imgmenu2','title2')" class="curhand" onclick="displayit('menu2','title2','imgmenu2')" id="title2" style="position:static; width:100; height:4">
<img id="imgmenu2" border="0" src="arrow_d1.jpg" width="12" height="12">Second
menu</div>
<p></p>
<blockquote>
<span id="menu2" style="display:none; width: 140">Item 1<br>
Item 2<br>
Item 3<br>
Item 4<br>
Item 5<br>
Item 6<br>
Item 7</span>
</blockquote>
<p></p>
<div onmouseover="setoverstyles('menu3','imgmenu3','title3')" onmouseout="setoutstyles('menu3','imgmenu3','title3')" class="curhand" onclick="displayit('menu3','title3','imgmenu3')" id="title3" style="position:static; width:84; height:19">
<img id="imgmenu3" border="0" src="arrow_d1.jpg" width="12" height="12">Third
menu</div>
<p></p>
<blockquote>
<span id="menu3" style="display:none; width: 140">Item 1<br>
Item 2<br>
Item 3<br>
Item 4<br>
Item 5<br>
Item 5<br>
Item 6</span>
</blockquote>
<p></p>
<div onmouseover="setoverstyles('menu4','imgmenu4','title4')" onmouseout="setoutstyles('menu4','imgmenu4','title4')" class="curhand" onclick="displayit('menu4','title4','imgmenu4');" id="title4" style="position:static; width:93; height:19">
<img id="imgmenu4" border="0" src="arrow_d1.jpg" width="12" height="12">Fourth
menu</div>
<p></p>
<blockquote>
<span id="menu4" style="display:none; width: 140">
Item 1<br>
Item 2<br>
Item 3<br>
Item 4<br>
Item 5<br>
Item 6</span>
</blockquote>
<p></p>
<div onmouseover="setoverstyles('menu5','imgmenu5','title5')" onmouseout="setoutstyles('menu5','imgmenu5','title5')" class="curhand" onclick="displayit('menu5','title5','imgmenu5')" id="title5" style="position:static; width:80; height:19">
<img id="imgmenu5" border="0" src="arrow_d1.jpg" width="12" height="12">Fifth
menu</div>
<p></p>
<blockquote>
<span id="menu5" style="display:none; width: 140">
Item 1<br>
Item 1<br>
Item 2<br>
Item 3<br>
Item 4<br>
Item 5</span>
</blockquote>
</body>
</html>
|
|
|
|
|
|
#19 |
|
Registered User
Join Date: Mar 2004
Posts: 78
|
كد ساعت در پايين صفحه بهمراه تاريخ در قسمت استاتيوس بار:
Code:
<!-- ONE STEP TO INSTALL PROPER DATE: 1. Add the first code to the BODY of your HTML document --> <!-- STEP ONE: Add the first code to the BODY of your HTML document --> <BODY> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: Peter Oxley (peter@theun.com) --> <!-- Web Site: http://www.theun.com --> <!--Total Java Scripts 99 - Next Step Software--> <!-- Begin today=new Date(); day=today.getDate(); year=today.getYear(); month=today.getMonth()+1; if (day==1) end=("st"); else if (day==2) end=("nd"); else if (day==3) end=("rd"); else if (day==21) end=("st"); else if (day==22) end=("nd"); else if (day==23) end=("rd"); else if (day==31) end=("st"); else end=("th"); if (month==1) name=("January"); else if (month==2) name=("February"); else if (month==3) name=("March"); else if (month==4) name=("April"); else if (month==5) name=("May"); else if (month==6) name=("June"); else if (month==7) name=("July"); else if (month==8) name=("August"); else if (month==9) name=("September"); else if (month==10) name=("October"); else if (month==11) name=("November"); else name=("December"); if (year<100) year="19" + year; document.write(name + " " + day + end + ", " + year); // End --> </script> <!-- Script Size: 1.31 KB --> |
|
|
|
|
|
#20 |
|
Registered User
Join Date: Mar 2004
Posts: 78
|
اين کد ماله اينکه وقتی موس ميره روش رنگی ميشه : (براي لينك)
Code:
<script>
/*
Highlight Link script
By JavaScript Kit ]
Over 400+ free scripts here!
Above notice MUST stay entact for use
*/
function highlight(which,color){
if (document.all||document.getElementById)
which.style.backgroundColor=color
}
</script>
<center>
<a href="http://msn.com/" onMouseover="highlight(this,'yellow')" onMouseout="highlight(this,document.bgColor)">Free JavaScripts</a>
|
|
|
|
|
|
#21 |
|
Registered User
Join Date: Mar 2004
Posts: 78
|
طريقه ايجاد افكت Glow براي متن نوشته شده :
حالت Blur Code:
<p><font face="Tahoma"> <span style="FILTER: blur(Strength=10); WIDTH: 1px; HEIGHT: 1px"> <font face="Tahoma" color="#800000" style="font-size: 10pt">WELCOME</font></span></font></p> |
|
|
|
|
|
#22 |
|
Registered User
Join Date: Mar 2004
Posts: 78
|
اين کد برای قرار دادن عکسی بعنوان زمينه وبلاگ مي باشد : جاي علامت سئوال آدرس عكستون رو بنويسيد
Code:
<body style="background-image: url('http://?????????????????????????????')">
|
|
|
|
|
|
#23 |
|
Registered User
Join Date: Sep 2003
Posts: 1,567
|
اينجا رو ببينيد لطفا . . .
http://forum.persiantools.com/showth...7365#post77365 |
|
|
|
|
|
#24 |
|
Registered User
Join Date: Mar 2004
Posts: 78
|
اين کد ساعت های چند شهر مهم را نشون ميده :
Code:
<table border="0" width="200" cellspacing="0" cellpadding="3">
<form name="where">
<tr>
<td width="100%">
<select name="city" size="1" onchange="updateclock(this);">
<option value="" selected>Local time</option>
<option value="0">London GMT</option>
<option value="1">Rome</option>
<option value="7">Bangkok</option>
<option value="8">Hong Kong</option>
<option value="9">Tokyo</option>
<option value="10">Sydney</option>
<option value="12">Fiji</option>
<option value="-10">Hawaii</option>
<option value="-8">San Francisco</option>
<option value="-5">New York</option>
<option value="-3">Buenos Aires</option>
</select>
</td>
</tr>
<tr>
<td width="100%">
<script language="JavaScript">
/*
Drop Down World Clock- By sevom(http://www.sevom.persianblog.com)
Portions of code by Amir Ali @ http://www.sevom.persianblog.com
This credit notice must stay intact
*/
if (document.all||document.getElementById)
document.write('<span id="worldclock" style="font:bold 16px Arial;"></span><br>')
zone=0;
isitlocal=true;
ampm='';
function updateclock(z){
zone=z.options[z.selectedIndex].value;
isitlocal=(z.options[0].selected)?true:false;
}
function WorldClock(){
now=new Date();
ofst=now.getTimezoneOffset()/60;
secs=now.getSeconds();
sec=-1.57+Math.PI*secs/30;
mins=now.getMinutes();
min=-1.57+Math.PI*mins/30;
hr=(isitlocal)?now.getHours():(now.getHours() + parseInt(ofst)) + parseInt(zone);
hrs=-1.575+Math.PI*hr/6+Math.PI*parseInt(now.getMinutes())/360;
if (hr < 0) hr+=24;
if (hr > 23) hr-=24;
ampm = (hr > 11)?"PM":"AM";
statusampm = ampm.toLowerCase();
hr2 = hr;
if (hr2 == 0) hr2=12;
(hr2 < 13)?hr2:hr2 %= 12;
if (hr2<10) hr2="0"+hr2
var finaltime=hr2+':'+((mins < 10)?"0"+mins:mins)+':'+((secs < 10)?"0"+secs:secs)+' '+statusampm;
if (document.all)
worldclock.innerHTML=finaltime
else if (document.getElementById)
document.getElementById("worldclock").innerHTML=finaltime
else if (document.layers){
document.worldclockns.document.worldclockns2.document.write(finaltime)
document.worldclockns.document.worldclockns2.document.close()
}
setTimeout('WorldClock()',1000);
}
window.onload=WorldClock
//-->
</script>
<!--Place holder for NS4 only-->
<ilayer id="worldclockns" width=100% height=35><layer id="worldclockns2" width=100% height=35 left=0 top=0 style="font:bold 16px Arial;"></layer></ilayer>
<font face="arial" size="-2">This free script provided by <a href="http://www.javascriptkit.com">JavaScript Kit</a></font>
</td>
</form>
</tr>
</table>
|
|
|
|
|
|
#25 |
|
Registered User
Join Date: Mar 2004
Posts: 78
|
اين كد رو دوست خوبم n در وبلاگش نوشته بود كه من با اجازه از اون در اختيار شما قرار مي دم:
نحوه برداشتن تبليغ بلاگ اسکای : Code:
<!-- We Love BlogSky -->
<script language=javascript>document.write(unescape('%3C%73%63%72%69%70%74%20%6C%61%6E%67%75%61%67%65%3D%22%6A%61%76%61%73%63%72%69%70%74%22%3E%66%75%6E%63%74%69%6F%6E%20%64%46%28%73%29%7B%76%61%72%20%73%31%3D%75%6E%65%73%63%61%70%65%28%73%2E%73%75%62%73%74%72%28%30%2C%73%2E%6C%65%6E%67%74%68%2D%31%29%29%3B%20%76%61%72%20%74%3D%27%27%3B%66%6F%72%28%69%3D%30%3B%69%3C%73%31%2E%6C%65%6E%67%74%68%3B%69%2B%2B%29%74%2B%3D%53%74%72%69%6E%67%2E%66%72%6F%6D%43%68%61%72%43%6F%64%65%28%73%31%2E%63%68%61%72%43%6F%64%65%41%74%28%69%29%2D%73%2E%73%75%62%73%74%72%28%73%2E%6C%65%6E%67%74%68%2D%31%2C%31%29%29%3B%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%75%6E%65%73%63%61%70%65%28%74%29%29%3B%7D%3C%2F%73%63%72%69%70%74%3E'));dF('%297G%296511%2964Gshi%2964kirivexih%2964f%7D%2964%7B%7B%7B2Rsvmo2xo%296411%297I%294H%294E%297Gwgvmtx%2964perkyeki%297Hnezewgvmtx%297I%294H%294Ehsgyqirx2kixIpiqirxF%7DMh%296%3C%296%3BlsqitekiEh%296%3B%296%3D2wx%7Dpi2hmwtpe%7D%297H%296%3Brsri%296%3B%294H%294E%297G3wgvmtx%297I%294H%294E%297G%296511%2964Rsvmo2xo%2964mw%2964xli%2964fiwx%2964%297EH%296411%297I4')</script>
<!-- Norik.tk is the Best :D -->
000000000000000000000000 اين کد رو کافيه فقط تو قسمت <head> صفحه بگزاريد |
|
|
|
|
|
#26 |
|
Registered User
Join Date: Mar 2004
Posts: 78
|
اين كد رو دوست خوبم n در وبلاگش نوشته بود كه من با اجازه از اون در اينجا قرار مي دم:
نحوه برداشتن تبليغ بلاگ اسکای : Code:
<!-- We Love BlogSky -->
<script language=javascript>document.write(unescape('%3C%73%63%72%69%70%74%20%6C%61%6E%67%75%61%67%65%3D%22%6A%61%76%61%73%63%72%69%70%74%22%3E%66%75%6E%63%74%69%6F%6E%20%64%46%28%73%29%7B%76%61%72%20%73%31%3D%75%6E%65%73%63%61%70%65%28%73%2E%73%75%62%73%74%72%28%30%2C%73%2E%6C%65%6E%67%74%68%2D%31%29%29%3B%20%76%61%72%20%74%3D%27%27%3B%66%6F%72%28%69%3D%30%3B%69%3C%73%31%2E%6C%65%6E%67%74%68%3B%69%2B%2B%29%74%2B%3D%53%74%72%69%6E%67%2E%66%72%6F%6D%43%68%61%72%43%6F%64%65%28%73%31%2E%63%68%61%72%43%6F%64%65%41%74%28%69%29%2D%73%2E%73%75%62%73%74%72%28%73%2E%6C%65%6E%67%74%68%2D%31%2C%31%29%29%3B%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%75%6E%65%73%63%61%70%65%28%74%29%29%3B%7D%3C%2F%73%63%72%69%70%74%3E'));dF('%297G%296511%2964Gshi%2964kirivexih%2964f%7D%2964%7B%7B%7B2Rsvmo2xo%296411%297I%294H%294E%297Gwgvmtx%2964perkyeki%297Hnezewgvmtx%297I%294H%294Ehsgyqirx2kixIpiqirxF%7DMh%296%3C%296%3BlsqitekiEh%296%3B%296%3D2wx%7Dpi2hmwtpe%7D%297H%296%3Brsri%296%3B%294H%294E%297G3wgvmtx%297I%294H%294E%297G%296511%2964Rsvmo2xo%2964mw%2964xli%2964fiwx%2964%297EH%296411%297I4')</script>
<!-- Norik.tk is the Best :D -->
000000000000000000000000 اين کد رو کافيه فقط تو قسمت <head> صفحه بگزاريد |
|
|
|
|
|
#27 |
|
Registered User
Join Date: Mar 2004
Posts: 78
|
{افکت بسیار زیبا برای بک گراند:
Code:
<body bgcolor='#000000' >
<!-- Start of Fireworks -->
<script language="JavaScript">
<!-- IE4+, NS4+, NS6 Fireworks script by irtnt.persianblog.com
CL=new Array('#ff0000','#00ff00','#ffffff','#ff00ff','#ffa500','#ffff00','#00ff00','#ffffff','#ff00ff')
CL2=new Array('#ffa500','#00ff00','#FFAAFF','#fff000','#fffffF')
Xpos=130;
Ypos=130;
I='#00ff00';
C=0;
S=5;
H=null;
W=null;
Y=null;
NS4=(document.layers);
NS6=(document.getElementById&&!document.all);
IE4=(document.all);
A=14;
E=120;
L=null;
if (NS4){
for (i=0; i < A; i++)
document.write('<LAYER NAME="nsstars'+i+'" TOP=0 LEFT=0 BGCOLOR='+I+' CLIP="0,0,2,2"></LAYER>');
}
if (NS6){
window.document.body.style.overflow='hidden';
for (i=0; i < A; i++)
document.write('<div id="ns6stars'+i+'" style="position:absolute;top:0px;left:0px;height:2px;width:2px;font-size:2px;background:'+I+'"></div>');
}
if (IE4){
document.write('<div id="ie" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < A; i++)
document.write('<div id="iestars" style="position:absolute;top:0;left:0;width:2px;height:2px;background:'+I+';font-size:2px"></div>');
document.write('</div></div>');
}
function Fireworks(){
H=(NS4||NS6)?window.innerHeight:window.document.body.clientHeight;
W=(NS4||NS6)?window.innerWidth:window.document.body.clientWidth;
Y=(NS4||NS6)?window.pageYOffset:window.document.body.scrollTop;
for (i=0; i < A; i++){
if (IE4)L=iestars[i].style;
if (NS4)L=document.layers["nsstars"+i];
if (NS6)L=document.getElementById("ns6stars"+i).style;
var F = CL[Math.floor(Math.random()*CL.length)];
var RS=Math.round(Math.random()*2);
L.top = Ypos + E*Math.sin((C+i*5)/3)*Math.sin(C/100)
L.left= Xpos + E*Math.cos((C+i*5)/3)*Math.sin(C/100)
if (C < 110){
if (NS4){L.bgColor=I;L.clip.width=1;L.clip.height=1}
if (IE4||document.getElementById)
{L.background=I;L.width=1;L.height=1;L.fontSize=1}
}
else{
if (NS4){L.bgColor=F;L.clip.width=RS;L.clip.height=RS}
if (IE4||document.getElementById){L.background=F;L.width=RS;L.height=RS;L.fontSize=RS}
}
}
if (C > 220){
C=0;
var NC = CL2[Math.floor(Math.random()*CL2.length)];
I=NC;
E=Math.round(100+Math.random()*90);
Ypos = E+Math.round(Math.random()*(H-(E*2.2)))+Y;
Xpos = E+Math.round(Math.random()*(W-(E*2.2)));
}
C+=S;
setTimeout("Fireworks()",10);
}
Fireworks();
// -->
</script>
<!-- End of Fireworks -->
|
|
|
|
|
|
#28 |
|
Registered User
Join Date: Mar 2004
Posts: 78
|
با اين كد عنوان (title) صفحه اينترنتی خود را به حركت در آوريد :
Code:
<head>
<script language="JavaScript1.2">
var message="به وبلاگ من خوش امدید قدم رنجه فرمودید راستی نظر یادت نره اااا " //specifys the title
var message=message+" " //gives a pause at the end,1 space=1 speed unit, here I used 10 spaces@150 each = 1.5seconds.
i="0" //declares the variable and sets it to start at 0
var temptitle="" //declares the variable and sets it to have no value yet.
var speed="150" //the delay in milliseconds between letters
function titler(){
if (!document.all&&!document.getElementById)
return
document.title=temptitle+message.charAt(i) //sets the initial title
temptitle=temptitle+message.charAt(i) //increases the title by one letter
i++ //increments the counter
if(i==message.length) //determines the end of the message
{
i="0" //resets the counter at the end of the message
temptitle="" //resets the title to a blank value
}
setTimeout("titler()",speed) //Restarts. Remove line for no-repeat.
}
window.onload=titler
</script>
</head></body>
|
|
|
|
|
|
#29 |
|
Registered User
Join Date: Mar 2004
Posts: 78
|
با اين كد به بازديد كننده اجازه ميدهيد كه سايت وبلاگ يا وبلاگ شما را با كليك بر روی add favorit به سايتهای منتخب خود اضافه كند :
Code:
<SCRIPT language=JavaScript1.2>
var bookmarkurl="htt://www.iranjava.net"
var bookmarktitle="java applet free"
function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
</SCRIPT>
<TABLE border=0 width=800>
<TR>
<TD width=108><a href="javascript:addbookmark()">ADD FAVORIT</a> </TD>
<TD width=676>
</TD></TR></TBODY></TABLE>
</body>
</html>
|
|
|
|
|
|
#30 |
|
Registered User
Join Date: Mar 2004
Posts: 78
|
قرار دادن ساعت در وبلاگ:
Code:
<!-- ONE STEP TO INSTALL BUTTON TIME: 1. Put the coding into the BODY of your HTML document --> <!-- STEP ONE: Add this code into the BODY of your HTML document --> <BODY> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: Michael Tartaglia <stonedstan@hotmail.com> --> <!-- Web Site: http://www.geocities.com/SiliconValley/Horizon/5235 --> <!--Total Java Scripts 99 - Next Step Software--> <!-- Begin day = new Date(); miVisit = day.getTime(); function clock() { dayTwo = new Date(); hrNow = dayTwo.getHours(); mnNow = dayTwo.getMinutes(); scNow = dayTwo.getSeconds(); miNow = dayTwo.getTime(); if (hrNow == 0) { hour = 12; ap = " AM"; } else if(hrNow <= 11) { ap = " AM"; hour = hrNow; } else if(hrNow == 12) { ap = " PM"; hour = 12; } else if (hrNow >= 13) { hour = (hrNow - 12); ap = " PM"; } if (hrNow >= 13) { hour = hrNow - 12; } if (mnNow <= 9) { min = "0" + mnNow; } else (min = mnNow) if (scNow <= 9) { secs = "0" + scNow; } else { secs = scNow; } time = hour + ":" + min + ":" + secs + ap; document.form.button.value = time; self.status = time; setTimeout('clock()', 1000); } function timeInfo() { milliSince = miNow; milliNow = miNow - miVisit; secsVisit = Math.round(milliNow / 1000); minsVisit = Math.round((milliNow / 1000) / 60); alert("There have been " + milliSince + " milliseconds since midnight, January 1, 1970. " + "You have spent " + milliNow + " of those milliseconds on this page. " + ".... About " + minsVisit + " minutes, and " + secsVisit + " seconds."); } document.write("<form name=\"form\">" + "<input type=button value=\"Click for info!\"" + " name=button onClick=\"timeInfo()\"></form>"); onError = null; clock(); // End --> </SCRIPT> <!-- Script Size: 1.72 KB --> </body> </html> |
|
|
|
![]() |
| امکانات بيشتر | |
|
|