Jump to content

Search the Community

Showing results for tags 'help'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

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

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 147 results

  1. 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>
  2. 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>
  3. 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
  4. 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.
  5. 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.
  6. 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.
  7. 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??
  8. 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?
  9. 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!👌
  10. 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>
  11. 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
  12. 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.
  13. hello! I cant find any code for tilled background for html any one help?😐 plz reply fast
  14. 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
  15. 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? :(
  16. 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
  17. Hello, so at the store page, when in mobile view the top dropdown menu doesn't work. When I delete parts bit for bit in the footer PHP file the menu will still not work. If I delete everything in the footer PHP file it will still not work. But if I completely change the PHP file name so it isn't linked to the store page at all, the dropdown menu works perfectly fine. I find this really weird and I can't figure out how to fix it. Can somebody help?
  18. First of all, I'm no way near any skilled "programmer" or website builder, I mostly just copy things and modify the styles and stuff! So this is probably a nooby question, you have been warned. I've this website I'm building for a school project and I've a few problems left and I've given up trying to fix them, I need to start working on other stuff. First of all so am I trying to get this slider between the three pictures and the navigation bar in the supposedly start page, but the animation disappear when you put it in and I don't think the autoplays work either. This is the main thing I'm trying to do. Secondly, When you go on mobile view and press the dropdown menu it doesn't seem to find the script, which i don't understand why. In the header I have <script src="/online-store-header/js/flertdown.js"></script> and the body I've the code <a href="javascript:void(0);" style="font-size:25px;position: absolute; top: 65px; right: 0; border: 0;" class="icon" onclick="specificName()">☰</a> The console returns this error: Uncaught TypeError: Cannot read property 'className' of null at specificName (flertdown.js:3) at HTMLAnchorElement.onclick (final.html:195) Dropdown js code Any help would be really appreciated, i really need to be done this site soon :)) And I'm really sorry if the index file is totally chaos, elements seems to have a life of their own and come back and reproduce to multiple of the same element after I've deleted them, I've lost control of what i've created (or copied)
  19. So I've searched the web and tried for hours now and I'm just giving up. I've this header, and I want it so when you're on mobile it looks like something like this. So when you're on desktop the full menu is in the header and if your're on mobile you get a dropdown menu. Can someone tell me how I do this? Thank you
  20. Hello, I have a report looking at courses for my college. Each course can have multiple attributes (which I return with a sub query for each stating 'Y' or 'N' if they are associated with said attribute). My end user is requesting an additional column which states if they are associated with multiple attributes - so the column will return 'Y' if they have multiple attributes, or a 'N' if they only have one attribute. I am requesting assistance in coding the 'Multiple' column, as I am returning a Y or N for each attribute by using sub queries, and not quite sure how to compare the sub queries together to return a value if they have multiple attributes (meaning more than one of the sub queries will return a 'Y'). Thank you.
  21. sompal

    PHP

    <?php $dbConn = new mysqli("localhost", "student", "Autumn", "fact"); if($dbConn->connect_error) { die("Failed to connect to database " . $dbConn->connect_error); } ?> <?php error_reporting(E_PARSE); //require_once("conn.php"); $number = $_POST["quantity"]; if (isset($_POST["submit"])) { if(!empty($number)){ if (is_numeric($number)){ if($number < 60){ $sql = "SELECT name, quantityInStock, price FROM product where quantityInStock > $number order by quantityInStock ASC "; $results = $dbConn->query($sql) or die ('Problem with query: ' . $dbConn->error); } else { echo "<p class='errorMsg'>There are no products that have more than 60 in stock.</p>"; } } else { echo "<p class='errorMsg'> The value entered for quantity was not a number. </p> "; } } else { echo "<p class='errorMsg'>input can not be blank</p> "; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <style> input[type="text"] {border: 1px solid black;} </style> <link rel="stylesheet" href="styles.css"> <title>Quiz</title> </head> <body> <form id="" action="" method="post"> <h1>Product In Stock </h1> <table> <tr> <th>Name</th> <th>QuantityInStock</th> <th>Price</th> </tr> <?php while ($row = $results->fetch_assoc()) { ?> <tr> <td><?php echo $row["name"]?></td> <td><?php echo $row["quantityInStock"]?></td> <td><?php echo $row["price"]?></td> </tr> <?php } $dbConn->close(); ?> </table> </form> </body> </html>
  22. sompal

    JAVASCRIPT

    <script type="text/javascript"> function checksName(form) { var eobj=document.getElementById('SnameError'); var sName = form.sName.value; var oRE = /^[A-Z a-z]*$/; var error=false; eobj.innerHTML=''; if (sName == '') { error='Error: Surname cannot be blank!'; form.sName.focus(); } else if (!oRE.test(sName)) { error="Incorrect format."; } if (error) { form.sName.focus(); eobj.innerHTML=error; return false; } } function validPhone(form) { var eobj=document.getElementById('phonenoerror'); var valid = '0123456789'; var phone = form.phoneno.value; var error=false; var i=0; var temp; eobj.innerHTML=''; if (phone == '') { error='Error: Please enter phone number'; } else if (!phone.length > 1 || phone.length < 😎 { error='please enter the 8 didgit only';} else{ for (i=0; i < phone.length; i++){ temp = '' + phone.substring(i, i + 1); if (valid.indexOf(temp) == -1) { error='Invalid characters, please enter only numbers'; } } } if (error){ form.phoneno.focus(); eobj.innerHTML=error; return false;} return true;} function selectOnlyThis(id) { for (var i = 3; i <= 9; i++) { document.getElementById("tick" + i).checked = false; } var ticked = document.getElementById(id).checked = true; var checkBox = document.getElementById("tick9"); } function formValidation() { var form = document.forms['form']; /* created array to store another function name to check their validation */ var ary=[checksName,validPhone,selectOnlyThis]; var rtn=true; var z0=0; for (var z0=0;z0<ary.length;z0++) { if (!ary[z0](form)) { rtn=false; } } return rtn; } <input type="checkbox" id="tick1" onclick="selectOnlyThis(this.id)"> <label for="passport">Passport</label> <span class="message" id="tickError"></span><br> <div class="Objects"> <label for="sName">Party 1's surname</label> <input type="text" name="sName" id="sName" placeholder="Enter surname"> <span class="message" id="SnameError"></span> <br> </div> <div> <label> Phone number </label> <input type="text" name="phoneno" maxlength="10" placeholder="Enter 8 digit phone number" value="04"> <span id="phonenoerror" ></span> <br> </div> </script>
  23. Hola buenas, tengo que decir que todavia estoy aprendiendo, soy muy nobato en este tema, aprendiendo me he quedado bloqueado y no se como seguir, se lo que son los dorks, el sqliv sqlmap ect... yo uso el jsql injection. Me gustaria saber como centrar una lista de dorks en una sola url, ya que todos los videos que he visto, lo que hacen es poner un dork en google y cojer una paguina al azar, lo suyo seria cojer una url deseada y meterle dorks para hallar una vuneración y de ahi ver/modificar/actualizar los datos de la paguina web. Estoy intentado cojer los datos de un juego online que creo que tiene algo (muy poco) de seguridad ante injection sql que es www.boombang.nl/index.php. Si hay alguna alma caritativa que sepa del tema y me puede ayudar, mil gracias adelantadas
  24. Hello , I have a problem , I want to wirte HTML code that only refreshes the <div> test , so just the code between de <div>...</div> I was thinking to use some Javascript but I'm not sure this works in PHP , because my in HTML div there's PHP code. My HTML code: <HTML> <HEAD> </HEAD> <BODY> <div id = "other div"> </div> <div id="test"> <?php refresh this code ?> </div> </BODY> </HTML>
  25. Help me Obi-Wan you are my only hope. I am trying to and an embedded YouTube video into an email that I am sending out to clients. The issue I have is that when the video doesnt render (pretty much all email clients) I cannot get the background image to display. So far I have tried <iframe>, <object> and now I am trying <embed>. From what I understand Gmail doesnt support iframe or object tags, which has left me attempting to use embed. I am aware that YouTube videos will not appear in the majority of email clients, which is why I am trying to specify that a fall back image appears, currently it is just showing a blank space where the image should be! I have attached the code I have been using and would appreciate any help I can get! aza video.html
×
×
  • Create New...