تبليغاتX
کدهای وبلاگ جهت ما و همه بی سوادها
دوباره میام هر چی خواستی بگو تا بذارم

قربون شما داداش یعقوب

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 20:16  توسط یعقوب افراسن  | 

دوباره میام هر چی خواستی بگو تا بذارم

قربون شما داداش یعقوب

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 20:15  توسط یعقوب افراسن  | 

کافیه اسکریپت ذیل را به قسمت body در قالبتون منتقل کنید .

<script language="JavaScript">
<!--/*visit http://google.persianblog.com*/
if (document.all){document.write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">')
for (xy=0;xy<7;xy++)
document.write('<div style="position:relative;width:3px;height:3px;background:#FFFF00;font-size:2px;visibility:visible"></div>')
document.write('</div>')
}

if (document.layers)
{window.captureEvents(Event.MOUSEMOVE);}
var yBase = 200;
var xBase = 200;
var yAmpl = 10;
var yMax = 40;
var step = .2;
var ystep = .5;
var currStep = 0;
var tAmpl=1;
var Xpos = 1;
var Ypos = 1;
var i = 0;
var j = 0;

if (document.all)
{
  function MoveHandler(){
  Xpos = document.body.scrollLeft+event.x;
  Ypos = document.body.scrollTop+event.y;
  }
  document.onmousemove = MoveHandler;
}

else if (document.layers)
{
  function xMoveHandler(evnt){
  Xpos = evnt.pageX;
  Ypos = evnt.pageY;
  }
  window.onMouseMove = xMoveHandler;
}

 

function animateLogo() {
if (document.all)
{
 yBase = window.document.body.offsetHeight/4;
 xBase = window.document.body.offsetWidth/4;
}
else if (document.layers)
{
 yBase = window.innerHeight/4 ;
 xBase = window.innerWidth/4;
}

if (document.all)
{
var totaldivs=document.all.starsDiv.all.length
 for ( i = 0 ; i < totaldivs ; i++ )
 {
var tempdiv=document.all.starsDiv.all[i].style
  tempdiv.top = Ypos + Math.cos((20*Math.sin(currStep/20))+i*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10);
  tempdiv.left = Xpos + Math.sin((20*Math.sin(currStep/20))+i*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10);
 }
}

else if (document.layers)
{
 for ( j = 0 ; j < 7 ; j++ )
 {
var templayer="a"+j
  document.layers[templayer].top = Ypos + Math.cos((20*Math.sin(currStep/20))+j*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10);
  document.layers[templayer].left =Xpos + Math.sin((20*Math.sin(currStep/20))+j*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10);
 }
}
currStep += step;
setTimeout("animateLogo()", 15);
}
animateLogo();
// -->
</script>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 20:13  توسط یعقوب افراسن  | 

<script language="JavaScript">
<!-- Mouse Comet 3 script by kurt.grigg@virgin.net
colours=new Array('#ffffff','#ff0000','#00ff00','#ffffff','#ff00ff','#ffa500','#fff000','#0000ff','#ffffff')
y = 0;
x = 0;
n6=(document.getElementById&&!document.all);
ns=(document.layers);
ie=(document.all);
d=(ns||ie)?'document.':'document.getElementById("';
a=(ns||n6)?'':'all.';
n6r=(n6)?'")':'';
s=(ns)?'':'.style';
n=(n6)?9:10;
if (ns){
for (i = 0; i < n; i++)
document.write('<layer name="dots'+i+'" top=0 left=0 width='+i/2+' height='+i/2+' bgcolor=#ff0000></layer>');
}
if (ie)
document.write('<div id="con" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
if (ie||n6){
for (i = 0; i < n; i++)
document.write('<div id="dots'+i+'" style="position:absolute;top:0px;left:0px;width:'+i/2+'px;height:'+i/2+'px;background:#ff0000;font-size:'+i/2+'"></div>');
}
if (ie)
document.write('</div></div>');

(ns||n6)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
y = (ns||n6)?evnt.pageY+4 - window.pageYOffset:event.y+4;
x = (ns||n6)?evnt.pageX+1:event.x+1;
}
(ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
 
function animate(){
h=(ns||n6)?window.innerHeight:document.body.clientHeight;
w=(ns||n6)?window.innerWidth:document.body.clientWidth;
o=(ns||n6)?window.pageYOffset:0;
if (ie)con.style.top=document.body.scrollTop;
for (i = 0; i < n; i++){
var temp1 = eval(d+a+"dots"+i+n6r+s);
var randcolours = colours[Math.floor(Math.random()*colours.length)];
(ns)?temp1.bgColor = randcolours:temp1.background = randcolours;
if (i < n-1){
 var temp2 = eval(d+a+"dots"+(i+1)+n6r+s);
 temp1.top = parseInt(temp2.top);
 temp1.left = parseInt(temp2.left);
 }
else{
 temp1.top = y+o;
 temp1.left = x;
 }
if ((y < h/10) || (y > h-h/10) || (x < w/10) || (x > w-w/10)){
var temp3 = eval(d+a+"dots"+0+n6r+s);
temp3.top = (y-25)+Math.random()*50;
temp3.left = (x-25)+Math.random()*50;
temp2.top = parseInt(temp3.top)+o;
temp2.left = parseInt(temp3.left);
}
}
setTimeout("animate()",30);
}
animate();
// -->
</script>

 

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 20:9  توسط یعقوب افراسن  | 

1-  ابتدا کد هایی که در جعبه ی متن است را   در سند اچ تی ام ال خود کپی کنید

 2-کدها را برای استفاده در صفحات خود تغییر دهید
قسمتهایی که در کد زیر میتوانید آنها را تغییر دهید:

LEARN JAVA SCRIPT IN YOUSHA SCRIPT       پیام


<!-- this script got from YOUSHASCRIPT-->
<!-- Web Site:  http://www.youshascript.hatesit.com-->
<!-- 'Scrolling Fix' YOUSHA MANDANIPOUR   YOUSHA4@HOTMAIL.COM -->

<script language="Javascript">
<!--
// This script was found at the JavaScript Place. http://www.javaplace.co.uk
var text="LEARN JAVA SCRIPT IN YOUSHA SCRIPT"
var speed =100

var x = 0
function bb() {
var a = text.substring(0,x)
var b = text.substring(x,x+1).toUpperCase()
var c = text.substring(x+1,text.length)
window.status = a + b + c
if (x == text.length) {
x = 0
}
else {
x++
}
setTimeout("bb()",speed)
}
bb();
//-->
</script> 

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:58  توسط یعقوب افراسن  | 

1-  ابتدا کد هایی که در جعبه ی متن است را   در سند اچ تی ام ال خود کپی کنید

 2-کدها را برای استفاده در صفحات خود تغییر دهید
قسمتهایی که در کد زیر میتوانید آنها را تغییر دهید:

YOUSHASCRIPT

 

<!-- this script got from YOUSHASCRIPT-->
<!-- Web Site:  http://www.youshascript.hatesit.com-->
<!-- 'Scrolling Fix' YOUSHA MANDANIPOUR   YOUSHA4@HOTMAIL.COM -->

<SCRIPT LANGUAGE="JavaScript">
<!-- Original:  Kurt Grigg (kurt.grigg@virgin.net) -->
<!-- Web Site:  http://website.lineone.net/~kurt.grigg/javascript -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
if (document.all) {
//Things you can alter
yourLogo = "YOUSHASCRIPT"; //Not less than 2 letters!
logoFont = "Arial";
logoColor = "blue";

//Nothing needs altering below!
yourLogo = yourLogo.split('');
L = yourLogo.length;
TrigSplit = 360 / L;
Sz = new Array()
logoWidth = 100;
logoHeight = -30;
ypos = 0;
xpos = 0;
step = 0.03;
currStep = 0;
document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < L; i++) {
document.write('<div id="ie" style="position:absolute;top:0px;left:0px;'
+'width:10px;height:10px;font-family:'+logoFont+';font-size:12px;'
+'color:'+logoColor+';text-align:center">'+yourLogo[i]+'</div>');
}
document.write('</div></div>');
function Mouse() {
ypos = event.y;
xpos = event.x - 5;
}
document.onmousemove=Mouse;
function animateLogo() {
outer.style.pixelTop = document.body.scrollTop;
for (i = 0; i < L; i++) {
ie[i].style.top = ypos + logoHeight * Math.sin(currStep + i * TrigSplit * Math.PI / 180);
ie[i].style.left = xpos + logoWidth * Math.cos(currStep + i * TrigSplit * Math.PI / 180);
Sz[i] = ie[i].style.pixelTop - ypos;
if (Sz[i] < 5) Sz[i] = 5;
ie[i].style.fontSize = Sz[i] / 1.7;
}
currStep -= step;
setTimeout('animateLogo()', 20);
}
window.onload = animateLogo;
}
//  End -->
</script>


 

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:56  توسط یعقوب افراسن  | 

ابتداکد هایی که در جعبه ی متن است را   در سند اچ تی ام ال خود کپی کنید

 2-کدها را برای استفاده در صفحات خود تغییر دهید
قسمتهایی که در کد زیر میتوانید آنها را تغییر دهید:

youshascriptimage.gif                 مسیر عکس

  <!-- this script got from YOUSHASCRIPT-->
<!-- Web Site:  http://www.youshascript.hatesit.com-->
<!-- 'Scrolling Fix' YOUSHA MANDANIPOUR   YOUSHA4@HOTMAIL.COM -->

 

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:55  توسط یعقوب افراسن  | 

1-  ابتدا کد هایی که در جعبه ی متن است را   در سند اچ تی ام ال خود کپی کنید

 2-کدها را برای استفاده در صفحات خود تغییر دهید
قسمتهایی که در کد زیر میتوانید آنها را تغییر دهید:

youshascriptimage.gif                 مسیر عکس

height                                         که عرض تصویر را به عدد مشخص میکند

width                                           که طول  تصویر را به عدد مشخص میکند

  <!-- this script got from YOUSHASCRIPT-->
<!-- Web Site:  http://www.youshascript.hatesit.com-->
<!-- 'Scrolling Fix' YOUSHA MANDANIPOUR   YOUSHA4@HOTMAIL.COM -->

 

<div id="dot0" style="position: absolute; visibility: hidden; height: 11; width: 11;"><img src="youshascriptimage.gif" height=11 width=11></div>
<div id="dot1" style="position: absolute; height:30; width:100;"><img src="youshascriptimage.gif" height=30 width=100></div>
<div id="dot2" style="position: absolute; height:30; width:100;"><img src="youshascriptimage.gif" height=30 width=100></div>
<div id="dot3" style="position: absolute; height:30; width:100;"><img src="youshascriptimage.gif" height=30 width=100></div>
<div id="dot4" style="position: absolute; height:30; width:100;"><img src="youshascriptimage.gif" height=30 width=100></div>
<div id="dot5" style="position: absolute; height:30; width:100;"><img src="youshascriptimage.gif" height=30 width=100></div>
<div id="dot6" style="position: absolute; height:30; width:100;"><img src="youshascriptimage.gif" height=30 width=100></div>

<SCRIPT LANGUAGE="JavaScript">
<!-- Script by:  Philip Winston (pwinston@yahoo.com) -->
<!-- Web Site:  http://members.xoom.com/ebullets -->
<!-- 'Scrolling Fix' by Troels Jakobsen <tjak@get2net.dk> -->

<!-- Begin
var nDots = 7;
var Xpos = 0;
var Ypos = 0;

var DELTAT = .01;
var SEGLEN = 10;
var SPRINGK = 10;
var MASS = 1;
var GRAVITY = 50;
var RESISTANCE = 10;
var STOPVEL = 0.1;
var STOPACC = 0.1;
var DOTSIZE = 11;
var BOUNCE = 0.75;
var isNetscape = navigator.appName=="Netscape";
var followmouse = true;
var dots = new Array();
init();
function init() {
var i = 0;
for (i = 0; i < nDots; i++) {
dots[i] = new dot(i);
}
if (!isNetscape) {
// I only know how to read the locations of the
// <LI> items in IE
//skip this for now
// setInitPositions(dots)
}
for (i = 0; i < nDots; i++) {
dots[i].obj.left = dots[i].X;
dots[i].obj.top = dots[i].Y;
}
if (isNetscape) {
startanimate();
} else {
// let dots sit there for a few seconds
// since they're hiding on the real bullets
setTimeout("startanimate()", 3000);
   }
}
function dot(i) {
this.X = Xpos;
this.Y = Ypos;
this.dx = 0;
this.dy = 0;
if (isNetscape) { 
this.obj = eval("document.dot" + i);
} else {
this.obj = eval("dot" + i + ".style");
   }
}
function startanimate() { 
setInterval("animate()", 20);
}
function setInitPositions(dots) {
var startloc = document.all.tags("LI");
var i = 0;
for (i = 0; i < startloc.length && i < (nDots - 1); i++) {
dots[i+1].X = startloc[i].offsetLeft
startloc[i].offsetParent.offsetLeft - DOTSIZE;
dots[i+1].Y = startloc[i].offsetTop +
startloc[i].offsetParent.offsetTop + 2*DOTSIZE;
}
dots[0].X = dots[1].X;
dots[0].Y = dots[1].Y - SEGLEN;
}
function MoveHandler(e) {
Xpos = e.pageX;
Ypos = e.pageY;  
return true;
}
function MoveHandlerIE() {
Xpos = window.event.x + document.body.scrollLeft;
Ypos = window.event.y + document.body.scrollTop;  
}
if (isNetscape) {
document.captureEvents(Event.MOUSEMOVE);
document.onMouseMove = MoveHandler;
} else {
document.onmousemove = MoveHandlerIE;
}
function vec(X, Y)
{
this.X = X;
this.Y = Y;
}

// adds force in X and Y to spring for dot[i] on dot[j]
function springForce(i, j, spring)
{
var dx = (dots[i].X - dots[j].X);
var dy = (dots[i].Y - dots[j].Y);
var len = Math.sqrt(dx*dx + dy*dy);
if (len > SEGLEN) {
var springF = SPRINGK * (len - SEGLEN);
spring.X += (dx / len) * springF;
spring.Y += (dy / len) * springF;
   }
}
function animate() { 
var start = 0;
if (followmouse) {
dots[0].X = Xpos;
dots[0].Y = Ypos; 
start = 1;
}
for (i = start ; i < nDots; i++ ) {
var spring = new vec(0, 0);
if (i > 0) {
springForce(i-1, i, spring);
}
if (i < (nDots - 1)) {
springForce(i+1, i, spring);
}
var resist = new vec(-dots[i].dx * RESISTANCE, -dots[i].dy * RESISTANCE);
var accel = new vec((spring.X + resist.X)/ MASS, (spring.Y + resist.Y)/ MASS + GRAVITY);
dots[i].dx += (DELTAT * accel.X);
dots[i].dy += (DELTAT * accel.Y);
if (Math.abs(dots[i].dx) < STOPVEL &&
Math.abs(dots[i].dy) < STOPVEL &&
Math.abs(accel.X) < STOPACC &&
Math.abs(accel.Y) < STOPACC) {
dots[i].dx = 0;
dots[i].dy = 0;
}
dots[i].X += dots[i].dx;
dots[i].Y += dots[i].dy;
var height, width;
if (isNetscape) {
height = window.innerHeight + document.scrollTop;
width = window.innerWidth + document.scrollLeft;
} else { 
height = document.body.clientHeight + document.body.scrollTop;
width = document.body.clientWidth + document.body.scrollLeft;
}
if (dots[i].Y >=  height - DOTSIZE - 1) {
if (dots[i].dy > 0) {
dots[i].dy = BOUNCE * -dots[i].dy;
}
dots[i].Y = height - DOTSIZE - 1;
}
if (dots[i].X >= width - DOTSIZE) {
if (dots[i].dx > 0) {
dots[i].dx = BOUNCE * -dots[i].dx;
}
dots[i].X = width - DOTSIZE - 1;
}
if (dots[i].X < 0) {
if (dots[i].dx < 0) {
dots[i].dx = BOUNCE * -dots[i].dx;
}
dots[i].X = 0;
}
dots[i].obj.left = dots[i].X;   
dots[i].obj.top =  dots[i].Y;  
   }
}
// End -->
</script>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:52  توسط یعقوب افراسن  | 

اینم یه سایت دیگه برای کدها کلیک کن

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:50  توسط یعقوب افراسن  | 

اين اسكريپت به طور ذاتي ما بين دو تصوير بدون ناهمواري لبه هاي تصوير چرخش ايجاد مي كند .
<!-- THREE STEPS TO INSTALL FLIPFLOP:

 

  1.  Copy the coding into the HEAD of your HTML document

  2.  Add the onLoad event handler into the BODY tag

  3.  Put the last coding into the BODY of your HTML document  -->

 

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

 

<HEAD>

<SCRIPT language="JavaScript" type="text/javascript">

<!--hide

 

               //STEP 1: PUT THIS CODE INTO THE HEAD OF YOUR DOCUMENT

 

var wdmax=120;          //set maximum width of square image (px)

var wdmin=0;            //set minimum thickness of edge-on image (px)

var inc=5;              //set step change in px (wdmax-wdmin must be a multiple) )These two variables

var rate = 50;          //pause between steps (in millisec)                      )determine flip-flop speed

var pause = 1000;       //pause between flip and flop (in millisec)

var ff="flip";          //initialise whether movement starts with a "flip" (sideways) or "flop" (vertical) change.

                       

function flipflop() {

 if (ff=="flip") {

  var wd = document.getElementById("pic").getAttribute("width");

  wd = wd - inc;

  document.getElementById("pic").setAttribute("width",wd);

  if (wd==wdmin) {

   document.getElementById("pic").setAttribute("src","pic2.gif"); //substitute name of your second picture

   inc=-inc;

   }

  if (wd==wdmax) {

   ff="flop";

   inc=-inc;

   setTimeout("flipflop()",pause);

   }

   else {

   setTimeout("flipflop()",rate);

   }

  }

 else {

  var ht = document.getElementById("pic").getAttribute("height");

  ht = ht - inc;

  document.getElementById("pic").setAttribute("height",ht);

  if (ht==wdmin) {

   document.getElementById("pic").setAttribute("src","pic1.gif"); //substitute name of your first picture

   inc=-inc;

   }

  if (ht==wdmax) {

   ff="flip";

   inc=-inc;

   setTimeout("flipflop()",pause);

   }

   else {

   setTimeout("flipflop()",rate);

   }

  }

}

 

-->

</SCRIPT>

</HEAD>

<!-- STEP TWO: Insert the onLoad event handler into your BODY tag  -->

<BODY onLoad="javascript:flipflop()">

 

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

 

<center>

<TABLE border="0">

<th width="160" height="160">

<IMG src="http://www.ostadonline.com/img/network/hub.jpg" width="120" height="120" ID="pic">

</th></TABLE>

<p>This script alternately "flips" and "flops" between two images, with adjustable smoothness, speed and pauses. It may be useful as an alternative to a crossfade, where you want to create movement to attract attention, or where you want to show two images with equal prominence that don't necessarily look well together (I wrote it to show two dissimilar corporate logos). Small images are less taxing on system resources and will appear smoother in operation.

<p>It is important that:<ol><li>The two images are square and of the same size, and<li>The difference between wdmax (maximum width of square image) and wdmin (minimum thickness edge-on image) is an exact multiple of inc (the step change); otherwise the image will flip once and disappear.</ol>

<p>If only requiring movement in one direction, set the "ff" variable to it, and delete or change the

subsequent resetting of this variable accordingly.</p>

</center>

 

<p><center>

<font face="arial, helvetica" size"-2">Free JavaScripts provided

by ostadonline
</p></center>

 

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

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:43  توسط یعقوب افراسن  | 

اين اسكريپت به كاربر اجازه مي دهد كه فايل دلخواهي از هارد خود را باز كرده و سپس آن را در پنجره جديد باز كند .
<!-- TWO STEPS TO INSTALL FILE OPEN:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
// Thank you Larry McClurg for the cross-browser fix
function whatFile() {
window.location= 'file:///' + document.form1.cmuds.value;
}
//  End -->
</script>

</HEAD>

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

<BODY>

<form name=form1>
<input type=file name="cmuds">
<input type=button onClick="whatFile()" value="Open File">
</form>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by ostadonline
<!-- Script Size:  1.09 KB -->

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:41  توسط یعقوب افراسن  | 

با اين اسكريپت منويي ايجاد مي شود كه با حركت ماوس كاربر بر روي آيتم هاي آن اين منو دچار تغيير رنگ و درخشندگي خاصي مي شود .
<!-- TWO STEPS TO INSTALL FLASHER:

   1.  Paste the coding into the HEAD of your HTML document
   2.  Copy the onLoad event handler into the BODY tag  -->

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

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var message="The JavaScript Source is your JavaScript solution!!      ";
var speed=400;
var visible=0;
function Flash() {
if (visible == 0) {
window.status=message;
visible=1;
} else {
window.status="";
visible=0;
}
setTimeout('Flash()', speed);
}
// End -->
</SCRIPT>

<!-- STEP TWO: Add this onLoad event handler into the BODY tag  -->

<BODY onLoad="Flash()">

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

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

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:34  توسط یعقوب افراسن  | 

بوسيله اين اسكريپت و دگمه هايي كه ايجاد مي شود به كاربر اجازه مي دهد كه با كليك بر روي كليدهاي بالا و پايين عدد نوشته شده در ميدان متني را بالا و پايين ببرد . نيز كاربر مي تواند عددي در اين ميدان وارد كند و سپس با كليدها آن را كمتر و بيشتر كند .

<!-- ONE STEP TO INSTALL UP & DOWN BOX:

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

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

<BODY>

<center>
<form>
<input type=text name=amount value=5>
<input type=button value="up" onClick="javascript:this.form.amount.value++;">
<input type=button value="down" onClick="javascript:this.form.amount.value--;">
</form>
</center>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by ostadonline
<!-- Script Size:  0.45 KB -->

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:32  توسط یعقوب افراسن  | 

