دوست عزیز، به سایت علمی نخبگان جوان خوش آمدید

مشاهده این پیام به این معنی است که شما در سایت عضو نیستید، لطفا در صورت تمایل جهت عضویت در سایت علمی نخبگان جوان اینجا کلیک کنید.

توجه داشته باشید، در صورتی که عضو سایت نباشید نمی توانید از تمامی امکانات و خدمات سایت استفاده کنید.
صفحه 2 از 9 نخستنخست 123456789 آخرینآخرین
نمایش نتایج: از شماره 11 تا 20 , از مجموع 87

موضوع: کدهای جاوا اسکریپ

  1. #11
    دوست آشنا
    رشته تحصیلی
    کارشناسی کامپیوتر نرم افزار
    نوشته ها
    1,167
    ارسال تشکر
    2,113
    دریافت تشکر: 2,967
    قدرت امتیاز دهی
    44
    Array

    پیش فرض پاسخ : کدهای جاوا اسکریپ

    کد شماره ی 11 کد منوی کشویی لینک که با کلیک بلافاصله وارد لینک شود

    کد:
    <a href='http://www.kkrcity.com' target='_blank' ><img src='http://www.kkrcity.com/logo.gif' alt='بزرگترین سایت جاوا اسکریپت ایران ' width='100' height='40' border='0'>
    <!-- ClickJump LinkBox      Change the VALUES to your links! -->
    <!-- When the User selects an item, it will automatically jump to that link. -->
    <CENTER>
    <FONT FACE="VERDANA, ARIAL">Select an item:</FONT><BR>
    <FORM>
    <SELECT NAME="clicklist" onChange="top.location.href=this.form.clicklist.options[this.form.clicklist.selectedIndex].value">
    <OPTION selected>
    Click Here
    <OPTION VALUE="http://www.khafankadeh.7p.com/">Webloger Website
    <OPTION VALUE="http://www.netscape.com">Netscape
    <OPTION VALUE="http://www.microsoft.com">Microsoft
    <OPTION VALUE="http://www.infoseek.com">Infoseek
    </SELECT><P>
    </FORM>
    </CENTER>
    uody

  2. #12
    دوست آشنا
    رشته تحصیلی
    کارشناسی کامپیوتر نرم افزار
    نوشته ها
    1,167
    ارسال تشکر
    2,113
    دریافت تشکر: 2,967
    قدرت امتیاز دهی
    44
    Array

    پیش فرض پاسخ : کدهای جاوا اسکریپ

    کد شماره ی12 کد منوی کشویی لینک که با اسکرول نیز وارد لینک می شود

    کد:
    <a href='http://www.kkrcity.com' target='_blank' ><img src='http://www.kkrcity.com/logo.gif' alt='بزرگترین سایت جاوا اسکریپت ایران ' width='100' height='40' border='0'>
    <!-- Start Of Drop Down Links Script -->
    <!-- Consolidate a bunch of links to a simple drop down menu -->
    <!-- Instructions: Just put this in your page where you want to display links. -->
    <!-- Script supplied with CoffeeCup HTML Editor -->
    <!--            www.khafankadeh.7p.com             -->
    <script language="JavaScript">
    
    function CC_go(form) {var myindex=form.dest.selectedIndex
    window.open(form.dest.options[myindex].value, target="_parent", "toolbar=yes,scrollbars=yes,location=yes"); }
    
    </script>
    
    <form name="CC_LinkForm">
    <select name="dest" SIZE=1>
    <option selected value="">Places to go
    <option value="http://www.webloger.5u.com/">Webloger Website
    <option value="http://home.cnet.com/">CNET
    <option value="http://www.tucows.com">Tucows
    </select>
    <P>
    <input type="button" value="Link Me!" onClick="CC_go(this.form)">
    </form>
    
    <!-- End Of Drop Down Links Script -->
    uody

  3. #13
    دوست آشنا
    رشته تحصیلی
    کارشناسی کامپیوتر نرم افزار
    نوشته ها
    1,167
    ارسال تشکر
    2,113
    دریافت تشکر: 2,967
    قدرت امتیاز دهی
    44
    Array

    پیش فرض پاسخ : کدهای جاوا اسکریپ

    کد شماره ی 13 کد منوی کشوی لینک پس از انتخاب و زدن دکمه وارد لینک شود

    کد:
    <a href='http://www.kkrcity.com' target='_blank' ><img src='http://www.kkrcity.com/logo.gif' alt='بزرگترین سایت جاوا اسکریپت ایران ' width='100' height='40' border='0'>
    <!-- Start Of Drop Down Box Scroll Script -->
    <!-- When you make a selection from the list, all the choices scroll -->
    <!-- Instructions: Just put this script anywhere on your webpage where you want cool links.  -->
    <!-- Does not display in IE -->
    <center>
    <SCRIPT LANGUAGE="JavaScript">
    
    <!-- 
    var sid="mitnamdliw_wildmantim";
    
    function selectaplace(form) { 
       var appname= navigator.appName;             
       var appversion=parseInt(navigator.appVersion);
    
             if (appname == "Netscape" && appversion >= 3){
    
            var formindex=form.select1.selectedIndex;
            var storage=form.select1.options[formindex].text;
            if (form.select1.options[formindex].value != "none") {
            var msg=storage+"                        You are now being teleported to -> "+storage;
                    for (var spot=0;spot<msg.length-storage.length;spot++) {
                    var x=msg.substring(spot,msg.length);
                    form.select1.options[formindex].text=x;
                    for(var d=0;d<150;d++) { };
                    }   
    
    document.location=form.select1.options[formindex].value; 
    
                    form.select1[formindex].text=storage;
            } else  {
                    form.select1[formindex].text="Not a real option!";
                    for(var d=0;d<1250;d++) { };
                    form.select1[formindex].text=storage;
            }
    }
    
            else {
     
            var formindex=form.select1.selectedIndex;
            
    document.location=form.select1.options[formindex].value; 
    } }
    function makeMyMenu() {
       document.write ('<form><select name="select1" onChange="selectaplace(this.form)" size=1>');
       document.write ('<option value=http://www.khafankadeh.7p.com>khafan Website');
       document.write ('<option value=http://www.andyart.com>Andy Art');
       document.write ('<option value=http://www.cnet.com>CNET');
       document.write ('<option value=http://www.tucows.com>Tucows');
       document.write ('<option value=http://www.winzip.com>WinZIP');
       document.write ('</select>');
       document.write ('</form>');
    }
    while(sid!="mitnamdliw_wildmantim"){};
                    makeMyMenu();
    //-->
    
    </SCRIPT>
    </center>
    <!-- END OF SCRIPT -->
    <!/SCRIPT>
    uody

  4. #14
    دوست آشنا
    رشته تحصیلی
    کارشناسی کامپیوتر نرم افزار
    نوشته ها
    1,167
    ارسال تشکر
    2,113
    دریافت تشکر: 2,967
    قدرت امتیاز دهی
    44
    Array

    پیش فرض پاسخ : کدهای جاوا اسکریپ

    کد شماره ی 14 کد یک منو بسیار زیبا

    کد:
    <a href='http://www.kkrcity.com' target='_blank' ><img src='http://www.kkrcity.com/logo.gif' alt='بزرگترین سایت جاوا اسکریپت ایران ' width='100' height='40' border='0'>
    <!-- START OF Drop Down DHTML -->
    
    <!-- SUMMARY BRIEFS
    	This DHTML script will create a drop down link box out of
    	an ordinary link.  VERY COOL!!!!
    
    	The top portion of this script goes above the <BODY> tag.
    	The second portion goes where you want the drop down link
    	box to be.
    -->
    
    
    
    
    <style>
    <!--
    #wrapper{
    position:relative;
    height:30px
    }
    
    #wrapper2{
    position:absolute
    }
    
    #coffeemenu03{
    filter:revealTrans(Duration=1.5,Transition=12)
    visibility:hide
    }
    
    
    -->
    </style></HEAD>
    
    <BODY>
    
    <ilayer id="coffeemenu01" height=35px>
    <layer id="coffeemenu02" visibility=show>
    <span id="wrapper">
    <span id="wrapper2" onClick="dropit2();event.cancelBubble=true;return false">
    <font face="Verdana"><b><a href="notthisbrowser.html">Click Here To Navigate</a></b></font>
    </span>
    </span>
    </layer>
    </ilayer>
    
    <script language="JavaScript1.2">
    
    
    var enableeffect=true
    
    var selection=new Array()
    selection[0]='<font face="ARIAL BLACK"><a href="http://www.webloger.5u.com">Order Our Stuff</a><br>'
    selection[1]='<a href="http://www.webloger.5u.com">Contact Us via E-mail</a><br>'
    selection[2]='<a href="http://www.webloger.5u.com">Help With Our Items</a><br>'
    selection[3]='<a href="http://www.webloger.5u.com">Products We Have</a><br>'
    selection[4]='<a href="http://www.webloger.5u.com">Services We Offer</a><br></font>'
    
    if (document.layers)
    document.coffeemenu01.document.coffeemenu02.visibility='show'
    
    function dropit2(){
    if (document.all){
    coffeemenu03.style.left=document.body.scrollLeft+event.clientX-event.offsetX
    coffeemenu03.style.top=document.body.scrollTop+event.clientY-event.offsetY+18
    if (coffeemenu03.style.visibility=="hidden"){
    if (enableeffect)
    coffeemenu03.filters.revealTrans.apply()
    coffeemenu03.style.visibility="visible"
    if (enableeffect)
    coffeemenu03.filters.revealTrans.play()
    }
    else{
    hidemenu()
    }
    }
    }
    
    function dropit(e){
    if (document.coffeemenu03.visibility=="hide")
    document.coffeemenu03.visibility="show"
    else
    document.coffeemenu03.visibility="hide"
    document.coffeemenu03.left=e.pageX-e.layerX
    document.coffeemenu03.top=e.pageY-e.layerY+19
    return false
    }
    
    function hidemenu(){
    if (enableeffect)
    coffeemenu03.filters.revealTrans.stop()
    coffeemenu03.style.visibility="hidden"
    }
    
    function hidemenu2(){
    document.coffeemenu03.visibility="hide"
    }
    
    if (document.layers){
    document.coffeemenu01.document.coffeemenu02.captureEvents(Event.CLICK)
    document.coffeemenu01.document.coffeemenu02.onclick=dropit
    }
    else if (document.all)
    document.body.onclick=hidemenu
    
    </script>
    
    <div id="coffeemenu03" style="position:absolute;left:0;top:0;layer-background-color:#C0C0C0;background-color:#C0C0C0;width:200;visibility:hidden;border:2px solid black;padding:0px">
    <script language="JavaScript1.2">
    if (document.all)
    coffeemenu03.style.padding='4px'
    for (i=0;i<selection.length;i++)
    document.write(selection[i])
    </script>
    </div>
    
    <script language="JavaScript1.2">
    if (document.layers){
    document.coffeemenu03.captureEvents(Event.CLICK)
    document.coffeemenu03.onclick=hidemenu2
    }
    </script>
    
    <!-- END OF Drop Down DHTML -->
    uody

  5. #15
    دوست آشنا
    رشته تحصیلی
    کارشناسی کامپیوتر نرم افزار
    نوشته ها
    1,167
    ارسال تشکر
    2,113
    دریافت تشکر: 2,967
    قدرت امتیاز دهی
    44
    Array

    پیش فرض پاسخ : کدهای جاوا اسکریپ

    کد شماره ی 15 کد نمایش پیام به صورت افکت

    کد:
    <a href='http://www.kkrcity.com' target='_blank' ><img src='http://www.kkrcity.com/logo.gif' alt='بزرگترین سایت جاوا اسکریپت ایران ' width='100' height='40' border='0'>
    <!-- START OF Message Reader DHTML -->
    
    <!-- SUMMARY BRIEFS
    
    	This DHTML script will cycle through 4 different text links.
    	You can adjust the text and links below to meet your webpage.
    	
         IMPORTANT
    
    	Make suer that this body tag is included in your webpage.  It
    	activates the Message Reader.  
    -->
    
    <body onload="if (document.all||document.layers) {regenerate2();update()}">
    
    <style>
    <!--
    #msgline{
    position:relative;
    layer-background-color:black;
    width:400;
    height:12;
    }
    
    #msgtext{
    background-color:black;
    position:absolute;
    border: 1px solid black;
    width:400;
    height:12;
    
    }
    
    
    .msgtextfont{
    font:bold 16px Arial;
    postition:absolute;
    left:5px;
    text-decoration:none;
    color:white;
    }
    
    .msgtextfont a{
    color:white;
    text-decoration:none;
    }
    -->
    </style>
    <div id="msgline">
    <div id="msgtext" class="msgtextfont">Starting Messages...</div>
    </div>
    
    <script language="JavaScript1.2">
    
    var speed=4000
    var news=new Array()
    news[0]="<a href='http://www.khafankadeh.7p.com'>First line of text....</a>"
    news[1]="<a href='http://www.mahmood.7p.com'>Second line of text....</a>"
    news[2]="<a href='http://www.andisheh.7p.com'>Third line of text....</a>"
    news[3]="<a href='http://www.javakhafan.7p.com'>Add as many as you want....</a>"
    
    i=0
    if (document.all)
    tickerobject=document.all.msgtext.style
    else
    tickerobject=document.msgline.document
    function regenerate(){
    window.location.reload()
    }
    function regenerate2(){
    if (document.layers)
    setTimeout("window.onresize=regenerate",450)
    }
    
    function update(){
     BgFade(0xff,0xff,0xff, 0x00,0x00,0x00,10);
    if (document.layers){
    document.msgline.document.msgtext.document.write('<span class="msgtextfont">'+news[i]+'</span>')
    document.msgline.document.msgtext.document.close()
    }
    else 
    document.all.msgtext.innerHTML=news[i]
    
    if (i<news.length-1)
    i++
    else
    i=0
    setTimeout("update()",speed)
    }
    
     function BgFade(red1, grn1, blu1, red2,
     grn2, blu2, steps) {
     sred = red1; sgrn = grn1; sblu = blu1; 
     ered = red2; egrn = grn2; eblu = blu2; 
     inc = steps; 
     step = 0; 
     MsgDither();
     }
     function MsgDither() {
     var epct = step/inc; 
     var spct = 1 - epct; 
     if (document.layers)
     tickerobject.bgColor =
     Math.floor(sred * spct + ered *
     epct)*256*256 +
     Math.floor(sgrn * spct + egrn * epct)*256 +
     Math.floor(sblu * spct + eblu * epct); 
     else
     tickerobject.backgroundColor=
     Math.floor(sred * spct + ered *
     epct)*256*256 +
     Math.floor(sgrn * spct + egrn * epct)*256 +
     Math.floor(sblu * spct + eblu * epct); 
     if ( step < inc ) {
     setTimeout('MsgDither()',50); 
     }
     step++;
     }
    
    </script>
    
    <!-- END OF Message Reader DHTML -->
    uody

  6. #16
    دوست آشنا
    رشته تحصیلی
    کارشناسی کامپیوتر نرم افزار
    نوشته ها
    1,167
    ارسال تشکر
    2,113
    دریافت تشکر: 2,967
    قدرت امتیاز دهی
    44
    Array

    پیش فرض پاسخ : کدهای جاوا اسکریپ

    کدشماره ی 16 کد به حرکت در آوردن اسکرول لاک از بالا به پایین

    کد:
    <a href='http://www.kkrcity.com' target='_blank' ><img src='http://www.kkrcity.com/logo.gif' alt='بزرگترین سایت جاوا اسکریپت ایران ' width='100' height='40' border='0'>
    <!-- START OF Rolling Credits DHTML -->
    
    <!-- SUMMARY BRIEFS
    	This example shows how you can create a webpage
    	that scrolls up.  The webpage must be long (vertically)
    	in order for the effect to work.
    -->
    
    <SCRIPT LANGUAGE="JavaScript">
    <!--
            var position = 0;
    function scroller() {
            if (position != 320) {
                    position++;
                    scroll(0,position);
                    clearTimeout(timer);
                    var timer = setTimeout("scroller()",3); timer;
            }
            else
                     {
               location.replace("#");
            }
    }
    // -->
    </SCRIPT>
    </HEAD>
    
    <BODY onload="scroller()">
    <CENTER>
    <font face="VERDANA, ARIAL" size="5" color=804040>Rolling Credits</font><p>
    <font face="VERDANA, ARIAL" size="4">This script allows you to:
    <HR WIDTH=350 NOSHADE>
    <P>
    www.khafankadeh.7p.com<P>
    Place<P> text<P> descriptions<p>
    of <P>any <P>sort<p>
    and it will <P>scroll up<p>
    the page <P>until its done.<p>
    <P>
    You can even<P> 
    make <A HREF="http://www.webloger.5u.com/">Links.</A><p>
    Or<P>
    use<P>
    images.<p>
    <p></font>
    </CENTER>
    
    <!-- END OF Rolling Credits DHTML -->
    uody

  7. #17
    دوست آشنا
    رشته تحصیلی
    کارشناسی کامپیوتر نرم افزار
    نوشته ها
    1,167
    ارسال تشکر
    2,113
    دریافت تشکر: 2,967
    قدرت امتیاز دهی
    44
    Array

    پیش فرض پاسخ : کدهای جاوا اسکریپ

    کد شماره ی 17 کدنمایش لینک به صورت منویی

    کد:
    <a href='http://www.kkrcity.com' target='_blank' ><img src='http://www.kkrcity.com/logo.gif' alt='بزرگترین سایت جاوا اسکریپت ایران ' width='100' height='40' border='0'>
    <!-- START OF Slide Out DHTML -->
    
    <!-- SUMMARY BRIEFS
    
    	This DHTML script is an entire webpage by itself.  Open it
    	up into a blank webpage and try it out.  You can then add
    	your content around it.  Basically, you can have 5 different
    	"layers" which switch when the user clicks on the appropriate
    	links.  You can adjust the links, colors, and text below.
    
         IMPORTANT
    
    	This example has an image.  It is found in the CoffeeCup
    	Software folder on your hard drive.
    -->
    
    
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    
    
    
    n = (document.layers) ? 1:0
    ie = (document.all) ? 1:0
    
    function init() {
    	slideoutActive = 0
    	if (n) {
    		slideout1 = document.slideoutInterface.document.slideoutContent.document.slideoutContent1
    		slideout2 = document.slideoutInterface.document.slideoutContent.document.slideoutContent2
    		slideout3 = document.slideoutInterface.document.slideoutContent.document.slideoutContent3
    		slideout4 = document.slideoutInterface.document.slideoutContent.document.slideoutContent4
                    slideout5 = document.slideoutInterface.document.slideoutContent.document.slideoutContent5
    	}
    
    	if (ie) {
    		slideout1 = slideoutContent1.style
    		slideout2 = slideoutContent2.style
    		slideout3 = slideoutContent3.style
    		slideout4 = slideoutContent4.style
                    slideout5 = slideoutContent5.style
    	}
    	slideoutShown = slideout1		
    	slideoutShown.xpos = 0
    	slideoutNew = "none"			
    	slideoutNew.xpos = -285
    }
    
    
    function slideout(which) {
    	if (!slideoutActive && slideoutShown != which) {
    		slideoutActive = 1  
    		slideoutNew = which
    		slideoutNew.xpos = -285
    		slideoutLeft()
    	}
    }
    
    
    function slideoutLeft() {
    	if (slideoutShown.xpos > -285) {
    		slideoutShown.xpos -= 15
    		slideoutShown.left = slideoutShown.xpos
    		setTimeout("slideoutLeft()",30)
    	}
    	else {
    		hide(slideoutShown)
    		show(slideoutNew)
    		setTimeout("slideoutRight()",50)
    	}
    }
    
    
    function slideoutRight() {
    	if (slideoutNew.xpos < 0) {
    		slideoutNew.xpos += 15
    		slideoutNew.left = slideoutNew.xpos
    		setTimeout("slideoutRight()",30)
    	}
    	else {
    		slideoutShown = slideoutNew
    		slideoutActive = 0  // stops the sequence
    	}
    }
    
    
    function show(showobj) {
    	if (n) showobj.visibility = "show"
    	if (ie) showobj.visibility = "visible"
    }
    function hide(hideobj) {
    	if (n) hideobj.visibility = "hide"
    	if (ie) hideobj.visibility = "hidden"
    }
    
    //-->
    </SCRIPT>
    <STYLE TYPE="text/css">
    <!--
    A {color:#000000; font-family:'Arial'; font-weight:bold; font-size:10pt; text-decoration:none; line-height:20pt;}
    STRONG {font-family:'Arial'; font-size:15pt; font-weight:bold; line-height:25pt;}
    P {font-family:'Arial'; font-size:10pt; line-height:13pt;}
    TD {font-family:'Arial'; font-size:10pt; line-height:13pt;}
    
    #slideoutInterface {position:absolute; left:50; top:50; width:400; height:250; clip:rect(0,400,250,0); background-color:#000000; layer-background-color:#000000; visibility:visible;}
    #slideoutSidebar1 {position:absolute; left:5; top:5; width:100; height:30; clip:rect(0,100,30,0); background-color:#9797FF; layer-background-color:#9797FF;}
    #slideoutSidebar2 {position:absolute; left:5; top:40; width:100; height:30; clip:rect(0,100,30,0); background-color:#FFFF00; layer-background-color:#FFFF00;}
    #slideoutSidebar3 {position:absolute; left:5; top:75; width:100; height:30; clip:rect(0,100,30,0); background-color:#FF80C0; layer-background-color:#FF80C0;}
    #slideoutSidebar4 {position:absolute; left:5; top:110; width:100; height:30; clip:rect(0,100,30,0); background-color:#00FF80; layer-background-color:#00FF80;}
    #slideoutSidebar5 {position:absolute; left:5; top:145; width:100; height:30; clip:rect(0,100,30,0); background-color:#FF5353; layer-background-color:#FF5353;}
    
    #slideoutContent {position:absolute; left:110; top:5; width:285; height:240; clip:rect(0,285,240,0); background-color:#000000; layer-background-color:#000000;}
    #slideoutContent1 {position:absolute; left:0; top:0; width:285; height:240; clip:rect(0,285,240,0); background-color:#DEDEDE; layer-background-color:#DEDEDE; visibility:visible;}
    #slideoutContent2 {position:absolute; left:-285; top:0; width:285; height:240; clip:rect(0,285,240,0); background-color:#DEDEDE; layer-background-color:#DEDEDE; visibility:hidden;}
    #slideoutContent3 {position:absolute; left:-285; top:0; width:285; height:240; clip:rect(0,285,240,0); background-color:#DEDEDE; layer-background-color:#DEDEDE; visibility:hidden;}
    #slideoutContent4 {position:absolute; left:-285; top:0; width:285; height:240; clip:rect(0,285,240,0); background-color:#DEDEDE; layer-background-color:#DEDEDE; visibility:hidden;}
    #slideoutContent5 {position:absolute; left:-285; top:0; width:285; height:240; clip:rect(0,285,240,0); background-color:#DEDEDE; layer-background-color:#DEDEDE; visibility:hidden;}
    
    //-->
    </STYLE>
    </HEAD>
    
    <BODY BGCOLOR="#FFFFFF" TEXT="#000000" onLoad="init()">
    
    <DIV ID="slideoutInterface">
    
    <DIV ID="slideoutSidebar1"><P ALIGN=CENTER><A HREF="javascript:slideout(slideout1)">Contact Us</A></P></DIV>
    <DIV ID="slideoutSidebar2"><P ALIGN=CENTER><A HREF="javascript:slideout(slideout2)">Help</A></P></DIV>
    <DIV ID="slideoutSidebar3"><P ALIGN=CENTER><A HREF="javascript:slideout(slideout3)">Services</A></P></DIV>
    <DIV ID="slideoutSidebar4"><P ALIGN=CENTER><A HREF="javascript:slideout(slideout4)">Products</A></P></DIV>
    <DIV ID="slideoutSidebar5"><P ALIGN=CENTER><A HREF="javascript:slideout(slideout5)">Order</A></P></DIV>
    
    <DIV ID="slideoutContent">
    
    <DIV ID="slideoutContent1">
    <P ALIGN="CENTER"><STRONG>Contact Us</STRONG>
    <P>
    <TABLE BORDER=0 WIDTH=275><TD>
    You can add <A HREF="http://www.webloger.5u.com"><FONT COLOR=BLUE>Links</FONT></A>.
    <P>
    Or images: <IMG SRC="smile.gif" BORDER=0 HEIGHT=11 WIDTH=11>
    <P>
    Or just use text to explain what you have or what you are doing.
    </TD></TABLE>
    </P>
    </DIV>
    
    <DIV ID="slideoutContent2">
    <P ALIGN="CENTER"><STRONG>Help</STRONG>
    <P>
    <TABLE BORDER=0 WIDTH=275><TD>
    You can add <A HREF="http://www.webloger.5u.com"><FONT COLOR=BLUE>Links</FONT></A>.
    <P>
    Or images: <IMG SRC="smile.gif" BORDER=0 HEIGHT=11 WIDTH=11>
    <P>
    Or just use text to explain what you have or what you are doing.
    
    </TD></TABLE>
    </P>
    </DIV>
    
    <DIV ID="slideoutContent3">
    <P ALIGN="CENTER"><STRONG>Services</STRONG>
    <P>
    <TABLE BORDER=0 WIDTH=275><TD>
    You can add <A HREF="http://www.webloger.5u.com"><FONT COLOR=BLUE>Links</FONT></A>.
    <P>
    Or images: <IMG SRC="smile.gif" BORDER=0 HEIGHT=11 WIDTH=11>
    <P>
    Or just use text to explain what you have or what you are doing.
    
    </TD></TABLE>
    </P>
    </DIV>
    
    <DIV ID="slideoutContent4">
    <P ALIGN="CENTER"><STRONG>Products</STRONG>
    <P>
    <TABLE BORDER=0 WIDTH=275><TD>
    You can add <A HREF="http://www.webloger.5u.com"><FONT COLOR=BLUE>Links</FONT></A>.
    <P>
    Or images: <IMG SRC="smile.gif" BORDER=0 HEIGHT=11 WIDTH=11>
    <P>
    Or just use text to explain what you have or what you are doing.
    
    </TD></TABLE>
    </P>
    </DIV>
    
    
    <DIV ID="slideoutContent5">
    <P ALIGN="CENTER"><STRONG>Order</STRONG>
    <P>
    <TABLE BORDER=0 WIDTH=275><TD>
    You can add <A HREF="http://www.webloger.5u.com"><FONT COLOR=BLUE>Links</FONT></A>.
    <P>
    Or images: <IMG SRC="smile.gif" BORDER=0 HEIGHT=11 WIDTH=11>
    <P>
    Or just use text to explain what you have or what you are doing.
    
    </TD></TABLE>
    </P>
    </DIV>
    
    </DIV>
    
    </BODY>
    </HTML>
    
    <!-- END OF Slide Out DHTML -->
    uody

  8. #18
    دوست آشنا
    رشته تحصیلی
    کارشناسی کامپیوتر نرم افزار
    نوشته ها
    1,167
    ارسال تشکر
    2,113
    دریافت تشکر: 2,967
    قدرت امتیاز دهی
    44
    Array

    پیش فرض پاسخ : کدهای جاوا اسکریپ

    کد شماره ی 18 کد نمایش متن به صورت افکت

    کد:
    <a href='http://www.kkrcity.com' target='_blank' ><img src='http://www.kkrcity.com/logo.gif' alt='بزرگترین سایت جاوا اسکریپت ایران ' width='100' height='40' border='0'>
    <!-- START OF Zoom Message DHTML -->
    
    <!-- SUMMARY BRIEFS
    	This example shows how you can create a webpage
    	that displays lines of text that appear to be 
    	flying out of the webpage.  Our example has an image.
    
         IMPORTANT
    	The image used in this example can be found in the 
    	CoffeeCup Software folder.  You do not need an image
    	for it to work.
    -->
    
    
    <!-- Style Sheet created with the CoffeeCup StyleSheet Maker++ -->
    <!-- http://www.coffeecup.com -->
    <style type="text/css">
    body
    	{
    	background-color:#FFFFFF; 
    	font-family: Arial; 
    	font-size:10pt; 
    	}
    </style>
    <script>
    //<!--Change this text-->
    	text=new Array('www.','khafankade','.7p','.com','The Best Website')
    
    //<!--This is the number of words in your message-->
    	var numText=5
    
    //<!--These are the colors the last word will fade to.  The first color is the main color.-->
    	color=new Array('#000000','#2F2F2F','#4F4F4F','#7F7F7F','#408080')
    
    //<!--This is the total number of colors from above.-->
    	var numColors=5
    
    //<!--This is the size you want the zoom to end at.-->
    	var endSize=70
    
    //<!--This is the speed you want it to zoom in.-->
    	var Zspeed=30
    
    //<!--This is the speed the colors will fade.-->
    	var Cspeed=200
    
    //<!--This is the font of the fade in message.-->
    	var font='Arial Black'
    
    //<!--This will allow you to have the message stay or go.  True will make it go.
    //      False will make it stay.-->
    	var hide=false
    
    var size=10
    var gonum=0
    var ie, n;
    if (document.all) {
    		n=0
    		ie=1
    		zoomText='document.all.zoom.innerText=text[num]'
    		zoomSize='document.all.zoom.style.fontSize=size'
    		closeIt=""
    		fadeColor="document.all.zoom.style.color=color[num]"
    	}
    if (document.layers) {
    		n=1;ie=0
    		zoomText=""
    		zoomSize="document.zoom.document.write('<p align=\"center\" style=\"font-family:'+font+'; font-size:'+size+'px; color:'+color[0]+'\">'+text[num]+'</p>')"
    		closeIt="document.zoom.document.close()"
    		fadeColor="document.zoom.document.write('<p align=\"center\" style=\"font-family:'+font+'; font-size:'+endSize+'px; color:'+color[num]+'\">'+text[numText-1]+'</p>')"
    	}
    function zoom(num,fn){
    	if (size<endSize){
    		eval(zoomText)
    		eval(zoomSize)
    		eval(closeIt)
       		size+=5;
    		setTimeout("zoom("+num+",'"+fn+"')",Zspeed)
    	}else{
    	 	eval(fn);
    	}
    }
    function fadeIt(num){
    	if (num<numColors){
    		eval(fadeColor)
    		eval(closeIt)
       		num+=1;
    		setTimeout("fadeIt("+num+")",Cspeed)
    	}else{
    		hideIt()
    	}
    }
    function hideIt(){
    	if(hide){
    		if(ie)document.all.zoom.style.visibility="hidden"
    		if(n)document.layers.zoom.visibility="hidden"
    	}
    }
    function init(){
    	if(ie){
    		document.all.zoom.style.color=color[0]
    		document.all.zoom.style.fontFamily=font
    	}
    	if(ie || n) go(0)	
    }
    function go(num){
    	gonum+=1
    	size=10
    	if(num<numText){
    		zoom(num,'go('+gonum+')')
    	}else{
    		fadeIt(0)
    	}
    }
    </script>
    </head>
    <body onload="init()" bgcolor="FFFFFF">
    <CENTER> </CENTER><P>
    <div id="zoom" align="center" style="position:absolute; top:150">
    </DIV>
    
    <!-- END OF Zoom Message DHTML -->
    uody

  9. #19
    دوست آشنا
    رشته تحصیلی
    کارشناسی کامپیوتر نرم افزار
    نوشته ها
    1,167
    ارسال تشکر
    2,113
    دریافت تشکر: 2,967
    قدرت امتیاز دهی
    44
    Array

    پیش فرض پاسخ : کدهای جاوا اسکریپ

    کد شماره ی 19 کد اضافه کردن صفحه به بوکمارک

    کد:
    <a href='http://www.kkrcity.com' target='_blank' ><img src='http://www.kkrcity.com/logo.gif' alt='بزرگترین سایت جاوا اسکریپت ایران ' width='100' height='40' border='0'>
    <!-- START OF Add Bookmark in IE DHTML -->
    
    <!-- SUMMARY BRIEF
    
    	This code will allow you to put a link on your
    	page that, when clicked, will add a URL to the
    	user's Favorites.
    
    	NOTE: This will only work for IE users. It will
    	NOT work for users using Netscape.
    
    	You can change the bookmark link and text in the
    	var bookmarkurl and var bookmarktitle attributes
    	below.
    
    	You can change the text of the actual link in the
    	<A HREF> code that you will place for your link
    	to appear in your page. It is located at the
    	bottom of this page.
    
    -->
    
    <!-- Put this code inside of your <HEAD> tag. -->
    
    
    <script language="JavaScript1.2">
    <!--
    
    var bookmarkurl="http://www.khafankadeh.7p.com/"
    var bookmarktitle="-=[ Webloger Web Site ]=-"
    
    function ccaddbookmark() {
    	if (document.all)
    	window.external.AddFavorite(bookmarkurl,bookmarktitle)
    }
    
    //-->
    </script>
    
    
    <!-- Put this code into your page wherever you want the link to be. -->
    
    
    <a href="javascript:ccaddbookmark()" target="_self">
    <font size="1" face="Arial">[ Add Webloger to your Favorites ]</font>
    </a>
    
    
    <!-- END OF Add Bookmark in IE DHTML -->
    uody

  10. #20
    دوست آشنا
    رشته تحصیلی
    کارشناسی کامپیوتر نرم افزار
    نوشته ها
    1,167
    ارسال تشکر
    2,113
    دریافت تشکر: 2,967
    قدرت امتیاز دهی
    44
    Array

    پیش فرض پاسخ : کدهای جاوا اسکریپ

    کد شماره ی 20 کد دو خط قرمز بسیار زیبا به دنبال موس

    کد:
    <a href='http://www.kkrcity.com' target='_blank' ><img src='http://www.kkrcity.com/logo.gif' alt='بزرگترین سایت جاوا اسکریپت ایران ' width='100' height='40' border='0'>
    <!-- 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 -->
    uody

صفحه 2 از 9 نخستنخست 123456789 آخرینآخرین

اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

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

موضوعات مشابه

  1. آموزش طراحی و کدنویسی وب سایت
    توسط Bad Sector در انجمن مقاله ها و آموزش های مربوط به برنامه نویسی
    پاسخ ها: 0
    آخرين نوشته: 7th February 2011, 10:52 PM
  2. آموزشی: مثال هایی از جاوا
    توسط ElaBel در انجمن برنامه نویسی تحت وب
    پاسخ ها: 0
    آخرين نوشته: 5th June 2010, 12:55 AM
  3. مجموعه ای از کدهای جاوا اسکریپت Collection of 3000 Java scripts
    توسط moji5 در انجمن برنامه نویسی تحت سیستم عامل
    پاسخ ها: 0
    آخرين نوشته: 10th April 2010, 12:25 PM
  4. تگ های هوشمند rfid در مقابل کدهای میله ای
    توسط بانوثریا در انجمن مقالات برق
    پاسخ ها: 0
    آخرين نوشته: 9th April 2010, 09:39 PM
  5. چرا جاوا زبانی جالب است؟
    توسط آبجی در انجمن برنامه نویسی تحت وب
    پاسخ ها: 0
    آخرين نوشته: 22nd February 2010, 12:26 AM

کلمات کلیدی این موضوع

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •