أحلى أحلام

مرحبا بكم أخي الزائر أختي الزائرة.في منتدى أحلى أحلام
المرجوا منكم التعريف بأنفسكم كي تدخلوا للمنتدى معنا.
إن لم يكن لديكم حساب بعد.
نتشرف بدعوتكم لإنشائه كي تساهموا معنا ولكم جزيل الشكر.
إدارة المنتدى

انضم إلى المنتدى ، فالأمر سريع وسهل

أحلى أحلام

مرحبا بكم أخي الزائر أختي الزائرة.في منتدى أحلى أحلام
المرجوا منكم التعريف بأنفسكم كي تدخلوا للمنتدى معنا.
إن لم يكن لديكم حساب بعد.
نتشرف بدعوتكم لإنشائه كي تساهموا معنا ولكم جزيل الشكر.
إدارة المنتدى

أحلى أحلام

هل تريد التفاعل مع هذه المساهمة؟ كل ما عليك هو إنشاء حساب جديد ببضع خطوات أو تسجيل الدخول للمتابعة.
أحلى أحلام

أهلا وسهلا بالعضو الجديد Omar Salman


شكري
التام لكل الأعضاء النشطين معنا...تقبلوا ودي
اااااا   أهلا وسهلا بكم وبجميع الزوار لمنتدانا أحلى أحلام شرفتم      وشكرا لكم