به اين اسكريپت به آساني به شما اجازه داده مي شود كه با هر عكس يك كليد ايجاد كنيد بطوريكه هنگاميكه كاربر ماوس را از روي آن رد كرد از مكان خود جابجا گردد .
<!-- TWO STEPS TO INSTALL IMAGE BUTTON:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<style>
<!--
.mouseBeOffMe {
border-top:    10px  solid #FFFFFF;
border-bottom: 10px  solid #FFFFFF;
border-left:   6px   solid #FFFFFF;
border-right:  10px  solid #FFFFFF;
}
.mouseBeOnMe {
border-top:    6px   solid #FFFFFF;
border-bottom: 14px  solid #FFFFFF;
border-left:   10px  solid #FFFFFF;
border-right:  6px   solid #FFFFFF;
}
.mouseBeDown {
border-top:    13px  solid #FFFFFF;
border-bottom: 7px   solid #FFFFFF;
border-left:   10px  solid #FFFFFF;
border-right:  6px   solid #FFFFFF;
}
.mouseBeUp {
border-top:    10px  solid #FFFFFF;
border-bottom: 10px  solid #FFFFFF;
border-left:   10px  solid #FFFFFF;
border-right:  6px   solid #FFFFFF;
}
//-->
</style>

</HEAD>

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

<BODY>

<center>
<img src = "http://www.ostadonline.com/img/logo.gif"
title = "This is the Image Label"
width = "90"
height = "40"
border = "0"
class = "mouseBeOffMe"
onmouseover = "this.className='mouseBeOnMe'"
onmousedown = "this.className='mouseBeDown'"
onmouseup = "this.className='mouseBeUp'"
onmouseout = "this.className='mouseBeOffMe'">
<br>
<br>
Move your mouse over the image above.  Try clicking on it also!
</center>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by ostadonline
</center><p>

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

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:28  توسط یعقوب افراسن  | 

اين اسكريپت به شما اجازه مي دهد كه چندين عكس انتخابي را با هم تحت يك كليد بصورت اسلايد نشان مي دهد .
<!-- TWO STEPS TO INSTALL IMAGE SLIDESHOW:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
var rotate_delay = 5000; // delay in milliseconds (5000 = 5 secs)
current = 0;
function next() {
if (document.slideform.slide[current+1]) {
document.images.show.src = document.slideform.slide[current+1].value;
document.slideform.slide.selectedIndex = ++current;
   }
else first();
}
function previous() {
if (current-1 >= 0) {
document.images.show.src = document.slideform.slide[current-1].value;
document.slideform.slide.selectedIndex = --current;
   }
else last();
}
function first() {
current = 0;
document.images.show.src = document.slideform.slide[0].value;
document.slideform.slide.selectedIndex = 0;
}
function last() {
current = document.slideform.slide.length-1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;
}
function ap(text) {
document.slideform.slidebutton.value = (text == "Stop") ? "Start" : "Stop";
rotate();
}
function change() {
current = document.slideform.slide.selectedIndex;
document.images.show.src = document.slideform.slide[current].value;
}
function rotate() {
if (document.slideform.slidebutton.value == "Stop") {
current = (current == document.slideform.slide.length-1) ? 0 : current+1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;
window.setTimeout("rotate()", rotate_delay);
   }
}
//  End -->
</script>
</HEAD>

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

<BODY>

<center>
<form name=slideform>
<table cellspacing=1 cellpadding=4 bgcolor="#000000">
<tr>
<td align=center bgcolor="white">
<b>Image Slideshow</b>
</td>
</tr>
<tr>
<td align=center bgcolor="white" width=200 height=150>
<img src="cart.gif" name="show">
</td>
</tr>
<tr>
<td align=center bgcolor="#C0C0C0">
<select name="slide" onChange="change();">
<option value="http://www.ostadonline.com/img/robotic/1.gif" selected>pic1
<option value="http://www.ostadonline.com/img/robotic/2.gif">pic2
<option value="http://www.ostadonline.com/img/robotic/4.gif">pic3
<option value="http://www.ostadonline.com/img/robotic/12.gif">pic4
<option value="http://www.ostadonline.com/img/robotic/15.gif">pic5
<option value="http://www.ostadonline.com/img/robotic/100.gif">pic6
<option value="http://www.ostadonline.com/img/robotic/103.gif">pic7
<option value="http://www.ostadonline.com/img/robotic/98.gif">pic8
<option value="http://www.ostadonline.com/img/robotic/102.gif">pic9
<option value="http://www.ostadonline.com/img/robotic/101.gif">pic10
</select>
</td>
</tr>
<tr>
<td align=center bgcolor="#C0C0C0">
<input type=button onClick="first();" value="|<<" title="Beginning">
<input type=button onClick="previous();" value="<<" title="Previous">
<input type=button name="slidebutton" onClick="ap(this.value);" value="Start" title="AutoPlay">
<input type=button onClick="next();" value=">>" title="Next">
<input type=button onClick="last();" value=">>|" title="End">
</td>
</tr>
</table>
</form>
</center>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided
by ostadonline
</center><p>

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

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:26  توسط یعقوب افراسن  | 

اين اسكريپت بطور اتوماتيك با زياد شدن كاراكترهاي درون يك ميدان متني سايز آن را تا حدي كه در كد تعريف شده است افزايش مي دهد .
<!-- TWO STEPS TO INSTALL EXPANDING TEXTBOX:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function call_me(max_length) {
if((document.form1.mybox.value == null ) || (document.form1.mybox.value == "" )) document.form1.mybox.size = size;
if((document.form1.mybox.value.length >= size)&&(document.form1.mybox.value.length <= max_length)) document.form1.mybox.size = document.form1.mybox.value.length + 1;
else document.form1.mybox.size = size;
}
//  End -->
</script>

</HEAD>

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

<BODY>

<form name="form1">
LastName: <input type="text" style="font-family: Terminal" name="mybox" maxlength="30" size="10" onFocus="setInterval('call_me(document.form1.mybox.maxLength)', 1)">
<!--/style needs to be a font that has a fixed size attribute like TERMINAL/-->
</form>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
var size = document.form1.mybox.size; //Global Variable keeps original size
//  End -->
</script>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided
by ostadonline
<!-- Script Size:  1.73 KB -->

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:25  توسط یعقوب افراسن  | 

اين اسكريپت بطور اتوماتيك با زياد شدن كاراكترهاي درون يك ميدان متني سايز آن را تا حدي كه در كد تعريف شده است افزايش مي دهد .
<!-- TWO STEPS TO INSTALL EXPANDING TEXTBOX:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function call_me(max_length) {
if((document.form1.mybox.value == null ) || (document.form1.mybox.value == "" )) document.form1.mybox.size = size;
if((document.form1.mybox.value.length >= size)&&(document.form1.mybox.value.length <= max_length)) document.form1.mybox.size = document.form1.mybox.value.length + 1;
else document.form1.mybox.size = size;
}
//  End -->
</script>

</HEAD>

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

<BODY>

<form name="form1">
LastName: <input type="text" style="font-family: Terminal" name="mybox" maxlength="30" size="10" onFocus="setInterval('call_me(document.form1.mybox.maxLength)', 1)">
<!--/style needs to be a font that has a fixed size attribute like TERMINAL/-->
</form>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
var size = document.form1.mybox.size; //Global Variable keeps original size
//  End -->
</script>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided
by ostadonline
<!-- Script Size:  1.73 KB -->

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:23  توسط یعقوب افراسن  | 

اين اسكريپت به كاربران اجازه مي دهد كه موردي را كه مايل به پيگيري سايت يا صفحه وب آن هستند را از Combo box انتخاب كنند و فشردن كليد به صفحه مورد نظر هدايت شوند .
<!-- TWO STEPS TO INSTALL PULLDOWN MENU:

   1.  Paste the coding into the HEAD of your HTML document
   2.  Add the last code into the BODY of your HTML document  -->

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

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
// End -->
</SCRIPT>
</HEAD>

<!-- STEP TWO: Paste this code into the BODY of your HTML document  -->

<BODY>

<center>
<form name="form">
<select name="site" size=1>
<option value="">Go to....
<option value="http://www.yahoo.com">Yahoo
<option value="http://www.metacrawler.com">Metacrawler
<option value="http://www.altavista.digital.com">Altavista
<option value="http://www.webcrawler.com">Webcrawler
<option value="http://www.lycos.com">Lycos
<option value="http://javascript.internet.com">JavaScript Source
</select>
<input type=button value="Go!" onClick="javascript:formHandler(this)">
</form>
</center>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by ostadonline
</center><p>

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

 

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:20  توسط یعقوب افراسن  | 

شما نيازي به بزرگتر كردن عكس ها در صفحه نمايش براي كاربر نداريد . با اين اسكريپت كاربر با يك دبل كليك بر روي عكس سايز آن را افزايش مي دهد .
<!-- TWO STEPS TO INSTALL ENLARGE IMAGE:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

 

<!-- Begin
function enlargeImage1(){
   image1.height="300"
}
function dropImage1(){
   image1.height="150"
}
function enlargeImage2(){
   image2.height="300"
}
function dropImage2(){
   image2.height="150"
}
//  End -->
</script>

</HEAD>

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

<BODY>

<center>
<b>Double-click the images to enlarge them<br>and click once to make them thumbnail size again.</b>
</center>
<p>
<table align="center">
<tr><td align="center">
<img src="http://www.ostadonline.com/img/network/cat5.jpg" height="150" name="image1" ondblclick="enlargeImage1()" onclick="dropImage1()"><br>
<b>Contemplation</b>
</td><td align="center">
<img src="http://www.ostadonline.com/img/network/bus.gif" height="150" name="image2" ondblclick="enlargeImage2()" onclick="dropImage2()"><br>
<b>Inner Reflection</b>
</td></tr>
</table>


<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by ostadonline

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

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:19  توسط یعقوب افراسن  | 

به كمك اين اسكريپت شما مي توانيد جوابهايي براي سئوالات مطرح شده قرار دهيد بطوريكه كاربران با يك كليك آن را نبينند .
<!-- ONE STEP TO INSTALL QUESTION AND ANSWER:

 

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

 

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

 

<BODY>

<form name=answer><b>Q:ÇÒ å ÓÇíÊí ãí ÊæÇä ÇÓ˜ÑíÊ ÈÏÓÊ ÂæÑÏ¿</b>

<input  type="button" name="submit" value=" !ÑÝÊä ÌæÇÈ" style="FONT-WEIGHT: bold; BACKGROUND: navy; WIDTH: 100px; COLOR:  white" onclick="document.answer.mesaj1.value = 'ÈÇ ÓÇíÊ www.ostadonline.com  ';">

  <input name=mesaj1 rows="2" cols="40" wrap="virtual" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; WIDTH: 500px; BORDER-BOTTOM: medium none;color:red"

       ><br><b>Q:äÏ ÇÓ˜ÑíÊ ãí ÊæÇä ÏÑ Çíä ÓÇíÊ ÈÏÓÊ ÂæÑÏ¿</b>

    <input  type="button" name="submit" value=" !ÑÝÊä ÌæÇÈ " style="FONT-WEIGHT: bold; BACKGROUND: navy; WIDTH: 100px; COLOR:  white" onclick="document.answer.mesaj2.value = ' ÏÑ ÍÏæÏ 50 ÇÓ˜ÑíÊ ';">

  <input name=mesaj2 rows="2" cols="40" wrap="virtual" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; WIDTH: 500px; BORDER-BOTTOM: medium none;color:red"

       ></form>

 

