Search results

  1. O

    How to make website control switch

    I'd use the Switch Statement in JavaScript to do this. Find it here: JavaScript Switch Statement
  2. O

    CSS example Example source sites available?

    Coders are lazy! We need your code to see what's wrong. We don't want to spend a day writing code for you and get "Oh, That's not what I meant.". I have to guess what your header is - The orange box? Give us the code and be more clear as to what you want. BTW - are there sites online providing...
  3. O

    CSS Row Heigth

    Use calc() to get results. And correct the spelling in the .container{hight: 100vh;} <style> .container{ background-color: purple; height: 100vh; } .header{ background-color: brown; height: 35px; } .hero { background-color: yellow; min-height: calc(100vh - 260px); } .footer{...
  4. O

    using images and copywrites

    Do a google for "websites for free use images". I just did and found some new sites and the sites that I have used for many things.
  5. O

    Read Me Code Forum is celebrating 5 years! 🎉

    This site helps me pass the mornings and sometimes a lonely weekend. Heres to 5 more.
  6. O

    JavaScript How to send a PHP save request in client side Javascript?

    Not the way I'd do it, but looks good. FYI: To check if my AJAX works I start my PHP sending back a "Made it!" Message and have JS flash it as an alert.
  7. O

    JavaScript How to send a PHP save request in client side Javascript?

    I said Look at CanIuse.com to see the versions that support this.
  8. O

    JavaScript How to send a PHP save request in client side Javascript?

    Josiah, It looks like you have a grasp on how AJAX works, but are unsure how to use it. Let's look at the errors in your post. Things that are wrong for what you want”. From your quote: Note that onload{...} executes immediately after a page has been loaded: Meaning BEFORE the user enters any...
  9. O

    Flexbox layout question

    There may be some intricate way of doing this, but why waste time looking for it? If the four objects are the only thing on the row use two columns instead, otherwise, the wrapper is the way to go, Why complicate things?
  10. O

    OnClick On Text words Change Image

    Notice that we are getting errors on posts more and more. It has been hard to even log in recently.
  11. O

    OnClick On Text words Change Image

    JavaScript var elements = document.getElementsByClassName("image"); for (i=0; i<elements.length; i++){ elements.addEventListener("click", function () { var attr = this.getAttribute("id"); switch (attr) { case "card": document.getElementById("imageOne").src...
  12. O

    OnClick On Text words Change Image

    <div > <img id ="imageOne" src ="10.jpg"> <p> <span id="card"class="image">Cardiff </span> <span id="man" class="image">Manchester </span> <span id="both"class="image">Both </span> </p> </div>
  13. O

    OnClick On Text words Change Image

    There have been times and will be again when I write out solutions and not code, but you all have to agree that one line of code is better than a thousand words. So here is 52,000 words in a simple code fragment. And if you have questions which I know you will have, ask me here and I'll explain.
  14. O

    navigation color confusion

    When I hover over the menu items they change color and stay that color until I move off of them., so I cannot verify your problem. As for the mobile menu, I see nothing wrong. What is the problem there - {please state it in different terms.
  15. O

    flex-wrap not working on Squarespace site

    Hi missleattak, You should use the </> icon to enter the code. You should ask squarespace what they changed that broke your site. Your code should work btw. So give us a link to the site so we can look at the entire code, unless you want to post it here and save us time.
  16. O

    Column 6

    Your columns have this “valign:center;" in CSS and this does not exist. Think you want text-align:center;. Your use of /> and &nbsp tells me you're using old coding. Most importantly when I loaded your code into VSCoder I got a warrning message that illigal endig were being used. and I had a...
  17. O

    How to align table with other table components on same page

    In the BODY, have your logo div first then make two columns, side by side. Place the <div class="ao-text-header">Account Overview has a new look</div> You can view your retirement accounts below, or go back to the classic experience. </div> In the left column followed by the Welcome div and...
  18. O

    PHP Redirect On Database Connect Fail

    You might try the "set_error_handler" Or use the try - catch method. Never done them myself because I only had one DB and loss of it IS a fatal error and things should be shut down (in my case anyway).
  19. O

    How to align table with other table components on same page

    No. Why put this in that DIV? <div class="ao-text-header">Account Overview has a new look</div> You can view your retirement accounts below, or go back to the classic experience.
  20. O

    Help needed. How to make a fixed element not exted past the body max width

    My screen is over 2000px and I see nothing happening that looks bad when I stretch your page to those limits. The side column remains the same size and firmly up against the right side of the page. What do you see happening?
Top Bottom