Jump to content

Search the Community

Showing results for tags 'help'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








  1. It doesnt work, it only copys the last one. i have about 20 of them. <script> function myFunction() { /* Get the text field */ var copyText = document.getElementById("myInput1"); /* Select the text field */ copyText.select(); copyText.setSelectionRange(0, 99999); /* For mobile devices */ /* Copy the text inside the text field */ navigator.clipboard.writeText(copyText.value); /* Alert the copied text */ alert("Copied the text: " + copyText.value); } </script>
  2. I am to do a simple calculator in C# windows forum. This is my first time doing C# and I've scoured what I could to figure this out. I'm not looking to copy and paste, I want to understand what I'm doing. My biggest issue at this moment is figuring out how to have the calculator solve a line of numbers. My calculator you can hit the buttons to enter numbers and the expression or whatever, but I can only figure out how to do it with two numbers. Any Ideas?
  3. Hello Everyone Good Evening I'm following your w3.css tutorial but I need your help. My questions are: - How do I centralize the Work Experience, Education and Skills sections in the middle of the browser window? - How do you fix datetime on the same level as the timebar, ie on the same line as the timebar? I would appreciate your support, please. https://codepen.io/Quencyjones79/pen/eYRWgOm
  4. So there are some processes that i wanted to unsuspend on my resource monitor but when i click on it it shows up faded and for its status its terminated i was wonder how i could fix that
  5. Hi I would like to have a kind of template file that every html file on my webserver pulls some code from. Like for example the header should be always the same. So if I change it in the template, every site will show the updated code + its own code of course. An iframe would not be the right thing (since I don’t want to pull a whole html file, only like two or three lines of code). Thanks
  6. Good Afternoon, I wonder if someone could help. I'm looking at the filter/search table 'How To', here: https://www.w3schools.com/howto/howto_js_filter_table.asp Ideally, we would like to create a table that is searchable across all columns, is this possible? At the moment I can see how to make it search column 1 or column 2, I would ideally like it to search both. Using the example on the 'How To' page it would mean that someone could search either a name or a country and they would see the results they wanted. TIA.
  7. Hello, I can't figure out how to write in an XML. I have an XML <line> <text id="some-id"> some text I want to change </text> <other_elements/> </line> An XSLT - to get this HTML : <html> <head> <script/> </head> <body> <textarea>TEXT I WANT TO SAVE</textarea> <!-- I write in it--> <button onclick="function(id)">clic to save</button> </body> I want to "save" what I have written in the <textarea>in my XML to have <line> <text id="some_id">TEXT I WANT TO SAVE</text> <other_elements/> </line> I don't know how to do it and as I work on only one XML I don't need to create a server... I just want the script to open the XML, change the text in the element, and close it. thank's for the help P.
  8. I'm looking at this tutorial, and I'm trying to learn how to create a task management website for myself. I want to create task elements with specific rules/elements, such as being able to change the size, colour, font, a grouping system for tasks(nesting them under an object with a specific name and colour, also creatable by the user). I will figure out most of these other problems later, but for now I want to have a button on the website that creates a basic task element that I can drag around. However, I want to be able to create multiple basic task elements, and I want to be able to drag them all within a certain area(white board type thing). I get that there's multiple websites or programs that can already do this, but I want to get into web development and get some knowledge by doing a project I find useful to me. I am not sure how to get the dragElement function to do that for multiple elements as the way it's done gets a single element of a single id, but from what I have seen, document.getElementsByClassName() wouldn't work either as trying to drag any of them would drag them all I think. This is the tutorial I was following. https://www.w3schools.com/howto/howto_js_draggable.asp
  9. Hello guys, I´m currently creating a website and have to use some kind of a switch button (in iOS-Style). I already implemented the switch button, however I want the user to switch with the button between two upcoming photo galleries. Because documentation in the www is lacking, I would need your support. Because I´m pretty unexperienced in website coding, I used the W3school switch button (https://www.w3schools.com/howto/howto_css_switch.asp) I hope you could help and I´m sorry for being such unexperienced but having high demands.
  10. So my mom blogs on a norwegian blog site. She got loads of readers there, and wanted to make a website. I finished the website and was quite proud, but there was one problem... I had to automaticcly add her blog post to the website. So everytime she uploads a new post, I have to go into the codes and put it in manually.. Is there a way to do this automaticcly? I have coded the website with HTML and CSS. Any help would be appreaciated!!
  11. If somebody can explain this code like what does what il swish 15 euros. Here is the code its for my nav bar but i have a hard time explaining what everything does. <style> .dropbtn { background-color:black; color: white; padding: 16px; font-size: 16px; border: none; } .dropdown { left:77.005px; position: relative; display: inline-block; } .dropdown-content { display: none; position: absolute; background-color: lightgrey; min-width: 200px; z-index: 1; } .dropdown-content a { color: black; padding: 12px 16px; text-decoration: none; display: block; } .dropdown-content a:hover {background-color: white;} .dropdown:hover .dropdown-content {display: block;} .dropdown:hover .dropbtn {background-color: grey;} </style> </head> <div class="dropdown"> <button class="dropbtn">meny</button> <div class="dropdown-content"> <a href="La carte/la carte.html">A la carte matsedel</a> <a href="Veckomatsedel/veckomatsedel.html">veckomatsedel</a> </div> </div> <style> <div class="dropdown"> <button class="dropbtn" onclick="window.location.href = 'Kontakt/Kontakt.html';">kontakt</button> <div class="dropdown-content"> </div> </div>
  12. Hello, I have been using W3 tutorials to create custom code elements on my weebly website. Lately I have been having issues with a code I created from two separate tutorials: image roll over and responsive size. The code is situated within a greater grid created with weebly's building tools. Image rollover and responsive size work in W3's try it editor, but on my website only the rollover works. On a full size window everything looks just fine (the bottom left is the custom coded element) but a slighter smaller window results in a slide bar to view the full image, because it will not scale down. On a phone-scaled window, the opposite happens and it doesn't scale up, appearing significantly smaller. Any help would be much appreciated!!! I have included images and the latest code I've tried to show what's happening. Thank you!!!!! <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> img{ width: 100%; height: auto; } .box{ width: 100%; height: auto; position: relative; display: inline-block; margin: 10px 0px 10px 0px; } .box .img-top { width: 100%; height: auto; display: none; position: absolute; top: 0; left: 0; z-index: 0; } .box:hover .img-top { display: inline; </style> </head> <body> <div class="box"> <img src="https://drive.google.com/thumbnail?id=1NJjBTmUClAxB3vqIDrDKzFTAF_HFqzHI" alt="Card Front"> <img src="https://drive.google.com/thumbnail?id=1XNQ_ARudR0M_hEuB3ErCyxDhHxSGKPMo" class="img-top" alt="box Front"> </div> </body> </html> <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> img{ width: 100%; height: auto; } .box{ width: 100%; height: auto; position: relative; display: inline-block; margin: 10px 0px 10px 0px; } .box .img-top { width: 100%; height: auto; display: none; position: absolute; top: 0; left: 0; z-index: 0; } .box:hover .img-top { display: inline; } </style> </head> <body> <div class="box"> <img src="https://drive.google.com/thumbnail?id=1NJjBTmUClAxB3vqIDrDKzFTAF_HFqzHI" alt="Card Front" width="720" height= "720"> <img src="https://drive.google.com/thumbnail?id=1XNQ_ARudR0M_hEuB3ErCyxDhHxSGKPMo" class="img-top" alt="box Front"width="720" height= "720"> </div> </body> </html>
  13. Hello. I am currently editing my register.php file, which creates the user's account, but also at the same time makes a new file - their profile page. Here is the function: // Create profile page. $handle = fopen($username.".php", 'w'); $pageContent = ""; function createProfile() { fwrite($handle, $pageContent); } createProfile(); This function works, but not when I put this code inside -> https://pastebin.com/9j3rR12v. I have tried to swap all of the " for ' but it doesn't work. What happens is the register.php page does not load at all. It says there is an error. However, it loads the register.php page when I put: // Create profile page. $profileContents = include (profileContents.txt); $handle = fopen($username.".php", 'w'); $pageContent = "<!DOCTYPE html> <head><title>The title has changed.</title></head>"; function createProfile() { fwrite($handle, $profileContents); } createProfile(); When I then make an account, it creates the file, but the content doesn't go inside. A link to the code I would like to be displayed can be found here (compressed version): https://pastebin.com/9j3rR12v If you are able to help me out, it would mean the world. Many thanks. Emergency email: whunter@voltboxgaming.co.uk
  14. Heres my issue, I am looking for help to had a simple 15sec delay timer on the <?php print $next_pg; ?> button that exist. I know enough about coding to be able to read it, (very slowly), however i don't know enough to be able to right it myself. Long ago a colleague of mine contracted out some work to his friend to code a course into my webpage. The colleague is no longer employeed with me and his friend wants me to pay him lots to add this in. This section of code is used on every single page of the course, (it is the Navigation Bars). I've tried to do it myself using.... setTimeout and hide().delay() but i have no idea where to actually insert my coding into the existing coding to make this work. ################################################################################# <td width="117"> <?php if ($enable_next_button == "yes") { // very last quiz of Module 5 should reveal I Agree button and it is required, thus we should enforce it... // the JavaScript checkAcceptance() function is defined on the module_5_18 page, as well as "i_agree" form with // acceptance checkbox. if ($_SESSION['module5_5_completed'] == 1 && $pg == "5_18") { ?> <a href="javascript:void();"><img src="images/Navigation_Forward_Up.gif" border="0" name="Forward" onMouseOver="document.Forward.src=ForwardOver.src" onMouseOut="document.Forward.src=ForwardUp.src" onClick="checkAcceptance(i_agree);"></a> <?php } else { ?> <a href="<?php print $_SERVER['PHP_SELF']; ?>?pg=<?php print $next_pg; ?>"><img src="images/Navigation_Forward_Up.gif" border="0" name="Forward" onMouseOver="document.Forward.src=ForwardOver.src" onMouseOut="document.Forward.src=ForwardUp.src"></a> <?php } } // if ($enable_next_button == "yes") { ?> </td> ################################################################################# Any help is appreciated. Thank you.
  15. using System; namespace ReadlinPractice { class Program { static void Main(string[] args) { string passWord = "pass123"; string userName = "user"; Console.WriteLine("Please enter your username below!"); string userName2 = Console.ReadLine(); do { Console.WriteLine("User not found! Please re-enter your username"); string userName4 = Console.ReadLine(); } while (userName4 != userName); } } } I want it to loop "User not found! etc" while im typing a non-exisiting username, but i cant make it work since i cant use userName4 outside of the 4th curly brackets (dont remember what its called (parameters?)), how can i work around this.
  16. using System; namespace ReadlinPractice { class Program { static void Main(string[] args) { string passWord = "pass123"; string userName = "user"; Console.WriteLine("Please enter your username below!"); string userName2 = Console.ReadLine(); if (userName != userName2); { Console.WriteLine("User not found! Please re-enter your username"); string userName3 = Console.ReadLine(); string result = (userName3 != userName) ? "Blocked, please try again in 5 minutes." : "Error, please restart the program."; Console.WriteLine(result); } else { Console.WriteLine("User found. Please enter your password."); string passWord2 = Console.ReadLine(); if (passWord != passWord2) { Console.WriteLine("Wrong password entered, please try again in 5 minutes"); } else { Console.WriteLine("Congrats, successfully logged in!"); } } } } } How can I fix this??
  17. Hello everyone, i must do a query that finds all words that finish whit a,e,i,o or u. i' ve used this query but my output in empty . select City from Station where City like '%[aeiou]'; i' ve used the wildcards wrongly?
  18. Hey there folks! That's my first time around w3 forums so I'm glad to be here! 🙋‍♀️ The persistent error that I'm having is that in my simple HTML site I just want to insert an audio (yes, only one audio track) and loop it at infinitum. This is easly done, the problem is that I'd like that audio to be "livestreamed" kind of, I'd like to that everyone that connects to the site listens to the same point of the music where I'm listening. For example, If type my site and click it, the audio might start at 2:34 and so on... It would be kind of a livestreaming but just for one audio! Is it possible with pure HTML? Thanks in advance!👌
  19. I followed the tutorial to create an accordion. Now, I would like to link to individual headers in that accordion and have them load opened. How can I edit the code to do this? Here is what I'm using: <style type="text/css">.accordion { background: none; color: #3d8bb1; cursor: pointer; padding: 18px; width: 100%; border: none; text-align: left; outline: none; font-size: 18px; font-weight: bold; transition: 0.4s; } .active, .accordion:hover { background: none; color: #2e6885; } .accordion:after { content: '\002B'; color: #2e6885; font-weight: bold; float: right; margin-left: 5px; } .active:after { content: "\2212"; } .panel { padding: 0 18px; background-color: white; max-height: 0; overflow: hidden; transition: max-height 0.2s ease-out; } </style> <button class="accordion">TITLE</button> <div class="panel"> <p> CONTENT</p> </div> <button class="accordion">TITLE</button> <div class="panel"> <p>CONTENT</p> </div> <script> var acc = document.getElementsByClassName("accordion"); var i; for (i = 0; i < acc.length; i++) { acc[i].addEventListener("click", function() { this.classList.toggle("active"); var panel = this.nextElementSibling; if (panel.style.maxHeight){ panel.style.maxHeight = null; } else { panel.style.maxHeight = panel.scrollHeight + "px"; } }); } </script>
  20. I am having what I assume is a CSS issue, because there is a grey background where there should be none. I have attached the code and was hoping someone was able to assist with this issue. Screenshot of the issue: It should look like this: holman-bmw-ft-lauderdale-accordion-x7-page_v3 no carousel.html
  21. hello, 1 month ago i started to learn java from udemy and w3schools. actually im a russian language student at university. all i want is learn java for a basic app. i dont wanna be prof. medium degrees enough for me. but problem is, i know nothing about this world and what it could be. my question is where am i. i can answer all the questions at 3school's website java tutorial test questions. but i cant see from here "what is my level" "can i call myself as a rookie level" "with these knowlegde, can i make an basic education app" "are these questions enough for the basic level" help me guys
  22. I took a Python coding course in college. Basic level, it taught me how to code short, basic programs. This was six months ago. I recently tried to pick coding back up, and decided my first project; a dice game I had an idea for a while back, as a computer program. Problem: I've apparently forgotten how to do just about everything, because I can't even figure out why Pyzo (my program of choice for writing in Python) is throwing an error. All I want to do on the line in question is set a variable to 1. That's all. I've tried changing the variable name, tried putting it in all forms of quotation marks that I could think of. I even tried double equal signs. But: "dice1 = 1" is absolutely against the law, and I can not understand why. I've tried google search. I've tried Youtube for basic learning videos on Python. I tried everywhere I could think of on w3schools. I even tried StackOverflow, but they're very professional, like actual software developers, and that... intimidates me. I'm simply trying to pick this back up as a hobby.
  23. hello! I cant find any code for tilled background for html any one help?😐 plz reply fast
  24. Hi there, I went into a problem, might be simple for you but I am sitting here and try it out for many many many hours... Here is the thing, at the top is my header, the header is seperated with php in another file/folder and with a php code it is displaying in the index home file. I would like to have the background video fully covered under my content body and under my header. But whenever I put it, then it is under my content only and the header is disappearing for some reason. Also, when I put it for header only, then I will get it at the top only and the body will be empty with my normal content but without the background video. Here is the code I am using: #CSS * { box-sizing: border-box; } body { margin: 0; font-family: Arial; font-size: 17px; } #myVideo { position: fixed; right: 0; bottom: 0; min-width: 100%; min-height: 100%; } HTML <video autoplay muted loop id="myVideo"> <source src="https://www.belloo.date/upgrade/themes/landing2/images/bg.mp4" type="video/mp4"> Your browser does not support HTML5 video. </video> I put the CSS at the top in the header section and the other stuff in front of my body content. Any suggestions? :(
  25. If i use the normal side on 100% my image is big, when i go in handy mode or just smaller website, the image gets tiny... Pls help me (*CSS*) Best Regards
  • Create New...