دسته
آمار وبلاگ
تعداد بازدید : 165043
تعداد نوشته ها : 351
تعداد نظرات : 122
Rss
طراح قالب

حتما تا به حال به این موقعيت برخورده کرده اید زمانی که مشغول کار با کامپيوتر هستيد و برنامه های متعددی در حال اجرا است به دلیلی ناچار به خاموش کردن کامپیوتر می شوید .در این صورت با اين همه برنامه و چيزهایی که پيش روي شماست چه کار می کنید باید حتما از همه آنها خارج شوید ؟ نه اصلا لازم نیست !

زیرا یکی از قابلیتهای ویندوزXP خروج از ویندوز بدون بستن برنامه های فعال و در حال اجرا است .

قابلیت Hibernate در ویندوز XP امکان خاموش کردن کامپیوتر بدون بستن پنجره ها و برنامه ها را به راحتی در اختیار شما قرار می دهد .

برای استفاده از این قایلیت کافي است بر روي منوي Start کليک کرده و Turn off computer را OK کنید البته لازم نیست از برنامه های فعال خارج شوید.

حالا کليد Shift را پایین نگه داريد. در این حالت کلمه Stand by به کلمه Hibrenate تغيير پیدا می کند ! حال روي آن کليک کنيد.

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

تذکر :قابلیت Hibrenate فقط در زمانی اجرا خواهد شد که قبلاً فعال شده باشد.براي فعال سازی Hibrenate اين مسیر را دنبال کنید :

Start Menu --> Control Panel --> Power Options-->Hibrenate

حال گزینه Enable hibernation را علامت زده و خارج شويد.

 

نظر یادتون نره!

دسته ها :
جمعه نهم 4 1385

توجه:برای تست کدها به اینجا بروید.

به جای قسمت رنگی،متن خود را قرار دهید.

<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>
<DIV id=Zittertext
style="FONT-WEIGHT: bold; FONT-SIZE: 25pt; FILTER: Wave(freq=5, light=0, phase=8, strength=1); WIDTH: 100%; COLOR: orange">
  <p align="center"><font color="#000000">
  <span style="background-color: #FFFF00">http://teblog.tebyan.net/Golshan/default.aspx</span></font></DIV>
<SCRIPT language=JavaScript>
<!--
function DynWave()
{
  if(document.all.Zittertext.filters[0].freq > 130)
     document.all.Zittertext.filters[0].freq = 15;
  document.all.Zittertext.filters[0].freq += 1;
  if(document.all.Zittertext.filters[0].phase > 50)
     document.all.Zittertext.filters[0].phase = 1;
 document.all.Zittertext.filters[0].phase += 1;
  if(document.all.Zittertext.filters[0].strength > 1)
     document.all.Zittertext.filters[0].strength = .1;
  document.all.Zittertext.filters[0].strength += 1;
  window.setTimeout("DynWave()",100);
}
DynWave();
// -->
</SCRIPT>
</BODY></HTML>

دسته ها :
پنج شنبه هشتم 4 1385

توجه:برای تست کدها به اینجا بروید.

 

<SCRIPT language="">
document.onmousedown=click
var times=0
var times2=10
function click() {
if ((event.button==2) || (event.button==3)) {
if (times>=0) { earthquake() }
alert("\n\n Nem faz isso, q aki naum é page lammerz!!");
times++ } }
function earthquake () {
alert("Custom message")
window.moveTo(0, 0)
window.moveTo(1, 1)
window.moveTo(2, 2)
window.moveTo(3, 3)
window.moveTo(4, 4)
window.moveTo(5, 5)
window.moveTo(6, 6)
window.moveTo(7, 7)
window.moveTo(8, 8)
window.moveTo(9, 9)
window.moveTo(10, 10)
window.moveTo(9, 9)
window.moveTo(8, 8)
window.moveTo(7, 7)
window.moveTo(6, 6)
window.moveTo(5, 5)
window.moveTo(4, 4)
window.moveTo(3, 3)
window.moveTo(2, 2)
window.moveTo(1, 1)
tremmors()
}
function tremmors() {
window.moveTo(0, 0)
window.moveTo(1, 1)
window.moveTo(2, 2)
window.moveTo(3, 3)
window.moveTo(4, 4)
window.moveTo(5, 5)
window.moveTo(6, 6)
window.moveTo(7, 7)
window.moveTo(8, 8)
window.moveTo(9, 9)
window.moveTo(10, 10)
window.moveTo(9, 9)
window.moveTo(8, 8)
window.moveTo(7, 7)
window.moveTo(6, 6)
window.moveTo(5, 5)
window.moveTo(4, 4)
window.moveTo(3, 3)
window.moveTo(2, 2)
window.moveTo(1, 1)
tremmors()
}
</SCRIPT>

