[Solved] use html button to call javascript function [closed]

I don’t fully understand your question, but I’m guessing you want your solve() function to execute when a button is pressed. Here are three options: window.onload = function() { var button = document.getElementById(“button”); // Method 1 button.addEventListener(“click”, function() { alert(“clicked1”); solve(a, b, c); // ^ Insert Params ^ }); // Method 2 button.onclick = function() … Read more

[Solved] how do I configure email on a contact form?

Seding an email directly with javascript (as it´s your tag) is not possible, but you can open the user mail client: window.open(‘mailto:[email protected]’); It´s possible to have a predetermined subject and body using these variables: window.open(‘mailto:[email protected]?subject=example_subject&body=example_body’); 3 solved how do I configure email on a contact form?

[Solved] How do this with only CSS

Using a solid background? If you are using a solid colour background, you could use a pseudo element to ‘cover it up’ .wrap { position: relative; height: 300px; width: 300px; } .img { height: inherit; width: inherit; background: url(http://lorempixel.com/300/300); position: relative; overflow: hidden; z-index: -2; } .img:before { content: “”; position: absolute; top: 100%; lefT: … Read more

[Solved] Create transparent HTML table [closed]

Here is a working snippet. border-spacing removes the spacing between cells tr:first-of-type targets only the first row to apply background color td:nth-child(odd) targets only the first column to make all fields bold table{ border-spacing:0; } tr:first-of-type{ background:lightgray; } td:nth-child(odd){ font-weight:bold; } th,td{ padding:5px; } <table> <tr> <td>Plan / Feature</td> <td>Standard</td> </tr> <tr> <td>Plan Type</td> <td>Annual</td> … Read more

[Solved] Error in view page source [closed]

Bro don’t worry. There’s nothing wrong in your site or whatever site you have inspected on. It’s the google chrome’ updated feature to hide html source. When you click on the source link situated in left nav bar, you will get the source code. You don’t need to refresh it. And also view source is … Read more

[Solved] Very basic login form in html [closed]

Below is a basic login form code. If this is fine mark it as answer. if(isset($_POST[‘login’]) && $_POST[‘login’] ==’Login’) { $user = $_POST[‘user’]; $pass = $_POST[‘pass’]; if($user==’admin’ && $pass=”abcd”) { // your success code } else { //your error code } } ?> <form action=”” method=”post” accept-charset=”utf-8″> <table> <caption>Login Form</caption> <tr> <td>User</td> <td><input type=”text” name=”user” … Read more

[Solved] Check if a text box starts with 92 using javascript [closed]

I recommend you read a JavaScript tutorial. Try here. To answer your question, this will probably work. If you’re wondering why you’re getting downvoted – asking people to write your code for you is generally considered bad form, so try not to do this in future. 🙂 function Validateform(e) { if (document.getElementsByName(‘receiver’)[0].value.substring(0, 2) !== “92”) … Read more

[Solved] How to select row with same value

You could probably get by with something like this, assuming your table is called ratings: select r.* from ratings r inner join ( select name, rating, max(value) value from ratings group by name, rating having count(distinct sport) > 1 ) q on r.name = q.name and r.rating = q.rating and r.value = q.value There are … Read more

[Solved] Issue with IFRAME? [closed]

Do you mean you want to get rid of the frames? Simple solution is to use `style´: <iframe src=”https://stackoverflow.com/questions/11109229/…” style=”border: 0px”></iframe> If your doctype is HTML5, you can also embed your iframe content seamlessly into the DOM (=”transparent” iframe import): <iframe src=”https://stackoverflow.com/questions/11109229/…” seamless=”seamless” style=”border: 0px;”></iframe> I wouldn’t expect all browsers to support that yet though. … Read more

[Solved] Not getting correct javascript [closed]

So the mistake you’re making is that if you loop through several things and hardcode the id, several elements get the same id, which is why your increase() function is updating the “wrong” elements. So you need to give each item in the loop a unique id. One way is to append an id from … Read more

[Solved] Add CSS to existing website

As per your clarification.. this is how you can do it.. <html> <?php $homepage = file_get_contents(‘https://auspuff-schuelerzeitung.de/’); echo $homepage; //you can strip the closing <html> if it bothers.. ?> <link rel=”stylesheet” href=”https://stackoverflow.com/questions/40294645/my_changes.css” type=”text/css”/> </html> 5 solved Add CSS to existing website