FREE CODE Wednesday, 11.22.2017, 7:21 PM
Main | Registration | Login Welcome Guest | RSS
[ New messages · Members · Forum rules · Search · RSS ]
۞Forum Statistics۞
NEW TOPPIV
HOT TOPPIC
TOP MEMBERS
NEW MEMBERS
  • check code here Have(0) reviews faxuhi
  • Keywords meta Tags Have(0) reviews faxuhi
  • text box Have(0) reviews faxuhi
  • Page description Have(0) reviews faxuhi
  • marquee Have(0) reviews faxuhi
  • print your page Have(0) reviews faxuhi
  • choose your country Have(0) reviews faxuhi
  • check all - unchek all Have(0) reviews faxuhi
  • shadow text Have(0) reviews faxuhi
  • Beautiful text two Have(0) reviews faxuhi
  • Nice menu with java script <p1> Have(2) reviews faxuhi
  • Mouse Clock Have(1) reviews faxuhi
  • HTML table placeholder Have(0) reviews faxuhi
  • Html graphic bullets Have(0) reviews faxuhi
  • Different times of the world by the users choice from a list Have(0) reviews faxuhi
  • Mouseover Alert HTML Script Have(0) reviews faxuhi
  • Redirect to another page and link automatically to other pg Have(0) reviews faxuhi
  • Combo box link box to browse your website easily Have(0) reviews faxuhi
  • Message to user by clicking a button Have(0) reviews faxuhi
  • Background changing color effect Have(0) reviews faxuhi
  • faxuhi[189]Bài
  • mcsnagger0022[0]Bài
  • thinknoodles[0]Bài
  • karaganis888[0]Bài
  • faxuhi [189]Bài
  • mcsnagger0022 [0]Bài
  • thinknoodles [0]Bài
  • karaganis888 [0]Bài
  • Page 1 of 11
    Forum » Web Javascript » Effect on Text Size » Effect on Text Size
    Effect on Text Size
    faxuhiDate: Monday, 07.25.2011, 3:26 PM | Message # 1
    Colonel
    Group: Administrators
    Messages: 189
    Reputation: 0
    Status: Offline
    Code
    <SCRIPT LANGUAGE="JavaScript">

    <!-- Begin
    var speed = 50;
    var cycledelay = 2000;
    var maxsize = 28;

    var x = 0;
    var y = 0;
    var themessage, size;
    var esize = "</font>";

    function initArray() {
    this.length = initArray.arguments.length;
    for (var i = 0; i < this.length; i++) {
    this[i] = initArray.arguments[i];
    }
    }
    var themessage2 = new initArray(
    "welcome to",
    "javascriptfreecode.com",
    "free java codes",
    "Save Your Time"
    );
    if(navigator.appName == "Netscape")
    document.write('<layer id="wds"></layer><br>');
    if (navigator.appVersion.indexOf("MSIE") != -1)
    document.write('<span id="wds"></span><br>');
    function upwords(){
    themessage = themessage2[y];
    if (x < maxsize) {
    x++;
    setTimeout("upwords()",speed);
    }
    else setTimeout("downwords()",cycledelay);

    if(navigator.appName == "Netscape") {
    size = "<font point-size='"+x+"pt'>";
    document.wds.document.write(size+"<center>"+themessage+"</center>"+esize);
    document.wds.document.close();
    }
    if (navigator.appVersion.indexOf("MSIE") != -1){
    wds.innerHTML = "<center>"+themessage+"</center>";
    wds.style.fontSize=x+'px'
    }
    }
    function downwords(){
    if (x > 1) {
    x--;
    setTimeout("downwords()",speed);
    }
    else {
    setTimeout("upwords()",cycledelay);
    y++;
    if (y > themessage2.length - 1) y = 0;
    }
    if(navigator.appName == "Netscape") {
    size = "<font point-size='"+x+"pt'>";
    document.wds.document.write(size+"<center>"+themessage+"</center>"+esize);
    document.wds.document.close();
    }
    if (navigator.appVersion.indexOf("MSIE") != -1){
    wds.innerHTML = "<center>"+themessage+"</center>";
    wds.style.fontSize=x+'px'
    }
    }
    setTimeout("upwords()",speed);
    // End -->
    </script>
    </body>
    </html>
     
    Forum » Web Javascript » Effect on Text Size » Effect on Text Size
    Page 1 of 11
    Search:

    Copyright MyCorp © 2017 Website builderuCoz