زمان جاری : جمعه 06 آذر 1405 - 11:57 بعد از ظهر
نام کاربری : پسورد : یا عضویت | رمز عبور را فراموش کردم



ارسال پاسخ
تعداد بازدید 284
نویسنده پیام
danger آفلاین


ارسال‌ها : 117
عضویت: 7 /5 /1391
محل زندگی: همدان
سن: 23
تشکرها : 29
تشکر شده : 22
آموزش Java-Scriptفصل دوم

موضوع اسكريپت Email به هر جا

اين اسكريپت به كاربران اجازه مي دهد كه در هر زمان به هر آدرسي Email ارسال كنند .

کد:
<!-- TWO STEPS TO INSTALL ANYWHERE MAIL:

1. Paste the designated coding into the HEAD of your HTML document

2. Put the last script into the BODY of the HTML document -->

<!-- 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://www.ostadonline.com -->

<!-- Begin

function mailsome1(){

who=prompt("Enter recipient's email address: ","vlearning@etvto.ir");

what=prompt("Enter the subject: ","none");

if (confirm("Are you sure you want to mail "+who+" with the subject of "+what+"?")==true){

parent.location.href='mailto:'+who+'?subject='+what+'';

}

}

// End -->

</SCRIPT>

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

<BODY>

<CENTER>

<a href='javascript:mailsome1()'>E-Mail Someone!</a>

<FORM>

<input type=button value="E-Mail Someone!" onClick="mailsome1()">

</FORM>

</CENTER>

<p><center>

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

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


پنجشنبه 12 مرداد 1391 - 11:39
نقل قول این ارسال در پاسخ
danger آفلاین



ارسال‌ها : 117
عضویت: 7 /5 /1391
محل زندگی: همدان
سن: 23
تشکرها : 29
تشکر شده : 22
پاسخ : 1 RE آموزش Java-Scriptفصل دوم

موضوع اسكريپت عوض كننده رنگ Background

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

کد:
<!-- TWO STEPS TO INSTALL BACKGROUND COLOR CHANGER:

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://javascript.internet.com -->

<!-- Begin

function newbg(thecolor)

{

document.bgColor=thecolor;

}

// End -->

</script>

</HEAD>

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

<BODY>

<div align="center">

<form>

<input type="button" value="White" onclick="newbg('white');">

<input type="button" value="Blue" onclick="newbg('blue');">

<input type="button" value="Beige" onclick="newbg('Beige');">

<input type="button" value="Yellow" onclick="newbg('yellow');">

</form>

</div>

<p><center>

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

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


پنجشنبه 12 مرداد 1391 - 11:40
نقل قول این ارسال در پاسخ
danger آفلاین



ارسال‌ها : 117
عضویت: 7 /5 /1391
محل زندگی: همدان
سن: 23
تشکرها : 29
تشکر شده : 22
پاسخ : 2 RE آموزش Java-Scriptفصل دوم

موضوع اسكريپت عوض شدن رنگ پيش زمينه با mouseover

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

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

<!-- TWO STEPS TO INSTALL BACKGROUND COLOR-CHANGE:

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

// Copyright 2001 by www.CodeBelly.com

// Please do *not* remove this notice.

var backColor = new Array(); // don't change this

// Enter the colors you wish to use. Follow the

// pattern to use more colors. The number in the

// brackets [] is the number you will use in the

// function call to pick each color.

backColor[0] = '#FF0000';

backColor[1] = '#00FF00';

backColor[2] = '#FFC0C0';

backColor[3] = '#FFFFFF';

// Do not edit below this line.

function changeBG(whichColor){

document.bgColor = backColor[whichColor];

}

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

Example One -- changing bg color with mouseOver.

Set the number in the () in the changeBG() function

to the number of the color in the brackets in the

backColor[] array to select a given color.

//--><A onmouseover=javascript:changeBG(2)

href="file:///C:/Documents%20and%20Settings/B.Zarabian/Desktop/g.html#">Change

by placing mouse over link</A> <!--

Example Two -- changing bg color with a mouse click.

Set the number in the () in the changeBG() function

to the number of the color in the brackets in the

backColor[] array to select a given color.

//--><A href="javascript:changeBG(1)">Change by clicking on link</A>

<P>

<CENTER><FONT face="arial, helvetica" size?-2?>Free JavaScripts provided by

ostadonline<BR><!-- Script Size: 1.79 KB --></FONT></CENTER></BODY></HTML>


پنجشنبه 12 مرداد 1391 - 11:42
نقل قول این ارسال در پاسخ
danger آفلاین



ارسال‌ها : 117
عضویت: 7 /5 /1391
محل زندگی: همدان
سن: 23
تشکرها : 29
تشکر شده : 22
پاسخ : 3 RE آموزش Java-Scriptفصل دوم

موضوع اسكريپت كليدي براي پخش يا عدم پخش موزيك در صفحه وب

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

کد:
<!-- ONE STEP TO INSTALL BACKGROUND MUSIC SWITCH:

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

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

<BODY>

<!-- This script and many more are available free online at -->

<script>

function mus1()

{

if (t.options.selectedIndex==0){

mus.innerHTML="<embed src="+musi+" loop=-1>"

}

if (t.options.selectedIndex==1){

mus.innerHTML=""

}

}

document.write("<span id='mus' style='position:absolute;top:-90000'><embed src="+musi+" width=0 height=0 loop=-1></span>")

</script>

<select name="t" onchange=mus1()>

<option>Enable background music

<option>Disable background music

</select>

<p><center>

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

by ostadonline

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


پنجشنبه 12 مرداد 1391 - 11:43
نقل قول این ارسال در پاسخ
danger آفلاین



ارسال‌ها : 117
عضویت: 7 /5 /1391
محل زندگی: همدان
سن: 23
تشکرها : 29
تشکر شده : 22
پاسخ : 4 RE آموزش Java-Scriptفصل دوم

موضوع اسكريپت نمايش صفحه بصورت اسلايد

اين اسكريپت صفحه نمايش را از بالا و پايين و چپ و راست صفحه نمايش به حركت در مي آورد .

کد:
<!-- 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 -->


پنجشنبه 12 مرداد 1391 - 11:44
نقل قول این ارسال در پاسخ
ارسال پاسخ
پرش به انجمن :

theme designed for MyBB | RTL by MyBBIran.com