[Solved] How to make a slider with that functionality (html, css, js) [closed]

a simple function to do some actions base on input value can be like this : document.getElementById(“myRange”).addEventListener(“change”, function (e) { let value = parseInt(this.value); let resultElm = document.getElementById(“result”); switch (true) { case 0 < value && value <= 20: resultElm.innerHTML = “:|”; break; case 20 < value && value <= 40: resultElm.innerHTML = “:)”; break; … Read more

[Solved] javascript not working (if else ) [closed]

I assume you are trying to do this: function run() { var image = document.getElementById(‘boy’); if (image.src.match(“emoji\walk”)) { image.src = “https://stackoverflow.com/questions/37643551/emoji\run.png”; } else { image.src = “https://stackoverflow.com/questions/37643551/emoji\walk.png”; } } function m() { var image = document.getElementById(‘moon’); if (image.src.match(“emoji\1.png”)) { image.src = “emoji\2.png”; } else if (image.src.match(“emoji\2.png”)) { image.src = “emoji\3.png”; } else if (image.src.match(“emoji\3.png”)) { … Read more

[Solved] How to make a responsive picture

In the example you provides, it seems like background image. So you can style it like below background-image: url(“../images/image_name.jpg”); background-size: cover; solved How to make a responsive picture

[Solved] How to format a title attribute with css (setting more width)?

It is currently not possible to format a tooltip. An alternative solution is to use one of the many open source projects that allow for custom HTML based tooltips and then modify their content. These are some common solutions. jTip jQuery Tooltip solved How to format a title attribute with css (setting more width)?

[Solved] Responsive design not working on mobile

If I’m understanding correctly, You need a <div class=”row” before col-sm-4. EDIT: From your screenshot, I don’t see a container, which you will need. Maybe it is already included but I cant see it. You need to have <div class=”container”> <div class=”row”> <div class=”col-sm-4″> Try removing the other divs first to see if that fixes … Read more

[Solved] auto fill html form using php [closed]

To fill the form without reloading the page you will have to use Ajax to request the data from the server (database) and then fill it using javascript, i suggest reading about ajax functions with jquery. if you want for example to fill the id and click a button and the page will reload with … Read more

[Solved] Score is not counting correctly based on whether the correct answer [closed]

Your checkCurrentAnswer function is calculating the wrong index. Specifically, this line: var i = $(‘#Answers input:checked’).parent().index(); Your HTML looks like this: <div id=”Answers”> <div class=”answer”> <span class=”radioContainer”><input type=”radio” /></span> <label for=”answer_0″>The Musée du Louvre, Paris</label> </div> <div class=”answer”> <span class=”radioContainer”><input type=”radio” /></span> <label for=”answer_1″>The Tate Britain, London</label> </div> … </div> Thus, i will always be … Read more

[Solved] How to put this code into a table? [closed]

<table> <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Frameset//EN” “http://www.w3.org/TR/html4/frameset.dtd”> <html> <head> <title> Prueba </title> </head> <frameset rows=”56px, *, 50px” border=”0″ framespacing=”0″ frameborder=”NO”> <frame class=”header” src=”https://stackoverflow.com/questions/10589097/header.html”> <frameset cols=”450px, *” border=”0″ framespacing=”0″ frameborder=”NO”> <frameset rows=”*,150px” border=”0″ framespacing=”0″ frameborder=”NO”> <frame class=”frame1″ scrolling=”auto” src=”search_results.html”> <frame class=”frame2″ scrolling=”no” src=”info.html”> </frameset> <frame class=”frame3″ scrolling=”no” src=”map.html”> </frameset> <frame class=”footer” scrolling=”no” src=”footer.html”> </frameset> … Read more

[Solved] php bind_param number of variables doesn’t match number of parameters

You get the error because you bind 7 params to the query, but don’t use any of them. Instead you insert the variables directly into the query, which leads to the data being (insecurely) inserted into the database. $insert = $this->con->db->prepare(‘UPDATE users SET firstName=”‘.$updateFirstName.'”, lastName=”‘.$updateLastName.'”, username=”‘.$updateUsername.'”, email=”‘.$updateEmail.'”, profileImage=”‘.$updateProfileImage.'”, bio=”‘.$updateBio.'” WHERE userID = ‘.$userID); should be … Read more