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 to the CF scene
    Join Date
    Dec 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question No scroll bars showing up in any browser

    I made this webpage. It runs with a simple javascript function that changes the content in the window when you click on the menu buttons. the only problem is there are no vertical scroll bars when viewed in any browser. There seems to be a place for them but no actual scroll bar. I tried modifying the color and such with cs but it didn't change anything.
    please help
    the site
    www.star1on1tutoring.com

    here is all the code starting with the html, then the css, and the two javascript pages

    [code]
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="assets/css/main.css" rel="stylesheet" type="text/css" media="screen" />
    <script type="text/javascript" src="assets/java/global.js"></script>
    <script type="text/javascript" src="assets/java/menu.js"></script>
    <link rel="icon" href="assets/images/favicon.ico" type="image/x-icon"/>
    <link rel="shortcut icon" href="assets/images/favicon.ico" type="image/x-icon"/>
    <title>Star 1 on 1 Tutoring</title>
    <meta name="description" content="One on One tutoring for individuals and small groups in the Charlotte, North Carolina area. Taught by a former Charlotte-Mecklenburg teacher, we cater to your child's individual needs and goals. Package and groups discounts are available. "/>
    <meta name="robots" content="all,follow"/>
    <meta name="keywords" content=" star 1 on 1 tutroing, star one on one, one on one, Charlotte, North Carolina, Stonecrest, South Charlotte, Tutor, private tutor, tutoring, dominique greve, help in school, behind in school, huntington learning, huntington tutoring, small group tutoring, teacher, private teacher, math, science, social studies, history, math tutor, science tutor, history, history tutor, social studies tutor, grades, A+, better grades, children, school, better in school, Charlotte private tutor "/>


    </head>
    <body>
    <div id="logo"> </div>
    <div id="book">
    <ul id="internalNav">
    <li><a href="#intro">Introduction</a></li>
    <li><a href="#subjects">Subjects and Grades</a></li>
    <li><a href="#rates">Rate Information</a></li>
    <li><a href="#difference">The Difference</a></li>
    <li><a href="#bookIt">Book It!</a></li>
    <li><a href="#payment">Payment and Discounts</a></li>
    </ul>

    <div class="section" id="intro">
    <p>Private tutoring (individual or small group) can provide the help your child needs in order to achieve academic success.* As a former teacher, I am qualified to create an individualized plan to help your child work on specific subjects or content areas, prepare for a difficult exam or project, or simply improve study skills. While teaching and tutoring I have helped students with a variety of academic levels. I have experience with learning disabled students as well as students classified as academically gifted.</p>
    </div>



    <div class="section" id="subjects">
    <h3> K-8 all subjects (math depends on level)</h3>
    <h3>Study Skills/Organization</h3>
    <h3>Introductory Spanish </h3>
    <h3>High school (depends on course and level) </h3>

    </div>

    <div class="section" id="home">
    <p>Private tutoring (individual or small group) can provide the help your child needs in order to achieve academic success.* As a former teacher, I am qualified to create an individualized plan to help your child work on specific subjects or content areas, prepare for a difficult exam or project, or simply improve study skills. While teaching and tutoring I have helped students with a variety of academic levels. I have experience with learning disabled students as well as students classified as academically gifted.</p>
    </div>

    <div class="section" id="rates">
    <h3>Individual Rate: $30/hr</h3>
    <h3>Small Group Rates: </h3>
    <h3>2 students $50/hr</h3>
    <h3>3 students $75/hr</h3>
    <h3>4 students $100/hr</h3>
    </div>
    <div class="section" id="difference">
    <p> At Star 1 on 1 Tutoring, your child's program is tailored specifically to his or her needs and learning style. We can focus on your child's actual course work and assignments, using the school's preferred textbooks and resources.* You do not have to commit to a lengthy and inflexible contract with an organization that pursues its own curriculum at its predetermined pace.* Star 1 on 1 Tutoring focuses on what it takes for your child to succeed.</p>
    </div>
    <div class="section" id="bookIt">
    <h2> For more information or to book your session</h2>
    <h3> Call 704-321-9226</h3>
    <h3> or <a href="mailto:dgreve@star1on1tutoring.com">E-mail Me</a></h3>
    </div>
    <div class="section" id="payment">
    <p> You can pay with a credit card or check with a secure payment on Paypal. I also offer package rates.<h3> Buy 9 sessions get the 10th free.</h3>
    </p>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="9411314">
    <table>
    <tr><td><input type="hidden" name="on0" value="Package">Package</td></tr><tr><td><select name="os0">
    <option value="1 hour session">1 hour session $30.00</option>
    <option value="5 1- hour sessions">5 1- hour sessions $150.00</option>
    <option value="10 1- hour sessions">10 1- hour sessions $270.00</option>
    </select> </td></tr>

    </table>
    <input type="hidden" name="currency_code" value="USD">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>

    </div>


    </div>
    <div id="pencil"></div>
    <div id="apple"></div>
    </body>
    </html>


    @charset "UTF-8";
    /* CSS Document */

    html, body {
    overflow-y:scroll;
    overflow-x:scroll;
    }


    body {
    background-image:url(../images/newbg.jpg);
    font-size:.9em;
    overflow-y:scroll;
    background-attachment:fixed;
    }

    #logo {
    background: url(../images/logobacking.png) no-repeat;
    position:fixed;
    top:0px;
    left:200px;
    height:198px;
    width:609px;

    }

    #book {
    background:url(../images/newbook_06.png) no-repeat;
    position:fixed;
    left:23px;
    top:173px;
    width:960px;
    height:455px;

    }

    #apple {
    background-image:url(../images/star.png);
    height:310px;
    width:340px;
    position:fixed;
    left:50px;
    top:440px;
    }

    #pencil {
    background:url(../images/newpencil.png) no-repeat;
    position:fixed;
    top:470px;
    left:372px;
    height:278px;
    width:617px;
    }

    #internalNav li a {
    text-decoration:none;
    list-style-type: none;
    color:#000000;
    }

    img {
    border:none;
    }


    #internalNav li {
    font-family:"Courier New", Courier, monospace;
    font-size:1.5em;
    color:#000000;
    list-style-type:none;
    text-decoration:none;
    border:none;
    }

    #internalNav {
    position:fixed;
    left:80px;
    top:255px;
    }

    #home {
    display:block;
    font-family:"Courier New", Courier, monospace;
    position:fixed;
    left:520px;
    top:230px;
    width:375px;
    word-spacing: .01em;
    }




    #subjects {
    display:block;
    font-family:"Courier New", Courier, monospace;
    position:fixed;
    left:520px;
    top:220px;
    width:350px;
    }
    #rates{
    display:block;
    font-family:"Courier New", Courier, monospace;
    position:fixed;
    left:520px;
    top:220px;
    width:350px;
    }


    #difference{
    display:block;
    font-family:"Courier New", Courier, monospace;
    position:fixed;
    left:520px;
    top:220px;
    width:350px;
    }

    #bookIt{
    display:block;
    font-family:"Courier New", Courier, monospace;
    position:fixed;
    left:520px;
    top:220px;
    width:350px;
    }

    #intro{
    display:block;
    font-family:"Courier New", Courier, monospace;
    position:fixed;
    left:520px;
    top:230px;
    width:375px;
    word-spacing: .01em;
    }


    #payment{
    display:block;
    font-family:"Courier New", Courier, monospace;
    position:fixed;
    left:520px;
    top:230px;
    width:370px;
    }
    // JavaScript Document

    function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
    window.onload = func;
    } else {
    window.onload = function() {
    oldonload();
    func();
    }
    }
    }


    function showSection(id) {
    var divs = document.getElementsByTagName("div");
    for (var i=0; i<divs.length; i++ ) {
    if (divs[i].className.indexOf("section") == -1) continue;
    if (divs[i].getAttribute("id") != id) {
    divs[i].style.display = "none";
    } else {
    divs[i].style.display = "block";
    }
    }
    }

    function prepareInternalnav() {
    if (!document.getElementsByTagName) return false;
    if (!document.getElementById) return false;
    if (!document.getElementById("internalNav")) return false;
    var nav = document.getElementById("internalNav");
    var links = nav.getElementsByTagName("a");
    for (var i=0; i<links.length; i++ ) {
    var sectionId = links[i].getAttribute("href").split("#")[1];
    if (!document.getElementById(sectionId)) continue;
    document.getElementById(sectionId).style.display = "none";
    links[i].destination = sectionId;
    links[i].onclick = function() {
    showSection(this.destination);
    return false;
    }
    }
    }

    addLoadEvent(prepareInternalnav);

    [CODE]

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,731
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    I don't see the problem - the scroll bars work for me.

    Please help us to help you by following the posting guidelines and wrapping your code in [code] tags. This means use the octothorpe or # button on the toolbar which will insert opening [ code ] and closing [ /code ] tags - omit the spaces. You can (and should) edit your previous post.

    <a href="mailto:dgreve@star1on1tutoring.com">E-mail Me</a> without obfuscation from the bots will invite a torrent of spam.


    "There’s a great similarity between Britain's – or any democratic nation’s – voters and domestic livestock. They both are more concerned with what is provided in the trough today than what will happen to them on the morrow." - Lord Lawson.
    Last edited by Philip M; 12-03-2009 at 07:30 AM.


  •  

    Tags for this Thread

    Posting Permissions

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