تبلیغات :
ماهان سرور
آکوستیک ، فوم شانه تخم مرغی ، پنل صداگیر ، یونولیت
فروش آنلاین لباس کودک
خرید فالوور ایرانی
خرید فالوور اینستاگرام
خرید ممبر تلگرام

[ + افزودن آگهی متنی جدید ]




صفحه 14 از 27 اولاول ... 410111213141516171824 ... آخرآخر
نمايش نتايج 131 به 140 از 264

نام تاپيک: اموزش كدهاي جاوا اسكريپ

  1. #131
    اگه نباشه جاش خالی می مونه Ronaldiniho's Avatar
    تاريخ عضويت
    Feb 2005
    محل سكونت
    تهران
    پست ها
    430

    پيش فرض

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

    <!-- START OF Scrollable Embedded Window DHTML -->


    <!-- SUMMARY BRIEF

    This DHTML script will put a small, fixed,
    scrollable window into your page. You can
    change the height, width, background color
    and content of the window.

    How to configure the script:

    The width of the "window" is 170 and the
    height is 150. To alter the height and width
    of the window, change ALL instances of 170 to
    another value, and the same for 150 (it'll be
    faster if you just do a search-and-replace).
    You can also give the window a different
    background color by changing "white" to another
    color name or hex code. Also, change the text
    to whatever you want by replacing the text (you
    can use HTML as well) inside of the <DIV> tag.

    -->


    <!-- Put this code into your page wherever you want the small window to be. -->


    <ilayer name="scroll1" width=170 height=150 clip="0,0,170,150">

    <layer name="scroll2" width=170 height=150 bgColor="white">

    <div id="scroll3" style="width:170;height:150;background-color:yellow;overflow:scroll">

    متن خود را در این قسمت بنویسدد<br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
     </div>
    </layer>
    </ilayer>

    <script>

    var nsstyle='display:""'
    if (document.layers)
    var scrolldoc=document.scroll1.document.scroll2
    function up(){
    if (!document.layers) return
    if (scrolldoc.top<0)
    scrolldoc.top+=10
    temp2=setTimeout("up()",50)
    }
    function down(){
    if (!document.layers) return
    if (scrolldoc.top-150>=scrolldoc.document.height*-1)
    scrolldoc.top-=10
    temp=setTimeout("down()",50)
    }

    function clearup(){
    if (window.temp2)
    clearInterval(temp2)
    }

    function cleardown(){
    if (window.temp)
    clearInterval(temp)
    }

    </script>

    <br><span style="display:none" style=&{nsstyle};><a href="#" onMousedown="up()"
    onMouseup="clearup()" onClick="return false" onMouseout="clearup()">Up</a> | <a href="#"
    onMousedown="down()" onMouseup="cleardown()" onClick="return false"
    onMouseout="cleardown()">Down</a> | <a href="#" onClick="if (document.layers) scrolldoc.top=0;return false">Top</a> | <a href="#" onClick="if (document.layers) scrolldoc.top=scrolldoc.document.height*(-1)+150;return false">Bottom</a></span>


    <!-- END OF Scrollable Embedded Window DHTML -->

  2. #132
    اگه نباشه جاش خالی می مونه Ronaldiniho's Avatar
    تاريخ عضويت
    Feb 2005
    محل سكونت
    تهران
    پست ها
    430

    پيش فرض

    دوستان اينقدر من و اقاي كوسه زحمت ميكشيم حد اقل بياييد يه نظر بديد

  3. #133
    اگه نباشه جاش خالی می مونه Ronaldiniho's Avatar
    تاريخ عضويت
    Feb 2005
    محل سكونت
    تهران
    پست ها
    430

    پيش فرض

    ببينم اقاي كوسه يه سوال شما قالب وبلاگم طراحي ميكني

  4. #134
    اگه نباشه جاش خالی می مونه Ronaldiniho's Avatar
    تاريخ عضويت
    Feb 2005
    محل سكونت
    تهران
    پست ها
    430

    پيش فرض

    گلباران در سايت يا وبلاگ

    <!-- this script got from KKR-->

    <body bgcolor='#000000' >
    <!-- Start of Fireworks -->
    <script language="JavaScript">
    <!-- IE4+, NS4+, NS6 Fireworks script by [ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
    CL=new Array('#ff0000','#00ff00','#ffffff','#ff00ff','#ff a500','#ffff00','#00ff00','#ffffff','#ff00ff')
    CL2=new Array('#ffa500','#00ff00','#FFAAFF','#fff000','#ff fffF')
    Xpos=130;
    Ypos=130;
    I='#00ff00';
    C=0;
    S=5;
    H=null;
    W=null;
    Y=null;
    NS4=(document.layers);
    NS6=(document.getElementById&&!document.al l);
    IE4=(document.all);
    A=14;
    E=120;
    L=null;
    if (NS4){
    for (i=0; i < A; i++)
    document.write('<LAYER NAME="nsstars'+i+'" TOP=0 LEFT=0 BGCOLOR='+I+' CLIP="0,0,2,2"></LAYER>');
    }
    if (NS6){
    window.document.body.style.overflow='hidden';
    for (i=0; i < A; i++)
    document.write('<div id="ns6stars'+i+'" style="position:absolute;top:0px;left:0px;height:2 px;width:2px;font-size:2px;background:'+I+'"></div>');
    }
    if (IE4){
    document.write('<div id="ie" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i=0; i < A; i++)
    document.write('<div id="iestars" style="position:absolute;top:0;left:0;width:2px;he ight:2px;background:'+I+';font-size:2px"></div>');
    document.write('</div></div>');
    }
    function Fireworks(){
    H=(NS4||NS6)?window.innerHeight:window.document.bo dy.clientHeight;
    W=(NS4||NS6)?window.innerWidth:window.document.bod y.clientWidth;
    Y=(NS4||NS6)?window.pageYOffset:window.document.bo dy.scrollTop;
    for (i=0; i < A; i++){
    if (IE4)L=iestars[i].style;
    if (NS4)L=document.layers["nsstars"+i];
    if (NS6)L=document.getElementById("ns6stars"+i).style ;
    var F = CL[Math.floor(Math.random()*CL.length)];
    var RS=Math.round(Math.random()*2);
    L.top = Ypos + E*Math.sin((C+i*5)/3)*Math.sin(C/100)
    L.left= Xpos + E*Math.cos((C+i*5)/3)*Math.sin(C/100)
    if (C < 110){
    if (NS4){L.bgColor=I;L.clip.width=1;L.clip.height=1}
    if (IE4||document.getElementById)
    {L.background=I;L.width=1;L.height=1;L.fontSize=1}
    }
    else{
    if (NS4){L.bgColor=F;L.clip.width=RS;L.clip.height=RS }
    if (IE4||document.getElementById){L.background=F;L.wi dth=RS;L.height=RS;L.fontSize=RS}
    }
    }
    if (C > 220){
    C=0;
    var NC = CL2[Math.floor(Math.random()*CL2.length)];
    I=NC;
    E=Math.round(100+Math.random()*90);
    Ypos = E+Math.round(Math.random()*(H-(E*2.2)))+Y;
    Xpos = E+Math.round(Math.random()*(W-(E*2.2)));
    }
    C+=S;
    setTimeout("Fireworks()",10);
    }
    Fireworks();
    // -->
    </script>
    <!-- End of Fireworks -->

  5. #135
    اگه نباشه جاش خالی می مونه Ronaldiniho's Avatar
    تاريخ عضويت
    Feb 2005
    محل سكونت
    تهران
    پست ها
    430

    پيش فرض

    قلب به دنبال موس
    توجه :عكس خود را وارد كنيد

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

  6. #136
    اگه نباشه جاش خالی می مونه Ronaldiniho's Avatar
    تاريخ عضويت
    Feb 2005
    محل سكونت
    تهران
    پست ها
    430

    پيش فرض

    محاسبه زماني كه كاربر وارد صفحه شده

    <!-- End of Time Spent JavaScript -->
    <!-- This scripts tell your sites visitor how long they spent at the page. -->
    <!-- Instructions:
    1. Copy the coding into the HEAD of your HTML document
    2. Add the last code into the BODY of your HTML document -->
    <!-- Script supplied with CoffeeCup HTML Editor -->
    <!-- [ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ] -->
    <HEAD>

    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    startday = new Date();
    clockStart = startday.getTime();
    function initStopwatch() {
    var myTime = new Date();
    return((myTime.getTime() - clockStart)/1000);
    }
    function getSecs() {
    var tSecs = Math.round(initStopwatch());
    var iSecs = tSecs % 60;
    var iMins = Math.round((tSecs-30)/60);
    var sSecs ="" + ((iSecs > 9) ? iSecs : "0" + iSecs);
    var sMins ="" + ((iMins > 9) ? iMins : "0" + iMins);
    document.forms[0].timespent.value = sMins+":"+sSecs;
    window.setTimeout('getSecs()',1000);
    }
    // End -->
    </script>


    <BODY onLoad="window.setTimeout('getSecs()',1)">

    <CENTER>
    <FORM>
    <FONT SIZE="2" FACE="Arial">Time spent here: </FONT><input size=5 name=timespent>
    </FORM>
    </CENTER>



    <!-- End of Time Spent JavaScript -->

  7. #137
    اگه نباشه جاش خالی می مونه Ronaldiniho's Avatar
    تاريخ عضويت
    Feb 2005
    محل سكونت
    تهران
    پست ها
    430

    پيش فرض

    دريافت نام كاربر و خوشامد گويي به او

    <!-- Start of Hello Visitor JavaScript-->
    <!-- DESCRIPTION: This will ask the user for his/her name, then tell them WELCOME.

    INSTRUCTIONS: Place this script below the BODY tag, before you start the content of your page.

    FUNCTIONALITY: Works in both Netscape and IE.
    -->
    <SCRIPT LANGUAGE="JavaScript">
    //Modified by CoffeeCup Software
    //This code is Copyright (c) 1998 CoffeeCup Software
    //All rights reserved. License is granted to a single user to
    //reuse this code on a personal or business Web Site.
    <!--
    {
    var name = prompt ('Your name','');
    var color = prompt ('Color name','');
    document.write("<CENTER><FONT FACE=------,VERDANA COLOR="+color+" SIZE=5>Welcome To Web Designer "+name+".</FONT><HR NOSHADE WIDTH=450></CENTER><P>")
    }
    //-->
    </SCRIPT>
    <!-- End of Hello Visitor JavaScript -->

  8. #138
    اگه نباشه جاش خالی می مونه Ronaldiniho's Avatar
    تاريخ عضويت
    Feb 2005
    محل سكونت
    تهران
    پست ها
    430

    پيش فرض

    اينم يه ----- شكن قوي

    <body style="text-align: center" bgcolor="#000000">

    <table border="1" cellspacing="1" width="27%" height="135">
    <tr>
    <td width="100%" height="130">
    <div align="center">
    <table border="4" cellspacing="0" width="506" height="80" bordercolorlight="#808080" bordercolordark="#C0C0C0" bgcolor="#C0C0C0" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0">
    <tr>
    <td width="566" height="127" align="center"><form method="get" action="http://colorfilter.wickline.org/index.cgi" enctype="application/x-www-form-urlencoded">

    <input type="hidden" id="s0" name="s" value="1" />
    <input type="hidden" id="r0" name="r" value="" />

    <p dir="ltr">
    <label for="u" title="user-speciied URL of resource to be filtered"><font face="Comic Sans MS">
    <input id="u" name="u" type="text" size="45" value="http://.com"/></font></label><font face="Comic Sans MS"> <span lang="fa">
    </span>
    </font><span lang="fa"><font face="Tahoma" size="2">:آدرس سایت
    فیلتر شده </font></span><font face="Comic Sans MS" size="2"><br />
    </font>
    <label for="t" title="Color filter to be applied">
    <font face="Comic Sans MS"><select id="t" name="t"><option value="p" selected="selected">
    protanopia (red/green color blindness; no red cones)</option>
    <option value="d">deutanopia (red/green color blindness; no green cones)</option>
    <option value="t">tritanopia (blue/yellow color blindness; no blue cones)</option>
    <option value="m">grayscale/achromatopsia (quick check for all forms of
    colorblindness)</option>
    <option value="a">atypical achromatopsia (low cone function; cone monochromat)</option>
    <option value="o">protanomaly (anomalous red cones)</option>
    <option value="c">deutanomaly (anomalous green cones)</option>
    <option value="u">tritanomaly (anomalous blue cones)</option>
    <option value="k">coverage test in black (highlight filter limitations)</option>
    <option value="q">coverage test in white (highlight filter limitations)</option>
    <option value="g">coverage test in gray (highlight filter limitations)</option></select></font></label><font face="Comic Sans MS" size="2">
    </font>
    <font size="2" face="Tahoma"><span lang="fa">:نوع فیلتر</span></font><font size="2" face="Comic Sans MS"><br />
    <span lang="fa">
    </span></font><font face="Comic Sans MS"><input type="submit" value=" کلیک کن " style="color: black; font-family: Tahoma" tabindex="10" name="loghman" /></font><font size="2" face="Comic Sans MS"><span lang="fa"> </span> </font></p>

    </form>
    </td>
    </tr>
    </table>
    </div>
    </td>
    </tr>
    </table>
    <p align="center"> </p>

  9. #139
    Banned K053_LSH_KV90's Avatar
    تاريخ عضويت
    May 2005
    محل سكونت
    Backdo0rs
    پست ها
    1,407

    پيش فرض

    خوب حالا نوبت منه که یه چیزی رو کنم
    ADVANCED HTML 0.1 EN
    به زودی فارسی فارسیش می کنم.
    [ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ] HTML.rar

  10. #140
    Banned K053_LSH_KV90's Avatar
    تاريخ عضويت
    May 2005
    محل سكونت
    Backdo0rs
    پست ها
    1,407

    پيش فرض

    پس وورد هم اینه
    p30worldisthebest

Thread Information

Users Browsing this Thread

هم اکنون 1 کاربر در حال مشاهده این تاپیک میباشد. (0 کاربر عضو شده و 1 مهمان)

User Tag List

قوانين ايجاد تاپيک در انجمن

  • شما نمی توانید تاپیک ایحاد کنید
  • شما نمی توانید پاسخی ارسال کنید
  • شما نمی توانید فایل پیوست کنید
  • شما نمی توانید پاسخ خود را ویرایش کنید
  •