دسته ها :
پنج شنبه هشتم 4 1385

توجه:برای تست کدها به اینجا بروید.

 

<!-- START OF Mouse Cursor Crosshairs DHTML -->


<!-- SUMMARY BRIEF

 This DHTML script will make a crosshair to follow
 your mouse cursor around.

 You can change the color of the crosshair by changing
 the color hex codes in the <style> tag in the <head>
 of your document.

-->


<!-- Put this portion of the script inside of your <HEAD> tag -->


<style>
<!--

#leftright, #topdown{

 position: absolute;
 left: 0;
 top: 0;
 width: 1px;
 height: 1px;
 layer-background-color: #FF0000;
 background-color: #FF0000;
 z-index: 100;
 font-size: 1px;
}

-->
</style>


<!-- Put this code after your <BODY> tag. -->


<div id="leftright" style="width:expression(document.body.clientWidth-2)"></div>
<div id="topdown" style="height:expression(document.body.clientHeight-2)"></div>

<script language="JavaScript1.2">
<!--

if (document.all&&!window.print){
leftright.style.width=document.body.clientWidth-2
topdown.style.height=document.body.clientHeight-2
}
else if (document.layers){
document.leftright.clip.width=window.innerWidth
document.leftright.clip.height=1
document.topdown.clip.width=1
document.topdown.clip.height=window.innerHeight
}


function followmouse1(){
//move cross engine for IE 4+
leftright.style.pixelTop=document.body.scrollTop+event.clientY+1
topdown.style.pixelTop=document.body.scrollTop
if (event.clientX<document.body.clientWidth-2)
topdown.style.pixelLeft=document.body.scrollLeft+event.clientX+1
else
topdown.style.pixelLeft=document.body.clientWidth-2
}

function followmouse2(e){
//move cross engine for NS 4+
document.leftright.top=e.y+1
document.topdown.top=pageYOffset
document.topdown.left=e.x+1
}

if (document.all)
document.onmousemove=followmouse1
else if (document.layers){
window.captureEvents(Event.MOUSEMOVE)
window.onmousemove=followmouse2
}

function regenerate(){
window.location.reload()
}
function regenerate2(){
setTimeout("window.onresize=regenerate",400)
}
if ((document.all&&!window.print)||document.layers)
//if the user is using IE 4 or NS 4, both NOT IE 5+
window.onload=regenerate2

//-->
</script>


<!-- END OF Mouse Cursor Crosshairs DHTML -->

دسته ها :
پنج شنبه هشتم 4 1385

توجه:برای تست کدها به اینجا بروید.

به جای قسمت رنگی،متن خود را وارد کنید.

<!--   DESCRIPTION:  This script will make your status message slide into place.  Neat effect. 

 INSTRUCTIONS:  Place this script in the BODY tags of
your webpage.  Then place the appropriate message in the var msg value.

 FUNCTIONALITY: Works in both Netscape and IE.

 

//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.

-->

<BODY onLoad="timerONE=window.setTimeout('slide(120,0)',20);">

<SCRIPT LANGUAGE="JavaScript">

function slide(jumpSpaces,position) {
  var msg = "This JavaScript will slide in your desired message....Cool...isn't it???.......drink more coffee"
  var out = ""
  if (endScroll) {return false}
  for (var i=0; i<position; i++)
    {out += msg.charAt(i)}
  for (i=1;i<jumpSpaces;i++)
    {out += " "}
  out += msg.charAt(position)
  window.status = out
  if (jumpSpaces <= 1) {
    position++
    if (msg.charAt(position) == ' ')
      {position++ }
    jumpSpaces = 100-position
  } else if (jumpSpaces >  3)
       {jumpSpaces *= .75}
  else
    {jumpSpaces--}
  if (position != msg.length) {
    var cmd = "slide(" + jumpSpaces + "," + position + ")";
    scrollID = window.setTimeout(cmd,5);
  } else {
    scrolling = false
    return false
  }
  return true
}
function ccSetup() {
 if (scrolling)
  if (!confirm('Re-initialize slide?'))
   return false
   endScroll = true
   scrolling = true
   var killID = window.setTimeout('endScroll=false',6)
   scrollID = window.setTimeout('slide(100,0)',10)
   return true
}
var scrollID = Object
var scrolling = false
var endScroll = false
</SCRIPT>

دسته ها :
پنج شنبه هشتم 4 1385

- روز مبارزه با سلاح های شیمیایی و میکروبی

- تشکیل بنیاد نوبل جهت نحوه تقسیم و اعطاء جوایز نوبل ( 1900 م )

- آغاز جنگ دوم بالکان بین کشورهای اروپایی در بالکان ( 1913 م )

دسته ها :
پنج شنبه هشتم 4 1385

توجه:برای تست کدها به اینجا بروید.

 

<FONT face=Tahoma color=white>
 <html>
<head>

</head>
<body>
<!-- STEP ONE: Insert the onLoad event handler into your BODY tag  -->

<BODY BGCOLOR="#000000" onLoad="fly()">

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

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
SmallStars = 30;
LargeStars = 10;
SmallYpos = new Array();
SmallXpos = new Array();
LargeYpos = new Array();
LargeXpos = new Array();
Smallspeed= new Array();
Largespeed= new Array();
ns=(document.layers)?1:0;
if (ns) {
for (i = 0; i < SmallStars; i++) {
document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFF0' CLIP='0,0,1,1'></LAYER>");
}
for (i = 0; i < LargeStars; i++) {
document.write("<LAYER NAME='ln"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFFF' CLIP='0,0,2,2'></LAYER>");
   }
}
else {
document.write('<div style="position:absolute;top:0px;left:0px">');
document.write('<div style="position:relative">');
for (i = 0; i < SmallStars; i++) {
document.write('<div id="si" style="position:absolute;top:0;left:0;width:1px;height:1px;background:#fffff0;font-size:1px"></div>');
}
document.write('</div>');
document.write('</div>');
document.write('<div style="position:absolute;top:0px;left:0px">');
document.write('<div style="position:relative">');
for (i = 0; i < LargeStars; i++) {
document.write('<div id="li" style="position:absolute;top:0;left:0;width:2px;height:2px;background:#ffffff;font-size:2px"></div>');
}
document.write('</div>');
document.write('</div>');
}
WinHeight = (document.layers)?window.innerHeight:window.document.body.clientHeight;
WinWidth = (document.layers)?window.innerWidth:window.document.body.clientWidth;
for (i = 0; i < SmallStars; i++) {
SmallYpos[i] = Math.round(Math.random() * WinHeight);
SmallXpos[i] = Math.round(Math.random() * WinWidth);
Smallspeed[i]= Math.random() * 5 + 1;
}
for (i = 0; i < LargeStars; i++) {
LargeYpos[i] = Math.round(Math.random() * WinHeight);
LargeXpos[i] = Math.round(Math.random() * WinWidth);
Largespeed[i] = Math.random() * 10 + 5;
}
function fly() {
var WinHeight = (document.layers)?window.innerHeight:window.document.body.clientHeight;
var WinWidth = (document.layers)?window.innerWidth:window.document.body.clientWidth;
var hscrll = (document.layers)?window.pageYOffset:document.body.scrollTop;
var wscrll = (document.layers)?window.pageXOffset:document.body.scrollLeft;
for (i = 0; i < LargeStars; i++) {
LargeXpos[i] -= Largespeed[i];
if (LargeXpos[i] < -10) {
LargeXpos[i] = WinWidth;
LargeYpos[i] = Math.round(Math.random() * WinHeight);
Largespeed[i] = Math.random() * 10 + 5;
}
if (ns) {
document.layers['ln'+i].left = LargeXpos[i];
document.layers['ln'+i].top = LargeYpos[i] + hscrll;
}
else {
li[i].style.pixelLeft = LargeXpos[i];
li[i].style.pixelTop = LargeYpos[i] + hscrll;
   }
}
for (i = 0; i < SmallStars; i++) {
SmallXpos[i] -= Smallspeed[i];
if (SmallXpos[i] < -10) {
SmallXpos[i] = WinWidth;
SmallYpos[i] = Math.round(Math.random()*WinHeight);
Smallspeed[i] = Math.random() * 5 + 1;
}
if (ns) {
document.layers['sn'+i].left = SmallXpos[i];
document.layers['sn'+i].top = SmallYpos[i]+hscrll;
}
else {
si[i].style.pixelLeft = SmallXpos[i];
si[i].style.pixelTop = SmallYpos[i]+hscrll;
   }
}
setTimeout('fly()', 10);
}
//  End -->
</script>

 

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

</body>
</html>

دسته ها :
چهارشنبه هفتم 4 1385

توجه:برای تست کدها به اینجا بروید.

 

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

<script LANGUAGE="JavaScript">
<!-- hide code

var nDots = 7;

var Xpos = 0;
var Ypos = 0;

  // fixed time step, no relation to real time
var DELTAT = .01;
  // size of one spring in pixels
var SEGLEN = 10;
  // spring constant, stiffness of springs
var SPRINGK = 10;
  // all the physics is bogus, just picked stuff to
  // make it look okay
var MASS = 1;
// Positive XGRAVITY pulls right, negative pulls left
// Positive YGRAVITY pulls down, negative up
var XGRAVITY = 0;
var YGRAVITY = 50;
// RESISTANCE determines a slowing force proportional to velocity
var RESISTANCE = 10;
  // stopping criterea to prevent endless jittering
  // doesn't work when sitting on bottom since floor
  // doesn't push back so acceleration always as big
  // as gravity
var STOPVEL = 0.1;
var STOPACC = 0.1;
var DOTSIZE = 11;
  // BOUNCE is percent of velocity retained when
  // bouncing off a wall
var BOUNCE = 0.75;

var isNetscape = navigator.appName=="Netscape";

  // always on for now, could be played with to
  // let dots fall to botton, get thrown, etc.
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)
    }
   
    // set their positions
    for (i = 0; i < nDots; i++) {
        dots[i].obj.left = dots[i].X;
        dots[i].obj.top = dots[i].Y;
    }
   
   
    if (isNetscape) {
        // start right away since they are positioned
        // at 0, 0
        startanimate();
    } else {
        // let dots sit there for a few seconds
        // since they're hiding on the real bullets
        setTimeout("startanimate()", 1000);
    }
}

 

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);
}


// This is to line up the bullets with actual LI tags on the page
// Had to add -DOTSIZE to X and 2*DOTSIZE to Y for IE 5, not sure why
// Still doesn't work great
function setInitPositions(dots)
{
    // initialize dot positions to be on top
    // of the bullets in the <ul>
    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;
    }
    // put 0th dot above 1st (it is hidden)
    dots[0].X = dots[1].X;
    dots[0].Y = dots[1].Y - SEGLEN;
}

// just save mouse position for animate() to use
function MoveHandler(e)
{
    Xpos = e.pageX;
    Ypos = e.pageY;  
    return true;
}

// just save mouse position for animate() to use
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() { 
    // dots[0] follows the mouse,
    // though no dot is drawn there
    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);
        }
       
        // air resisitance/friction
        var resist = new vec(-dots[i].dx * RESISTANCE,
            -dots[i].dy * RESISTANCE);
       
        // compute new accel, including gravity
        var accel = new vec((spring.X + resist.X)/MASS + XGRAVITY,
            (spring.Y + resist.Y)/ MASS + YGRAVITY);
       
        // compute new velocity
        dots[i].dx += (DELTAT * accel.X);
        dots[i].dy += (DELTAT * accel.Y);
       
        // stop dead so it doesn't jitter when nearly still
        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;
        }
       
        // move to new position
        dots[i].X += dots[i].dx;
        dots[i].Y += dots[i].dy;
       
        // get size of window
        var height, width;
        if (isNetscape) {
            height = window.innerHeight + window.pageYOffset;
            width = window.innerWidth + window.pageXOffset;
        } else { 
            height = document.body.clientHeight + document.body.scrollTop;
            width = document.body.clientWidth + document.body.scrollLeft;
        }
       
        // bounce off 3 walls (leave ceiling open)
        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;
        }
       
        // move img to new position
        dots[i].obj.left = dots[i].X;   
        dots[i].obj.top =  dots[i].Y;  
    }
}

// end code hiding -->
</script>

دسته ها :
چهارشنبه هفتم 4 1385

توجه:برای تست کدها به اینجا بروید.

 

<SCRIPT language=javascript>
msg = "Krishna edyatoula is the best programmer in the world";

msg = "..." + msg;pos = 0;
function scrollMSG() {
document.title = msg.substring(pos, msg.length) + msg.substring(0, pos);
pos++;
if (pos >  msg.length) pos = 0
window.setTimeout("scrollMSG()",200);
}
scrollMSG();
    </SCRIPT>

دسته ها :
چهارشنبه هفتم 4 1385

با سلام

دوست گرامی،من بیش از 150کد در اختیار دارم که به مرور زمان آنها را در وبلاگم قرار می دهم.همچنین موضوع این کدها شامل:جلوه های ویژه،قرار دادن موتور جستجو،قرار دادن دنباله برای موس،قرار دادن پیغامهای متنوع در داخل وبلاگ و.....می باشد.

دسته ها :
چهارشنبه هفتم 4 1385

- انفجار دفتر حزب جمهوری اسلامی و شهادت مظلومانه شهید بهشتی و...

- افتتاح دوازدهمین کنفرانس بین المللی وحدت اسلامی ( 1378 ش )

- روز قوه قضائیه

- در گذشت » ابن عسگر » قاضی ، مورخ وفقیه مراکشی ( 986 ق )

- تولد » ژان ژاک روسو » متفکر ، نظریه پرداز و فیلسوف بزرگ فرانسوی ( 1712 م )

- افتتاح مرکز اسلامی واشینگتن ( 1957م )

دسته ها :
چهارشنبه هفتم 4 1385
X