2 مشترك

    java script chapitre 6/2

    zahar
    zahar
    عضوة مميزة
    عضوة مميزة


    انثى عدد الرسائل : 147
    العمر : 37
    السٌّمعَة : 0
    تاريخ التسجيل : 28/01/2008

    رسالة java script chapitre 6/2

    مُساهمة من طرف zahar الثلاثاء فبراير 05, 2008 1:02 pm

    +6.5 De la belle écriture en Javascript...


    6.5.1 variable.big();



    L'emploi de .big() affichera la variable comme si elle était comprise entre les balises Html <BIG></BIG>.

    Les quatre instructions Javascript suivantes sont équivalentes :

    str="Something"; (str est une variable)

    document.write("<BIG>"+str+"</BIG>");

    document.write('<BIG>Something</BIG>');

    document.write(str.big());

    document.write("Something".big());



    6.5.2 variable.small();



    L'emploi de .small() affichera la variable comme si elle était comprise entre les balises Html <SMALL> </SMALL>.

    Les quatre instructions Javascript suivantes sont équivalentes :

    str="Something";

    document.write("<SMALL>"+str +"</SMALL>");

    document.write("<SMALL>Something" +"</SMALL>");

    document.write(str.small());

    document.write("Something".small());

    6.5.3 variable.blink();



    L'emploi de .blink() affichera la variable comme si elle était comprise entre les balises Html <BLINK></BLINK>. Pour rappel, cette balise (qui est par ailleurs vite ennuyeuse) n'est valable que sous Netscape 3 et plus.

    Les quatre instructions Javascript suivantes sont équivalentes :

    str="Something";

    document.write('<BLINK>'+str+'</BLINK>');

    document.write("<BLINK>Something</BLINK>");

    document.write(str.blink());

    document.write("Something".blink());



    6.5.4 variable.bold();



    L'emploi de .bold() affichera la variable comme si elle était comprise entre les balises Html <B></B>.

    Les quatre instructions Javascript suivantes sont équivalentes :

    str="Some words";

    document.write("<B>"+str+"</B>");

    document.write("<B>Some words</B>");

    document.write(str.bold());

    document.write("Some words".bold());

    6.5.5 variable.fixed();



    L'emploi de .fixed() affichera la variable comme si elle était comprise entre les balises Html <TT></TT>.

    Les quatre instructions Javascript suivantes sont équivalentes :

    str="Something";

    document.write("<TT>"+str+"</TT>");

    document.write("<TT>Something</TT>");

    document.write(str.fixed());

    document.write("Something".fixed());

    6.5.6 variable.italics();



    L'emploi de .italics() affichera la variable comme si elle était comprise entre les balises Html <I></I>.

    Les quatre instructions Javascript suivantes sont équivalentes :

    str="Something";

    document.write("<I>"+str+"</I>");

    document.write("<I>Something</I>");

    document.write(str.italics());

    document.write("Some word".italics());




    6.5.7 variable.fontcolor(color );



    L'emploi de .fontcolor(color) affichera la variable comme si elle était comprise entre les balises Html <FONT COLOR="color"> </FONT>.

    Les quatre instructions Javascript suivantes sont équivalentes :

    str1="Some words";

    str2="red";

    document.write("<FONT COLOR='red'>" +str1+"</FONT>");

    document.write("<FONT COLOR='red'>" +"Something</FONT>");

    document.write(str1.fontcolor(str2));

    document.write(str1.fontcolor("red"));

    6.5.8 variable.fontsize(x);



    L'emploi de .fontsize(x) affichera la variable comme si elle était comprise entre les balises Html <FONT SIZE="x"></FONT> où x est un nombre de 1 à 7 ou exprimé en plus ou en moins par rapport à 0 par exemple -2, -1, +1, +2.

    Les quatre instructions Javascript suivantes sont équivalentes :

    str="Something";

    x=3;

    document.write("<FONT SIZE=3>" +str+"</FONT>");

    document.write("<FONT SIZE=3>" +"Something</FONT>");

    document.write(str.fontsize(3));

    document.write(str.fontsize(x));


    6.5.9 variable.strike();





    L'emploi de .strike() affichera la variable comme si elle était comprise entre les balises Html

    <STRIKE></STRIKE>.

    Les quatre instructions Javascript suivantes sont équivalentes :

    str="Something";

    document.write("<STRIKE>"+str +"</STRIKE>");

    document.write("<STRIKE>Something" +"</STRIKE>");

    document.write(str.strike());

    document.write("Something".strike());

    6.5.10 variable.sub();



    L'emploi de .sub() affichera la variable comme si elle était comprise entre les balises Html <SUB> </SUB>.

    Les quatre instructions Javascript suivantes sont équivalentes :

    str="Something";

    document.write("<SUB>"+str+"</SUB>");

    document.write("<SUB>Something" +"</SUB>");

    document.write(str.sub());

    document.write("Something".sub());

    6.5.11 variable.sup();



    L'emploi de .sup() affichera la variable comme si elle était comprise entre les balises Html <SUP></SUB>.

    Les quatre instructions Javascript suivantes sont équivalentes :

    str="Something";

    document.write("<SUP>"+str+"</SUP>");

    document.write("<SUP>Something</SUP>");

    document.write(str.sup());

    document.write("Something".sup());

    +6.6 Les instructions de formatage de document



    Rappelons tout d'abord que ce qui suit est optionnel et que vous pouvez utiliser l'instruction document.write() de façon tout à fait classique.

    Soit document.write("
    6.6.1document.bgColor



    Cette instruction permet de spécifier la couleur d'arrière-plan d'un objet document. On peut employer le nom ou la valeur RGB de la couleur.

    document.bgColor="white";

    document.bgColor="#FFFFFF";

    6.6.2 document.fgColor



    Cette instruction permet de spécifier la couleur d'avant-plan (texte) d'un objet document. On peut employer le nom ou la valeur RGB de la couleur.

    document.fgColor="black";

    document.fgColor="#000000";

    6.6.3 document.alinkColor



    Cette instruction permet de spécifier la couleur d'un lien actif (après le clic de la souris mais avant de quitter le lien) d'un objet document. On peut employer le nom ou la valeur RGB de la couleur.

    document.alinkColor="white";

    document.alinkColor="#FFFFFF";

    6.6.4 document.linkColor



    Cette instruction permet de spécifier la couleur d'un hyperlien d'un objet document. On peut employer le nom ou la valeur RGB de la couleur.

    document.linkColor="white";

    document.linkColor="#FFFFFF";

    6.6.5 document.vlinkColor



    Cette instruction permet de spécifier la couleur d'un hyperlien déjà visité d'un objet document. On peut employer le nom ou la valeur RGB de la couleur.

    document.linkColor="white";

    document.linkColor="#FFFFFF";
    أحلام لبنان
    أحلام لبنان
    عضوة مميزة
    عضوة مميزة


    انثى عدد الرسائل : 1140
    العمر : 49
    العمل/الترفيه : محاسبة
    المزاج : الحمدلله بخير
    السٌّمعَة : 0
    تاريخ التسجيل : 18/12/2007

    الورقة الشخصية
    الطاقة: 10

    رسالة رد: java script chapitre 6/2

    مُساهمة من طرف أحلام لبنان الأربعاء فبراير 06, 2008 2:09 pm

    احلى زهر مشكووووورة والله لا يضيعلك تعب

    [ندعوك للتسجيل في المنتدى أو التعريف بنفسك لمعاينة هذه الصورة]

      الوقت/التاريخ الآن هو الأحد مايو 19, 2024 10:31 pm