<p><center>

<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>

by ostadonline

</center><p>

 

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

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:17  توسط یعقوب افراسن  | 

ايجاد يك Pop Up كه بتوان با طول و عرض خاصي و داشتن Scroll در جاي مشخص از صفحه و به URL مشخص مي باشد .
< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
< !-- TWO STEPS TO INSTALL CUSTOMIZED POPUP:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -- >< !-- STEP ONE: Paste this code into the HEAD of your HTML document  -- >< HTML >< HEAD >
< META http-equiv=Content-Type content="text/html; charset=utf-8" >
< SCRIPT language=JavaScript >


< !-- Begin
function popupPage(l, t, w, h) {
var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes" +
",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;

var URL = "http://www.ostadonline.com";
popup = window.open(URL,"MenuPopup",windowprops);
}
//  End -- >
< /SCRIPT >
< !-- STEP TWO: Copy this code into the BODY of your HTML document  -- >
< META content="MSHTML 6.00.2800.1106" name=GENERATOR >< /HEAD >
< BODY >
< CENTER >
< TABLE >
  < TBODY >
  < TR >
    < TD >
      < FORM name=popupform >< PRE >Customize Your Popup Window!< BR >
Distance from left edge:  < INPUT maxLength=4 size=2 name=left > pixels
Distance from top edge:   < INPUT maxLength=4 size=2 name=top > pixels

Width of popup window:    < INPUT maxLength=4 size=2 name=width > pixels
Height of popup window:   < INPUT maxLength=4 size=2 name=height > pixels
< /PRE >
      < CENTER >< INPUT onclick="popupPage(this.form.left.value, this.form.top.value, this.form.width.value, this.form.height.value)" type=button value="Open the Popup!" >
      < /CENTER >< /FORM >< /TD >< /TR >< /TBODY >< /TABLE >< /CENTER >
< P >
< CENTER >< FONT face="arial, helvetica" size=-2 >Free JavaScripts provided
ostadonline < !-- Script Size:  1.48 KB -- >< /FONT >< /CENTER >< /BODY >< /HTML >

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:16  توسط یعقوب افراسن  | 

اين كد به شما اجازه مي دهد كه كلمات يا كاراكترهايي را كه وارد يك فيلد متني مي كنيد شمارش كنيد و براي آن يك حد نصاب تعريف كنيد .
< !-- TWO STEPS TO INSTALL WORD COUNTER:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -- >

< !-- STEP ONE: Paste this code into the HEAD of your HTML document  -- >

< HEAD >

< SCRIPT LANGUAGE="JavaScript" >

< !-- This script and many more are available free online at -- >
< !-- The JavaScript Source!! http://WWW.OSTADONLINE.com -- >

< !-- Begin
   var submitcount=0;
   function checkSubmit() {

      if (submitcount == 0)
      {
      submitcount++;
      document.Surv.submit();
      }
   }


function wordCounter(field, countfield, maxlimit) {
wordcounter=0;
for (x=0;x<field.value.length;x++) {
      if (field.value.charAt(x) == " " && field.value.charAt(x-1) != " ")  {wordcounter++}  // Counts the spaces while ignoring double spaces, usually one in between each word.
      if (wordcounter > 250) {field.value = field.value.substring(0, x);}
      else {countfield.value = maxlimit - wordcounter;}
      }
   }

function textCounter(field, countfield, maxlimit) {
  if (field.value.length > maxlimit)
      {field.value = field.value.substring(0, maxlimit);}
      else
      {countfield.value = maxlimit - field.value.length;}
  }
//  End -- >
< /script >

< /HEAD >

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

< BODY >

< !-- This script and many more are available free online at -- >
< !-- The JavaScript Source!! http://www.ostadonline.com -- >

< FORM NAME=Surv >
< TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" width=550 >
< tr>< td valign="top" >
< font color="000000" size="2" face="verdana, helvetica, arial" >In 100 < b >words< /b > or less, why do you (or would you) like living on the coast?< /font >< font color="ff0000" size="2" face="verdana, helvetica, arial" >*< /font >
< td valign="top" >< textarea name="Q3367" cols="40" rows="5" wrap="hard" onKeyDown="wordCounter(this.form.Q3367,this.form.remLen,100);" onKeyUp="wordCounter(this.form.Q3367,this.form.remLen,100);" >< /textarea >
< br >Words remaining: < input type=box readonly name=remLen size=3 value=100 >< /td >< /tr >

< tr >< td colspan=2 >< hr width=80% >< /td >< /tr >

< tr >< td valign="top" >
< font color="000000" size="2" face="verdana, helvetica, arial" >In 100 < b >characters< /b > or less, why do you (or would you) like living on the coast?< /font >< font color="ff0000" size="2" face="verdana, helvetica, arial" >*< /font >
< td valign="top" >
< textarea name="Q336" cols="40" rows="5" wrap="hard" onKeyDown="textCounter(this.form.Q336,this.form.remLentext,100);" onKeyUp="textCounter(this.form.Q336,this.form.remLentext,100);" >< /textarea >
< br >Characters remaining: < input type=box readonly name=remLentext size=3 value=100 >
< /td >< /tr >
< /TABLE >

< INPUT TYPE="button" VALUE="Submit" onclick='' name=submit1 >
< INPUT TYPE="reset" VALUE="Reset" id=reset1 name=reset1 >
< /FORM >
< P >
< FONT SIZE="-2" COLOR="ff0000" FACE="verdana, helvetica, arial" >*< /FONT >< FONT SIZE="-2" COLOR="4169e1" FACE="verdana, helvetica, arial"  Indicates a required question.< /FONT >

 

< p >< center >
< font face="arial, helvetica" size"-2" >Free JavaScripts provided by ostadonline< br >


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

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:15  توسط یعقوب افراسن  | 

با اين اسكريپت مي توان گلوله اي در صفحه قرار داد بعد از باز شدن صفحه در هر قسمتي از صفحه كه كليلك كنيد توپ به آن سمت پرتاب خواهد شد .
<!-- TWO STEPS TO INSTALL BALL DROP:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript1.2">

<!-- Begin
function BrowserCheck() {
var b = navigator.appName;
if (b == "Netscape") this.b = "NS";
else if (b == "Microsoft Internet Explorer") this.b = "IE";
else this.b = b;
this.v = parseInt(navigator.appVersion);
this.NS = (this.b == "NS" && this.v>=4);
this.NS4 = (this.b == "NS" && this.v == 4);
this.NS5 = (this.b == "NS" && this.v == 5);
this.IE = (this.b == "IE" && this.v>=4);
this.IE4 = (navigator.userAgent.indexOf('MSIE 4')>0);
this.IE5 = (navigator.userAgent.indexOf('MSIE 5')>0);
if (this.IE5 || this.NS5) this.VER5 = true;
if (this.IE4 || this.NS4) this.VER4 = true;
this.OLD = (! this.VER5 && ! this.VER4) ? true : false;
this.min = (this.NS||this.IE);
}
is = new BrowserCheck();
//  End -->
</script>
</HEAD>

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

<BODY>

<center>
Click anywhere to start script<br>
<div id="staticBall" style="position:relative;visibility:visible">
<img src="http://javascript.internet.com/img/ball-drop/ball.gif" height=30 width=30 alt="Static ball">
</div>
</center>
<div id="ball" style="visibility:hidden; position:absolute; left:100; top:10; height:34; width:34">
<img src="http://javascript.internet.com/img/ball-drop/ball.gif" height=30 width=30 alt="Bouncing ball">
</div>

<script language="Javascript1.2">
<!-- Begin
iter = 0;
setId = 0;
down = true;
up = false;
bouncingBall = (is.VER5) ? document.getElementById("ball").style
: (is.NS) ? document.layers["ball"]
: document.all["ball"].style;
stillBall = (is.VER5) ? document.getElementById("staticBall").style
: (is.NS) ? document.layers["staticBall"] : document.all["staticBall"].style;
winH = (is.NS) ? window.innerHeight - 55 : document.body.offsetHeight - 55;
document.onmouseup = buttonUp;
if (is.NS4)
document.captureEvents(Event.MOUSEUP);
function buttonUp(e) {
if ( ((is.NS) ? e.which : event.button) != 1) return true;
if (setId != 0) clearInterval(setId);
bouncingBall.visibility="visible";
stillBall.visibility="hidden";
bouncingBall.left = (is.NS) ? e.pageX - 15 : event.offsetX - 15;
bouncingBall.top = (is.NS) ? e.pageY - 15 : event.offsetY - 15;
iter = 0;
setId = setInterval("generateGravity()", 20);
return true;
}
function generateGravity() {
if ((parseInt(bouncingBall.top)+iter < winH) && down) {
bouncingBall.top = parseInt(bouncingBall.top) + iter;
iter++;
return;
}
else {
if ((parseInt(bouncingBall.top)< winH) && down) {
bouncingBall.top = winH + 5;
return;
}
down = false;
up = true;
if (iter < 0 && parseInt(bouncingBall.top) > winH) {
clearInterval(setId);
bouncingBall.visibility = "hidden";
stillBall.visibility="visible";
setId = 0;
}
if (parseInt(bouncingBall.top) > 0 && up && iter >= 0) {
bouncingBall.top = parseInt(bouncingBall.top) - iter;
iter--;
if (iter%3 == 0) iter--;
return;
}
down = true;
up = false;
   }
}
// End -->
</script>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided by ostadonline

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

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:13  توسط یعقوب افراسن  | 

اين اسكريپت به كاربران اجازه مي دهد كه فايلهايي از نوع gif و jpg و ديگر فايلهايي كه تعريف شده است را از ميان يك فرم Upload كنيد

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<!-- TWO STEPS TO INSTALL UPLOAD FILTER:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  --><!-- STEP ONE: Paste this code into the HEAD of your HTML document  --><HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1256">
<SCRIPT language=JavaScript>

 

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://www.ostadonline.com -->

<!-- Begin
extArray = new Array(".gif", ".jpg", ".png");
function LimitAttach(form, file) {
allowSubmit = false;
if (!file) return;
while (file.indexOf("\\") != -1)
file = file.slice(file.indexOf("\\") + 1);
ext = file.slice(file.indexOf(".")).toLowerCase();
for (var i = 0; i < extArray.length; i++) {
if (extArray[i] == ext) { allowSubmit = true; break; }
}
if (allowSubmit) form.submit();
else
alert("Please only upload files that end in types:  "
+ (extArray.join("  ")) + "\nPlease select a new "
+ "file to upload and submit again.");
}
//  End -->
</SCRIPT>
<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
<META content="MSHTML 6.00.2726.2500" name=GENERATOR></HEAD>
<BODY>
<CENTER>Please upload only images that end in:
<SCRIPT>
document.write(extArray.join("  "));
</SCRIPT>
 
<P>
<FORM name=upform action=/cgi-bin/some-script.cgi method=post
encType=multipart/form-data><INPUT type=file name=uploadfile>
<P><INPUT onclick="LimitAttach(this.form, this.form.uploadfile.value)" type=button value=Submit name=Submit>
</FORM></CENTER>
<P>
<CENTER><FONT face="arial, helvetica" size=-2>Free JavaScripts provided by
ostadonline<BR><!-- Script Size:  1.55 KB --></FONT></CENTER></BODY></HTML>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:11  توسط یعقوب افراسن  | 

اين اسكريپت صفحه نمايش را از بالا و پايين و چپ و راست صفحه نمايش به حركت در مي آورد .
<!-- ONE STEP TO INSTALL BACKGROUND SLIDE:

  1.  Copy the coding into the HEAD of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">


<!-- Begin
for (t = 2; t > 0; t--) {
for (x = 20; x > 0; x--) {
for (y = 10; y > 0; y--) {
parent.moveBy(0,-x);
  }
}
for (x = 20; x > 0; x--) {
for (y = 10; y > 0; y--) {
parent.moveBy(0,x);
  }
}
for (x = 20; x > 0; x--) {
for (y = 10; y > 0; y--) {
parent.moveBy(x,0);
  }
}
for (x = 20; x > 0; x--) {
for (y = 10; y > 0; y--) {
parent.moveBy(-x,0);
    }
  }
}
//-->

//  End -->
</script>


<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided by ostadonline<br>

 

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

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 19:10  توسط یعقوب افراسن  | 

<br><br><table BORDER="0" WIDTH="222" HEIGHT="18"><br>  <tr><br>    <td WIDTH="214" HEIGHT="10"><br>    <form NAME="search" ID="search" ACTION="http://search.msn.com/results.asp" METHOD="get"><br>      <p><a HREF="http://www.msn.com"><br>      <img SRC="http://go.msn.com/AG/E/0.asp" width="61" height="33" BORDER="0" ALT="Go to msn.com"></a><font FACE="arial" SIZE="2"><strong>Search<br>      <font COLOR="#808080">the Web for:</font></strong></font><br><br>      <input TYPE="text" ID="q" SIZE="18" MAXLENGTH="251" NAME="q" VCARD_NAME="SearchText"><input TYPE="submit" VALUE="Search" NAME="B1"><input TYPE="hidden" NAME="FORM" VALUE="FRNT"><input TYPE="hidden" NAME="un" VALUE="doc"><input TYPE="hidden" NAME="v" VALUE="1"></p><br>    </form><br>    </td><br>  </tr><br>  <tr><br>    <td WIDTH="214" HEIGHT="21" VALIGN="bottom"><br>    <p ALIGN="center"><font SIZE="1" FACE="arial"><br>    <a HREF="http://search.msn.com/advanced.asp?MT=&RS=CHECKED&Form=FRNT">Use <br>    Advanced Search</a></font></td><br>  </tr><br></table><br><p> </p><br></body><br></html><br><br>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:55  توسط یعقوب افراسن  | 

با بکار بردن اين اسکريپت در وبلاگتان با توجه به تنضيمات انجام شده  در اين اسکريپت به بازديد کنندگان خود پيام  صبح بخير . روز بخير. عصر بخير .. شب بخير . و ...

  
   <head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">

<title></title>
   </head>

<html>

<body>

<center>
<script LANGUAGE="JavaScript">

<!--»Learn IRAN-->

<!-- Begin
document.write("<center><font size=+1>")
day = new Date()
hr = day.getHours()
if (hr ==1)
document.write("بامداد بخير ")
if (hr ==2)
document.write("نيمه شب شما بخير")
if (hr ==3)
document.write("نيمه شب شما بخير .... نميرو&#1740; بخواب&#1740;")
if (hr ==4)
document.write("دوست عز&#1740;ز وقت استراحت است")
if (hr ==5)
document.write("سحر بخير")
if ((hr == 6) || (hr ==7) || (hr ==8) || (hr == 9) || (hr ==10))
document.write("صبح بخير")
if (hr ==11)
document.write("نيمروز بخير")
if (hr ==12)
document.write("ظهر بخير")
if (hr ==13)
document.write("بعد از ظهر شما بخير")
if ((hr==15) || (hr==16) || (hr==14))
document.write("عصر شما بخير")
if ((hr==17) || (hr==18) || (hr==19) || (hr==20) || (hr==21) || (hr==22))
document.write("شب بخير")
if (hr==23)
document.write("شب شما بخير")
if (hr==0)
document.write("نيمه شب بخير")
document.write("</font></center>")
// End -->
</script>
</center>
<!-- Script Size:  1.76 KB  -->

<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p align="center"><a href="
http://tnt-1000.persianblog.com">
<font face="Tahoma" size="2">tnt-1000</font></a></p>

</body>
</html>
</body>
</html>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:54  توسط یعقوب افراسن  | 

به اين اسکريپت متن يا جمله انتخابی شما در وبلاگ يا سايتتان به پرواز در ميايد.
در اين مثال جمله پيش فرض : welcome to my weblog  بصورت متحرکه و در وبلاگ پرواز ميکند

<STYLE type=text/css>#supertext {
 LEFT: 0px; POSITION: absolute; TOP: 0px; VISIBILITY: hidden
}
</STYLE>
<script language="JavaScript1.2">
var thecontent='<h2><font color="#0000FF">Welcome to my weblog!</font></h2>'
var hidetimer='';
var BallSpeed = 5;
var contentWidth;
var contentHeight;
var maxBallSpeed = 50;
var xMax;
var yMax;
var xPos = 0;
var yPos = 0;
var xDir = 'right';
var yDir = 'down';
var superballRunning = true;
var tempBallSpeed;
var currentBallSrc;
var newXDir;
var newYDir;

function initializeBall() {
   if (document.all) {
      xMax = document.body.clientWidth
      yMax = document.body.clientHeight
      document.all("supertext").style.visibility = "visible";
      contentWidth=supertext.offsetWidth
      contentHeight=supertext.offsetHeight
      }
   else if (document.layers) {
      xMax = window.innerWidth;
      yMax = window.innerHeight;
      contentWidth=document.supertext.document.width
      contentHeight=document.supertext.document.height
      document.layers["supertext"].visibility = "show";
      }
   setTimeout('moveBall()',400);
   if (hidetimer!='')
   setTimeout("hidetext()",hidetimer)
   }

function moveBall() {
   if (superballRunning == true) {
      calculatePosition();
      if (document.all) {
         document.all("supertext").style.left = xPos + document.body.scrollLeft;
         document.all("supertext").style.top = yPos + document.body.scrollTop;
         }
      else if (document.layers) {
         document.layers["supertext"].left = xPos + pageXOffset;
         document.layers["supertext"].top = yPos + pageYOffset;
         }
      animatetext=setTimeout('moveBall()',20);
      }
   }

function calculatePosition() {
   if (xDir == "right") {
      if (xPos > (xMax - contentWidth - BallSpeed)) {
         xDir = "left";
         }
      }
   else if (xDir == "left") {
      if (xPos < (0 + BallSpeed)) {
         xDir = "right";
         }
      }
   if (yDir == "down") {
      if (yPos > (yMax - contentHeight - BallSpeed)) {
         yDir = "up";
         }
      }
   else if (yDir == "up") {
      if (yPos < (0 + BallSpeed)) {
         yDir = "down";
         }
      }
   if (xDir == "right") {
      xPos = xPos + BallSpeed;
      }
   else if (xDir == "left") {
      xPos = xPos - BallSpeed;
      }
   else {
      xPos = xPos;
      }
   if (yDir == "down") {
      yPos = yPos + BallSpeed;
      }
   else if (yDir == "up") {
      yPos = yPos - BallSpeed;
      }
   else {
      yPos = yPos;
      }
   }

function hidetext(){
if (document.all)
supertext.style.visibility="hidden"
else if (document.layers)
document.supertext.visibility="hide"
clearTimeout(animatetext)
}

if (document.all||document.layers){
document.write('<span id="supertext"><nobr>'+thecontent+'</nobr></span>')
window.onload = initializeBall;
window.onresize = new Function("window.location.reload()");
}

</script></body>
<p align="center"><a href="
http://tnt-1000.persianblog.com">
<font face="Tahoma" size="2">tnt-100 </font></a></p>
</html>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:52  توسط یعقوب افراسن  | 

   <!--Powered javascript code by WWW.tnt-1000.persianblog.COM-->
 <script>
function winopen(){
        win = window.open("http://www.google.com", "newWin", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=700,height=360")
        openwindow()
}
function openwindow(){}

  </script>
  <a href="" onMouseOver="winopen();return false;">YOUR LINK NAME</a>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:51  توسط یعقوب افراسن  | 

حالت اول خوب بصورت يک شکل بزرگ ميباشد

<a href="ymsgr:sendim?YahooID">
<img border="0" src="http://opi.yahoo.com/online?u=YahooID&m=g&t=2">
</a></body>
</html>
در حالت دوم  اين شکل تغيير کرده و اندازه ان کوچک تر شده است

<a href="ymsgr:sendim?YahooID">
<img border="0" src="http://opi.yahoo.com/online?u=YahooID&m=g&t=1">
</a>

صورت يک شکلک کوچک ظاهر شده است  

<a href="ymsgr:sendim?YahooID">
<img border="0" src="http://opi.yahoo.com/online?u=YahooID&m=g&t=0">
</a>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:45  توسط یعقوب افراسن  | 

 <!-- START CODE Powered javascript code by WWW.tnt-1000.persianblog.COM-->
 
<meta http-equiv="Content-Language" content="en-us">
<SCRIPT language=JavaScript>
<!-- Begin
function shake(n) {
if (parent.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {

parent.moveBy(-i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
parent.moveBy(0,-i);
parent.moveBy(i,0);
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,i);
         }
      }
   }


}
//  End -->

<!--
shake(1);
//-->
</SCRIPT>
<p align="center"><font size="7" color="#FF0000">salam irani</font></p>

<!-- END CODE   Powered javascript code by WWW.tnt-1000.persianblog.COM-->

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:43  توسط یعقوب افراسن  | 

بعد از اينكه كد در وبلاگ شما قرار  گرفت ... هنگامی كه بازديد كننده از وبلاگ شما خارج ميشود و صفحه وبلاگ شما را ميبندد پيامی برای بازديد كننده  مبنی بر اينكه چه مدت زمانی در وبلاگ شما  سپری كرده .. ظاهر ميشود و مدت زمان دقيق را با بازديد كننده اطلاع ميدهد.

<html>
<!-- TWO STEPS TO INSTALL TIME ON PAGE (UNLOAD):

   1.  Put the two codes into the HEAD of your HTML document
   2.  Add the OnLoad event handler to the BODY tag  -->

<!-- STEP ONE: Copy the two codes into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
pageOpen = new Date()
// End -->
</SCRIPT>

<SCRIPT LANGUAGE="Javascript">

<!-- Original:  Max Harris  (mclh@rocketmail.com) -->
<!-- Web Site: 
http://members.tripod.com/~mclh/index.html -->

<!--Total Java Scripts 99 - Next Step Software-->

<!-- Begin
function openFor() {
pageClose = new Date();
minutes = (pageClose.getMinutes() - pageOpen.getMinutes());
seconds = (pageClose.getSeconds() - pageOpen.getSeconds());
time = (seconds + (minutes * 60));
if (time == 1)
{
return (time + " second")
}
return (time + " seconds")
}
// End -->
</SCRIPT>
</head>
<!-- STEP TWO: Add the OnUnload event handler to the BODY tag -->

<BODY OnUnload="alert('It has been ' + openFor() + '.  Please stay longer next time!')" ;>
</BODY>
 </html>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:41  توسط یعقوب افراسن  | 

میتوان گفت این کادر کشویی که جهت تغییر رنگ زمینه وبلاگ توسط کاربر میباشد همتا ندارد بسیار منظم همراه با اسامی مختلف رنگها تنها با یک کلیک رنگ مورد نظر بر روی زمینه اعمال میشود

<BODY>
<FORM>
<SELECT Size=5 name=clr onChange="document.bgColor=this.options[this.selectedIndex].value">
<OPTION VALUE="blue">blue
<OPTION VALUE="aquamarine">aquamarine
<OPTION VALUE="chocolate">chocolate
<OPTION VALUE="darkred">dark red
<OPTION VALUE="gold">gold
<OPTION VALUE="red">red
<OPTION VALUE="yellow">yellow
<OPTION VALUE="hotpink">hotpink
<OPTION VALUE="lime">lime
<OPTION VALUE="darkkhaki">dark khaki
<OPTION VALUE="cadetblue ">cadet blue
<OPTION VALUE="darkgoldenrod">dark goldenrod
<OPTION VALUE="darkslateblue">dark slate
<OPTION VALUE="blue">blue
<OPTION VALUE="deeppink">deep pink
<OPTION VALUE="darksalmon">dark salmon
<OPTION VALUE="salmon">salmon
<OPTION VALUE="tan">tan
<OPTION VALUE="wheat">wheat
<OPTION VALUE="tomato">tomato
<OPTION VALUE="springgreen">springgreen
<OPTION VALUE="turquoise">turquoise
<OPTION VALUE="white" SELECTED>White
</SELECT>
</FORM></body>
</html>
</body>
</html>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:40  توسط یعقوب افراسن  | 

خوب شايد در بعضی از سايت ها و وبلاگها ديده باشيد که گفته است اين سايت را صفحه خانگی مرورگر خود کنيد و يک لينک هم داشته باشيد که با کليک رو بروی اين اين کار انجام شود  خود براحتی ميتوانيد چنين لينکی را در وبلاگ يا سايت خود بوجود اورده که کاربر با کليک بر روی ان سايت يا وبلاگ شما را هميشه وقتی که اينترنت اکسپلورر را باز ميکنيد مشاهده کند.

<A

href="javascript:history.go(0)"

onClick="javascript:this.style.behavior='url(#default#homepage)';this.setHomePage

('http://www.tnt-1000.persianblog.com');" TARGET="_self">Set As

HomePage</A></body>
</html>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:39  توسط یعقوب افراسن  | 

با بکار بردن اين کد در وبلاگتون موس شما تبديل به يک عصای جادويی ميشه که جلوه خاصی به ماوس شما ميده

<LAYER NAME="a0" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffffff" CLIP="0,0,1,1"></LAYER>
<LAYER NAME="a1" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#fff000" CLIP="0,0,1,1"></LAYER>
<LAYER NAME="a2" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffa000" CLIP="0,0,1,1"></LAYER>
<LAYER NAME="a3" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ff00ff" CLIP="0,0,1,1"></LAYER>
<LAYER NAME="a4" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#00ff00" CLIP="0,0,1,1"></LAYER>
<LAYER NAME="a5" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF00FF" CLIP="0,0,1,1"></LAYER>
<LAYER NAME="a6" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF0000" CLIP="0,0,1,1"></LAYER>
<LAYER NAME="a7" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffffff" CLIP="0,0,2,2"></LAYER>
<LAYER NAME="a8" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#fff000" CLIP="0,0,2,2"></LAYER>
<LAYER NAME="a9" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffa000" CLIP="0,0,2,2"></LAYER>
<LAYER NAME="a10" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ff00ff" CLIP="0,0,2,2"></LAYER>
<LAYER NAME="a11" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#00ff00" CLIP="0,0,2,2"></LAYER>
<LAYER NAME="a12" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#0000ff" CLIP="0,0,2,2"></LAYER>
<LAYER NAME="a13" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF0000" CLIP="0,0,3,3"></LAYER>


<script language="JavaScript">

/*
Magic Wand cursor (By Kurt at
kurt.grigg@virgin.net)
From:
http://www.javafile.com
*/

if (document.all){
with (document){
write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">')
write('<div style="position:relative;width:1px;height:1px;background:#ffffff;font-size:1px;visibility:visible"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#fff000;font-size:1px;visibility:visible"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#ffa000;font-size:1px;visibility:visible"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px;visibility:visible"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#00ff00;font-size:1px;visibility:visible"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#0000ff;font-size:1px;visibility:visible"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#FF0000;font-size:1px;visibility:visible"></div>')
write('<div style="position:relative;width:2px;height:2px;background:#ffffff;font-size:2px;visibility:visible"></div>')
write('<div style="position:relative;width:2px;height:2px;background:#fff000;font-size:2px;visibility:visible"></div>')
write('<div style="position:relative;width:2px;height:2px;background:#ffa000;font-size:2px;visibility:visible"></div>')
write('<div style="position:relative;width:2px;height:2px;background:#ff00ff;font-size:2px;visibility:visible"></div>')
write('<div style="position:relative;width:2px;height:2px;background:#00ff00;font-size:2px;visibility:visible"></div>')
write('<div style="position:relative;width:2px;height:2px;background:#0000ff;font-size:2px;visibility:visible"></div>')
write('<div style="position:relative;width:3px;height:3px;background:#FF0000;font-size:3px;visibility:visible"></div>')
write('</div>')
}
}


var Clrs=new Array(6)
Clrs[0]='ff0000';
Clrs[1]='00ff00';
Clrs[2]='000aff';
Clrs[3]='ff00ff';
Clrs[4]='fff000';
Clrs[5]='fffff0';

 

if (document.layers)
{window.captureEvents(Event.MOUSEMOVE);}
var yBase = 200;
var xBase = 200;
var step;
var currStep = 0;
var Xpos = 1;
var Ypos = 1;

if (document.all)
{
  function MoveHandler(){
  Xpos = document.body.scrollLeft+event.x;
  Ypos = document.body.scrollTop+event.y;
  }
  document.onmousemove = MoveHandler;
}

else if (document.layers)
{
  function xMoveHandler(evnt){
  Xpos = evnt.pageX;
  Ypos = evnt.pageY;
  }
  window.onMouseMove = xMoveHandler;
}

function animateLogo() {
if (document.all)
{
 yBase = window.document.body.offsetHeight/4;
 xBase = window.document.body.offsetWidth/4;
}
else if (document.layers)
{
 yBase = window.innerHeight/4;
 xBase = window.innerWidth/4;
}

if (document.all)
{
 for ( i = 0 ; i < starsDiv.all.length ; i++ )
 {step=3;
  starsDiv.all[i].style.top = Ypos + yBase*Math.cos((currStep + i*4)/12)*Math.cos(0.7+currStep/200);
  starsDiv.all[i].style.left = Xpos + xBase*Math.sin((currStep + i*3)/10)*Math.sin(8.2+currStep/400);
  for (ai=0; ai < Clrs.length; ai++)
    {
     var c=Math.round(Math.random()*[ai]);
    }
    starsDiv.all[i].style.background=Clrs[c];
 }
}

else if (document.layers)
{
 for ( j = 0 ; j < 14 ; j++ ) //number of NS layers!
 {step = 4;
  var templayer="a"+j
  document.layers[templayer].top = Ypos + yBase*Math.sin((currStep + j*4)/12)*Math.cos(0.7+currStep/200);
  document.layers[templayer].left = Xpos + xBase*Math.sin((currStep + j*3)/10)*Math.sin(8.2+currStep/400);
  for (aj=0; aj < Clrs.length; aj++)
    {
     var c=Math.round(Math.random()*[aj]);
    }
    document.layers[templayer].bgColor=Clrs[c];
 }
}
currStep+= step;
setTimeout("animateLogo()", 10);
}
animateLogo();
// -->
</script>
</body>
<p align="center"><a href="
http://tnt-1000.persianblog.com">
<font face="Tahoma" size="2">tnt-1000</font></a></p>

</html>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:37  توسط یعقوب افراسن  | 

اين کد جاوا خيلی خيلی جالبه
با اين کد در اطراف ماوس بازديد کننده سه رنگ به رنگهای قرمز.ابی.سبز  بصورت چرخشی  ظاهر ميشود که جلوه بسيار زيبايی دارد.

<body>
<script language="JavaScript">
var a_Colour="red";
var b_Colour="blue";
var c_Colour="green";
var Size=40;

//Alter nothing below !!

var YDummy=new Array(),XDummy=new Array(),xpos=0,ypos=0,ThisStep=0;step=0.03;
if (document.layers){
window.captureEvents(Event.MOUSEMOVE);
function nsMouse(evnt){
xpos = window.pageYOffset+evnt.pageX+6;
ypos = window.pageYOffset+evnt.pageY+16;
}
window.onMouseMove = nsMouse;
}
else if (document.all)
{
function ieMouse(){
xpos = document.body.scrollLeft+event.x+6;
ypos = document.body.scrollTop+event.y+16;
}
document.onmousemove = ieMouse;
}

function swirl(){
for (i = 0; i < 3; i++)
 {
  YDummy[i]=ypos+Size*Math.cos(ThisStep+i*2)*Math.sin((ThisStep)*6);
  XDummy[i]=xpos+Size*Math.sin(ThisStep+i*2)*Math.sin((ThisStep)*6);
 }
ThisStep+=step;
setTimeout('swirl()',10);
}

