Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2005
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    increase text size - help

    <script language="JavaScript">
    function SelectSize()
    {
    var dropDown=document.getElementById("size");
    var SelectedSize = dropDown.options[dropDown.selectedIndex].text;
    }
    { document.getElementById().style.fontSize=SelectedSize; }
    }
    </script>
    </head>

    <body>
    <form name="frmcontrol">
    Change Size of Text<p>
    <select id=size onChange="SelectSize()" >
    <option value="8">8px</option>
    <option value="9">9px</option>
    <option value="10">10px</option>
    <option value="12">12px</option>
    <option value="15">15px</option>
    <option value="20">20px</option>
    <option value="25">25px</option>
    <option value="72">72px</option>
    </select>
    </form>

    <script language="javascript">

    function colorChange()
    {
    document.bgColor=document.list.colors.options[document.list.colors.selectedIndex].value;
    }
    </script>

    Change Background Color:
    <form name="list">
    <select name="colors">
    <option value="006633">Default
    <option value="black">Black
    <option value="white">White
    </select>
    <input type="button" value="Change Background color" name="myButton" onClick="colorChange()" />
    </form>

  • #2
    New Coder
    Join Date
    Jun 2005
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry for the double post


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •