Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Ingolme last won the day on January 23

Ingolme had the most liked content!

Community Reputation

982 Excellent

About Ingolme

  • Rank
    Coding Fox

Previous Fields

  • Languages
    Java, PHP, MySQL, Javascript, CSS, HTML

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Gender
    Not Telling
  • Interests
    Web development, drawing, videogames, foxes.

Recent Profile Visitors

184,321 profile views
  1. You can click on the "Report error" button at the bottom of the page to let the W3Schools staff know that that page has an error.
  2. You only need to make one topic for your question. There are answers in your other topic. I'm closing this one.
  3. It's built using HTML, CSS and Javascript.
  4. The "+1" makes it as likely as the other numbers. If you use Math.round(), what you get is that numbers on both ends have only half the probability as the numbers in the middle, and in your example 11 would be the number at the end.
  5. CSS wouldn't be able to do it. You will need to do some math and write a Javascript program to determine where to place the image. It takes some work so there's no short code snippet that could be provided.
  6. They don't. There's a "report error" link at the bottom of each page if it has something incorrect or incomplete.
  7. That code looks correct. If the <div class="card-content"> element has a float CSS property then it would cover up the image with an invisible wall and prevent clicks from getting through to the image. There would be no way to solve it without changing the CSS.
  8. It won't stop the responsive behavior of the layout itself, but you can remove the <meta> viewport tag from the HTML template. That will cause mobile devices to display the page at a desktop scale.
  9. Cut out everything from top.htm except for the section of code that contains the menu. w3-include is not like an iframe, it does not need a complete HTML document. You can put the Javascript into an external .js file and use a <script> tag to include it right below the place where you include top.htm. top.htm should be reduced to just this: <div class="topnav" id="myTopnav"> <a href="../index.htm">Home</a> <a href="../whatsnew.htm">What's New</a> <a href="../calculators.htm">Calculators</a> <div class="dropdown"> <button class="dropbtn">Tax <i class="fa fa-caret-down"></i> </button> <div class="dropdown-content"> <a href="../personaltax.htm">Personal Tax</a> <a href="../taxrates.htm">Tax Rates</a> </div> </div> <div class="dropdown"> <button class="dropbtn">Financial Planning <i class="fa fa-caret-down"></i> </button> <div class="dropdown-content"> <a href="../freein30.htm">Free In 30!</a> <a href="../save_money.htm">Save Money</a> </div> </div> <a href="../resources.htm">Resources</a> <a href="../sitemap.htm">Site Map</a> <!-- the &#9776 provides the hamburger icon --> <a href="#" class="icon">&#9776;</a> </div> In the external Javascript file, you would put your Javascript function and then you would add some code to attach an event listener to the link as follows: var icon = document.querySelector("#myTopNav .icon"); icon.addEventListener("click", myFunction); The code on your main HTML page should look something like this, but with the correct path to your external Javascript file. <div w3-include-html="_borders/top.htm"></div> <script> includeHTML(); </script> <script src="filename.js"></script> My preference is to not use Javascript includes because it slows down the page loading, search engines can't see the content and users who block Javascript won't see anything on your page. Usually you'll have a server-side programming language which does the includes for you.
  10. I just went through your code, you haven't written any Javascript, so I can't point out where you might be having any mistakes.
  11. I would guess that includeHTML() won't actually run any Javascript that is in the included HTML file, you should put that Javascript in a separate file and use a <script> tag in the main document for it. The w3-include should probably only be used for short pieces of pure HTML which should not contain any <!DOCTYPE>, <html>, <head>, <body>, <style> or <script> tags. Things start behaving unpredictably if you try to do anything other than load plain static content.
  12. What exactly are you trying to achieve? With a purely client-side database anybody can register and log into your website and set their own permissions. Multiple people will be able to have accounts with the same names and email addresses and if they go to a different device they will have to create the account over again. I can check your files later when I have some more time to see why they are not working as expected. Files running from the desktop usually have more restricted security settings so that may be an issue.
  13. Nobody was recommending books or websites, this looks like a pre-written response being mass posted on a lot of different forums for the purpose of advertising.
  14. The list is already ordered, you would only need to specify the type if the type itself really matters. By default it's numbers and most of the time that's good enough.
  • Create New...