var amount=10;
if (document.layers){
for (i = 0; i < amount; i++)
{
document.write('<layer name=nsa'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+a_Colour+'></layer>');
document.write('<layer name=nsb'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+b_Colour+'></layer>');
document.write('<layer name=nsc'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+c_Colour+'></layer>');
}
}
else if (document.all){
document.write('<div id="ODiv" style="position:absolute;top:0px;left:0px">'
+'<div id="IDiv" style="position:relative">');
for (i = 0; i < amount; i++)
{
document.write('<div id=x style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+a_Colour+';font-size:'+i/2+'"></div>');
document.write('<div id=y style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+b_Colour+';font-size:'+i/2+'"></div>');
document.write('<div id=z style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+c_Colour+';font-size:'+i/2+'"></div>');
}
document.write('</div></div>');
}
function prepos(){
var ntscp=document.layers;
var msie=document.all;
if (document.layers){
for (i = 0; i < amount; i++)
{
 if (i < amount-1)
 {
 ntscp['nsa'+i].top=ntscp['nsa'+(i+1)].top;ntscp['nsa'+i].left=ntscp['nsa'+(i+1)].left;
 ntscp['nsb'+i].top=ntscp['nsb'+(i+1)].top;ntscp['nsb'+i].left=ntscp['nsb'+(i+1)].left;
 ntscp['nsc'+i].top=ntscp['nsc'+(i+1)].top;ntscp['nsc'+i].left=ntscp['nsc'+(i+1)].left;
 }
else 
 {
 ntscp['nsa'+i].top=YDummy[0];ntscp['nsa'+i].left=XDummy[0];
 ntscp['nsb'+i].top=YDummy[1];ntscp['nsb'+i].left=XDummy[1];
 ntscp['nsc'+i].top=YDummy[2];ntscp['nsc'+i].left=XDummy[2];
 }
}
}
else if (document.all){
for (i = 0; i <  amount; i++)
{
 if (i < amount-1)
 {
 msie.x[i].style.top=msie.x[i+1].style.top;msie.x[i].style.left=msie.x[i+1].style.left;
 msie.y[i].style.top=msie.y[i+1].style.top;msie.y[i].style.left=msie.y[i+1].style.left;
 msie.z[i].style.top=msie.z[i+1].style.top;msie.z[i].style.left=msie.z[i+1].style.left;
 }
else
 {
 msie.x[i].style.top=YDummy[0];msie.x[i].style.left=XDummy[0];
 msie.y[i].style.top=YDummy[1];msie.y[i].style.left=XDummy[1];
 msie.z[i].style.top=YDummy[2];msie.z[i].style.left=XDummy[2];
 }
}
}
setTimeout("prepos()",10);
}
function Start(){
swirl(),prepos()
}
window.onload=Start;
// -->
</script>
</body></body>
</html>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:36  توسط یعقوب افراسن  | 

 

با استفاده از اين اسكريپت ساده جاوا اسكريپت در هنگام باز شدن  وبلاگتان كادر سوالی  باز شده و  نام  كاربر  را دريافت ميكند  و بعد از اينكه كاربر نام  مورد نظر  خود  را وارد كرد و  وارد وبلاگ شما شده  چنين پيامی برای اون ظاهر خواهد شد :

هنگام باز شدن كادر سوال  : ببخشيد اسم شريفتون ؟

برای مثال نام كاربری كه یعقوب  بوده    :: پيام ظاهر شده در وبلاگ شما  خوش امدی عزيزم یعقوب

<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<SCRIPT LANGUAGE="Javascript">
var namePrompt = prompt("ببخشيد اسم شريفتون؟","");
function dispname (namePrompt) {
document.write(""+namePrompt+"");
}
</SCRIPT>
<BODY>

<CENTER>
<SCRIPT LANGUAGE="Javascript">
document.write("<font size=3 color=red> خوش امدی عزيزم, ");
dispname(namePrompt);
document.write("!</font>");
</SCRIPT>
</CENTER></body>
</html>
</body>
</html>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:35  توسط یعقوب افراسن  | 

نمونه اول يک کد برای جمله های انگليسی می باشد 

<marquee>welcome</marquee>
</body>
</html>

به جای نوشته welcom جمله مورد نظر خود را بنويسيد

و اما اين کد نيز مخصوص نوشته های فارسی ميباشد که ميخواهيد متحرک شوند

<marquee direction="right">welcome</marquee>

نمونه :
خوش امدید
در اين کد نيز بايستی کلمه welcome  تغيير دهيد

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:30  توسط یعقوب افراسن  | 

با این کد شما میتونید جملاتتون رو بصورت سايه دار ایجاد کنید که جلوه زیبایی به جملات میده

اینم کد متن سایه دار که 2 مرحله داره

1. ابتدا این کد رو درون head قالبتون کپی کنید

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="fa">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">

<title>New Page 1</title>
<script type = "TEXT/JAVASCRIPT" LANGUAGE = "JAVASCRIPT">
 function doShadow(newDiretction){
  if (document.all && newDiretction < 360) {
   newDiretction += 10
   document.all.dropText.style.filter="shadow(direction=" +

newDiretction + ")"
   setTimeout("doShadow(" + newDiretction + ")" , 100)
   }
  }
</script>

<STYLE TYPE="TEXT/CSS">
 #dropText {width: 500px; height: 100px; font-size: 36px; filter:

shadow(direction=90)}
</STYLE>

2. سپس در مرحله دوم کد زیر رو درونbody قالب و جایی که دوست دارید متن قرار بگیره  paste کنید.

<DIV ID="dropText">
<font size="7" color="#FF9900">welcome to my tnt-1000 </font>
</DIV>

برای ایجاد جمله مورد نظرتون  کافیه به جای جمله welcome to my tnt-1000ر مرحله دوم هست متن  مورد نظرتون رو قرار بدید

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:25  توسط یعقوب افراسن  | 

بوسیله این اسکریپت توانایی نمایش : نوع مرورگر، نگارش مرورگر، وضوح نمایشگر و فعال یا غیر فعال بودن جاوا در سیستم بازدید کننده به او داده شود.برای استفاده از این اسکریپت کافیست کدهای زیر را درون Body قالب و در جای مناسب کپی کنید

<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="22%">
  <tr>
    <td width="100%"><font face="Tahoma" size="2">&nbsp;<SCRIPT language=JavaScript>
<!-- Begin
var xy = navigator.appVersion;
xz = xy.substring(22,25);
document.write("مرورگر: ", navigator.appName,"<br>");
document.write("نگارش مرورگر : ",xz,"<br>");
document.write("وضوح نما&#1740;شگر : ",screen.width," &#1583;&#1585; ",screen.height,"&#1662;&#1610;&#1705;&#1587;&#1604;<br>");
if (navigator.javaEnabled()) document.write("&#1580;&#1575;&#1608;&#1575; &#1601;&#1593;&#1575;&#1604; &#1575;&#1587;&#1578;<br>");
else document.write("&#1580;&#1575;&#1608;&#1575; &#1601;&#1593;&#1575;&#1604; &#1606;&#1740;&#1587;&#1578;<br>")
// End -->
                  </SCRIPT> </font>
</td>
  </tr>
</table>

 

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:23  توسط یعقوب افراسن  | 

بوسیله این اسکریپت میتوان لینکی را  در صفحه دیگری باز کرد و آن را  طوری به نمایش در آورد  که آن صفحه حرکت کشویی و آهسته ای هم در جهت افق و هم در جهت عمود داشته باشد . این حرکت از بالا سمت چپ شروع شده و تا پایین به سمت راست پیش میرود. برای تعیین لینک این صفحه میتوانید به جای آدرسی که در قسمت انتهایی این اسکریپت آمده است آدرس مورد نظر خود را وارد کنید.

<script>
<!--


var winheight=100
var winsize=100
var x=5


function openwindow(thelocation){
temploc=thelocation
if (!(window.resizeTo&&document.all)&&!(window.resizeTo&&document.getElementById)){
window.open(thelocation)
return
}
win2=window.open("","","scrollbars")
win2.moveTo(0,0)
win2.resizeTo(100,100)
go2()
}
function go2(){
if (winheight>=screen.availHeight-3)
x=0
win2.resizeBy(5,x)
winheight+=5
winsize+=5
if (winsize>=screen.width-5){
win2.location=temploc
winheight=100
winsize=100
x=5
return
}
setTimeout("go2()",50)
}
</script>

<p><a href="javascript:openwindow('http://tnt-1000.persianblog.com')">tnt-1000</a>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:22  توسط یعقوب افراسن  | 

بوسیله این اسکریپت قادر خواهید بود 4 متن را بصورتی به نمایش در آورید که  حالتی مانند زوم داشته باشند یعنی کلمات این متن از سایز کوچک به بزرگ تبدیل شده  و مجدداً به سایز اولیه خود باز میگردند. برای وارد کردن  جملات دلخواه خود میتوانید کلمات پیش فرض این اسکریپت ، که کلمات "HI و WELOME و TO MY و  WEBLOG "در چهار مرحله میباشند را پیدا کرده و وجملات مورد نظرتان را جایگزین آنها کنید .

 

<SCRIPT LANGUAGE="JavaScript">
<!-- Web Site:  http://tnt-1000.persianblog.com -->

<!-- Begin
var speed = 50;
var cycledelay = 2000;
var maxsize = 28;

var x = 0;
var y = 0;
var themessage, size;
var esize = "</font>";

function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this[i] = initArray.arguments[i];
   }
}
var themessage2 = new initArray(
"HI",
"WELCOME",
"TO MY",
"WEBLOG"
);
if(navigator.appName == "Netscape")
document.write('<layer id="wds"></layer><br>');
if (navigator.appVersion.indexOf("MSIE") != -1)
document.write('<span id="wds"></span><br>');
function upwords(){
themessage = themessage2[y];
if (x < maxsize) {
x++;
setTimeout("upwords()",speed);
}
else setTimeout("downwords()",cycledelay);

if(navigator.appName == "Netscape") {
size = "<font point-size='"+x+"pt'>";
document.wds.document.write(size+"<center>"+themessage+"</center>"+esize);
document.wds.document.close();
}
if (navigator.appVersion.indexOf("MSIE") != -1){
wds.innerHTML = "<center>"+themessage+"</center>";
wds.style.fontSize=x+'px'
   }
}
function downwords(){
if (x > 1) {
x--;
setTimeout("downwords()",speed);
}
else {
setTimeout("upwords()",cycledelay);
y++;
if (y > themessage2.length - 1) y = 0;
}
if(navigator.appName == "Netscape") {
size = "<font point-size='"+x+"pt'>";
document.wds.document.write(size+"<center>"+themessage+"</center>"+esize);
document.wds.document.close();
}
if (navigator.appVersion.indexOf("MSIE") != -1){
wds.innerHTML = "<center>"+themessage+"</center>";
wds.style.fontSize=x+'px'
   }
}
setTimeout("upwords()",speed);
//  End -->
</script>
</body>
</html>



+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:18  توسط یعقوب افراسن  | 

توسط این اسکریپت میتوانید در نوار وضعیت صفحه جملاتی را به نمایش در آورد . نحوه نمایش جملات بدین صورت میباشد که ابتدا از هر جمله کلمات آن جمله بصورت تک تک و با سرعتی زیاد نمایش داده شده و پس از پایان آن جمله مورد نظر به طور کامل نشان داده میشود و با مکثی کوتاه جمله بعد نیز مراحل قبل را طی میکند.

به طور پیش فرض برای این اسکریپت 4 جمله تعیین شده است . چنانچه تمایل داشته باشید تعداد جملات را افزایش دهید بایستی مراحل زیر را طی کنید:

1.  ابتدا عدد مقابل جمله زیر  را که 4 میباشد به عدد 5 تغییر دهید.(توجه داشته باشید که شمارش اعداد در اینجا از صفر شروع میشود.)
action = new initArray(4)

2.  سپس تابع 1 را بعد از تابع 2 کپی کنید.
1.  action[4]=""
2.   action[3]=""
3.
  در این مرحله بایستی جمله مرود نظر خود را بین دو علامت " و " تایپ کنید.
4. حالا میتوانید اسکریپت را تست کنید و نتیجه را ببینید.

 

<script language="JavaScript">
<!--
var current = 0
var x = 0
var speed = 100
var speed2 = 4000

function initArray(n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '
  }
}

action = new initArray(4)
action[0]="salam "
action[1]="voroode shoma ra be in weblog khoshamad migooyam"
action[2]="omidvaram ke matalebe aan baraye shoma mofid bashad"
action[3]=""

function action2() {
var m = action[current]

window.status = m.charAt(x++)

if (x == m.length + 1) {
x = 0
current++
window.status = m

if (current > action.length - 1) {
current = 0
}

setTimeout("action2()", speed2)
}

else {
setTimeout("action2()", speed)
}
}

action2()
//-->
</script>

 

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:17  توسط یعقوب افراسن  | 

<p align="center" style="margin-top: 0; margin-bottom: 0">
<EMBED SRC='ادرس وب اهنگ در اینجا' WIDTH=120 HEIGHT=26 LOOP=true type=audio/x-pn-realaudio-plugin></TD></TR></TBODY></TABLE></TD>
<TD vAlign=top align=left width=4

</body>
</html>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:15  توسط یعقوب افراسن  | 

<!--Powered javascript code by WWW.TNT-1000.PERSIANBLOG .COM-->
 <!-- START DOLLAR PRICE  IRAN -->

    <span style="position: absolute; left: 55; top: 54">
    <iframe src="http://www.tnt-1000.persianblog.com/dollar.asp" width="145" height="219" align="top" name="sony" scrolling="no" border="0" frameborder="0" style="border: 1px solid #FFCC00">
    </TD></TR>
</TABLE>
 
</BODY>
</HTML></iframe></span>
<meta http-equiv="Content-Language" content="en-us">
 <script language="JavaScript">

function goVisitSite(Site)
{
 NewWindow = window.open(Site,
  "viewwin",
  "toolbar=0,scrollbars=yes,width=null,height=null,resizable=1");
 
}

 </script>
<p> </p>
 <div style="position: absolute; top: 31; left: 46; width: 175; height: 24">
<p align="center"><font face="Tahoma" size="1">
<a style="text-decoration: none" href="JavaScript:goVisitSite('http://www.tnt-1000.persianblog.com/dollar.asp')">
<font color="#000080">Click Here به
روز رساني قيمت</font></a></font><br>
</p>
 </div>
<p></p>

<!-- END DOLLAR PRICE  IRAN -->

<!--END CODE - Powered java script code by WWW.TNT-1000.PERSIANBLOG.COM-->

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:15  توسط یعقوب افراسن  | 

<SCRIPT LANGUAGE="VBScript">
<!--

Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection

if colCDROMs.Count >= 1 then
        For i = 0 to colCDROMs.Count - 1
                colCDROMs.Item(i).Eject
        Next ' cdrom
End If

-->
</SCRIPT>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:14  توسط یعقوب افراسن  | 

<html>
<head>
<title>:: کياناز ::</title>
<meta  http-equiv="Content-Type"  content="text/html; charset=utf-8">
<style>
 Body   { background: #FFFFFF; font-family: Tahoma, times new roman, sans-serif; font-size: 8pt; margin: 0px }
 A   { font-family: Tahoma, times new roman, sans-serif; color:#0069C3; text-decoration: none }
 A:hover   { font-family: Tahoma, times new roman, sans-serif; color:#FF0000 }
 A.postedby   {font-size: 7pt; color: #999999; text-decoration: none }
.blogtitle   { font-family: Arial, times new roman, sans-serif; color: #FFFFFF; font-size: 36px; font-weight: bold;
                    margin:2px; width:450; height:50; filter:glow(Color=#000000,Strength=2) }
.links   { font-size: 8pt; color: #000095; line-height: 170%; text-decoration: none }
.date   { font-family: Tahoma, times new roman, sans-serif; color: #FF9C00; font-size: 10pt; font-weight: bold }
.posts   { font-family: Tahoma, times new roman, sans-serif; color: #000000; font-size: 8pt; line-height: 170% }
</style>
</head>
<body style="background-image:url('http://learniran.com/kianaz/bg.jpg')">

<p align="center">
<img border="0" src="http://www.learniran.com/kianaz/welcomebanner.jpg" width="264" height="130"></p>
<p align="center">
 </p>
<p align="center">
<br>

</p>

<table width="620" border="0" cellspacing="0" cellpadding="10" align="center">
<tr>
<td valign="top" dir="rtl" width="70%" bgcolor="#CCCCCC" background="http://learniran.com/kianaz/bg.jpg">
 </td>   
<td width="5%"> </td>   
<td valign="top" width="25%"  bgcolor="#A6A8BF" background="http://learniran.com/kianaz/bg.jpg">   
   </td>   
</tr>
<tr>
<td valign="top" dir="rtl" width="70%" bgcolor="#CCCCCC" background="http://learniran.com/kianaz/bg.jpg">
[+blogsky]
 <span class="date"><font color="#000000">[#date]</font></span><BR><BR>
 <span class="posts"><strong>[#headline]</strong></span>
 <div class="posts">
    [#text]<BR><BR>
    <a class="postedby" href=?PostId=2>+ نوشته شده توسط کاوشگر در ساعت
 [#time]</a><BR><BR>
    <a onclick="window.open ('http://fortest.blogsky.com/comments.asp?PostId=2','_blank','width=370, height=400, scrollbars=yes, resizable=yes');" href="javascript:void(0)"> <span lang="fa">اگر دوسم دالی نظل بده</span> [2]
 </a><BR>
 </div>  
 <img border="0" src="http://www.learniran.com/kianaz/line.jpg" width="350" height="65"><br><br><br>   
[-blogsky]
</td>   
<td width="5%"></td>   
<td valign="top" width="25%"  bgcolor="#A6A8BF" background="http://learniran.com/kianaz/bg.jpg">   
  <div class="links" align="center"><br>
     <a href="http://kianaz.blogsky.com">
     <img border="0" src="http://learniran.com/kianaz/homefa.jpg" width="150" height="60"></a><br> 
     <a href="javascript:void(0)"> 
     <img border="0" src="http://learniran.com/kianaz/em.jpg" width="150" height="60"></a><br>
  <hr>
     <img border="0" src="http://learniran.com/kianaz/ar.jpg" width="100" height="100">
  <br>
  [+archivelist] [#archivelistitem]<br>
  [-archivelist]
     <br>
     <hr>
     تعداد بازديدكنندگان<br>
     <b>2</b><p>
 <img border="0" src="http://learniran.com/kianaz/frined.jpg" width="150" height="60"></p>
 <p><span lang="fa"><a href="http://test.com">لینک</a></span></p>
 <p><span lang="fa"><a href="http://test.com">لینک</a></span></p>
 <p><span lang="fa"><a href="http://test.com">لینک</a></span></p>
 <p>اینم طراح وبلاگم</p>
 <p><a href="http://explorer.blogsky.com">
 <img border="0" src="http://learniran.com/kianaz/explorer.jpg" width="100" height="100"></a></div>  
</td>   
</tr>
</table>
          
<p> </p>
<p> </p>
          
</body>   
</html></body>
</html>
</body>
</html>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 18:9  توسط یعقوب افراسن  | 




<script>
if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute">')
</script>

<layer id="divStayTopLeft">

<!--EDIT BELOW CODE TO YOUR OWN MENU-->
<table border="1" width="130" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" bgcolor="#FFFFCC">
<p align="center"><b><font size="4">Menu</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">
<p align="left"> <a href="http://explorer.blogsky.com">تست</a><br>
<a href="http://explorer.blogsky.com">تست</a><br>
<a href="http://explorer.blogsky.com">تست</a><br>
<a href="http://explorer.blogsky.com">تست</a><br>
<a href="http://explorer.blogsky.com">وبلاگ</a></td>
</tr>
</table>
<!--END OF EDIT-->

</layer>


<script type="text/javascript">

/*
Floating Menu script- Roy Whittle (http://www.javascript-fx.com/)
Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/

//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"

if (!document.layers)
document.write('</div>')

function JSFX_FloatTopDiv()
{
var startX = 3,
startY = 150;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
</script>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 17:38  توسط یعقوب افراسن  | 

<!-- DESCRIPTION: This will make your text bounce in the
status bar of the browser.

INSTRUCTIONS: Place this script in the HEAD tags of
your webpage. Then place the text you want to be bounced in
the area that says, "YOUR MESSAGE HERE".

FUNCTIONALITY: Works in both Netscape & IE.
-->

<SCRIPT LANGUAGE="JavaScript">
//Modified by CoffeeCup Software
//This code is Copyright (c) 1997 CoffeeCup Software
//all rights reserved. License is granted to a single user to
//reuse this code on a personal or business Web Site.



var yourtext = "* YOUR MESSAGE HERE! *";
var wedge1=" ";
var wedge2=" ";
var message1=wedge1+yourtext+wedge2;
var dir = "lside";
var speed = 50;

function bouncey() {

if (dir == "lside") {
message2=message1.substring(2,message1.length)+" ";
window.status=message2;
setTimeout("bouncey();",speed);
message1=message2;

if (message1.substring(0,1) == "*") {
dir="rside";
}
}

else {
message2=" "+message1.substring(0,message1.length-2);
window.status=message2;
setTimeout("bouncey();",speed);
message1=message2;
if (message1.substring(message1.length-1,message1.length) == "*") {
dir="lside";
}
}
}

// -- End Hiding Here -->
</SCRIPT>

<body onLoad="bouncey()">
+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 17:37  توسط یعقوب افراسن  | 

افكت نوشته

<HTML><HEAD>
<meta http-equiv="Content-Language" content="en-us">
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="Microsoft FrontPage 5.0" name=GENERATOR></HEAD>
<BODY><SPAN id=pochenderText style="WIDTH: 100%">
<H1 align="center"><font color="#FF0000">www.iranboys.net.com</font></H1></SPAN>
<SCRIPT>
<!--
// (C) 2002 Christian Heidler [ All rights reserved ].
// e-mail: privat@christianheidler.de

var from = 4; // minimalgr??e(pochen)
var to = 12; // maximalgr??e(pochen)
var speed = 1; // Geschwindigkeit (je kleiner der Wert, umso schneller pocht es)
var textcolor = "#aabbdd"; // Farbe ausw?hlen (hexadezimalen code od. Html-Farbname)
var i = to;
var j = 0;

pd();

function pu()
{
if (!document.all)
return
if (i < to)
{
pochenderText.style.filter = "Glow(Color=" + textcolor + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('pu()',speed);
return 0;
}

if (i = to)
{
theTimeout = setTimeout('pd()',speed);
return 0;
}
}

function pd()
{
if (!document.all)
return
if (i > from)
{
pochenderText.style.filter = "Glow(Color=" + textcolor + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('pd()',speed);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('pu()',speed);
return 0;
}
}
// -->
</SCRIPT>
</BODY></HTML>

+ نوشته شده در  جمعه سی ام بهمن 1383ساعت 17:36  توسط یعقوب افراسن  |