[Solved] select what is being shown on index, Php [closed]

I’ll try to get you on the right way. But you’ll have to try and update it yourself to suit your needs. Below code could be your index page. <?php if(isset($_POST[‘submit’])) { $page = $_POST[‘page’]; } else { $page=”home”; } ?> <form method=”post” action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>”> <select name=”page”> <option value=”home”>Home</option> <option value=”something”>Some other page</option> … Read more

[Solved] Copy header style from another site

So i tried Modifying the code and change the background to red and it works fine. i think the path of your image is the problem .main{ width: 100%; position: relative; } header{ text-align: center; margin: 0 auto; overflow: hidden; position: relative; } .bg{ background:red; width: 2560px; height: 1354px; background-size: 2560px 1354px; background-repeat: no-repeat; position: … Read more

[Solved] Colour a button blue, with help of css [closed]

This should do .html with CSS <style> #moderationbuttons .buttonlist ul.nav { list-style-type:none; } #moderationbuttons .button_strip_0 { padding:5px; background-color: #0874d1; color: #fff; border-radius: 4px } </style> <div id=”moderationbuttons”> <div class=”buttonlist floatbottom” id=”moderationbuttons_strip”> <ul class=”nav nav-pills”> <li> <a class=”button_strip_0″> <i class=”fa fa-0 fa-fw”></i> Hello </a> </li> </ul> </div> </div> 6 solved Colour a button blue, with help … Read more

[Solved] Convert AJAX script to jQuery syntax [closed]

If you want all the code to be jQuery-style: $.ajax({ method: ‘POST’, url: ‘getTemplate?templateID=’ + str, dataType: ‘json’ }).done(function(data) { $(data).each(function() { $(“#messageBody”).html(this.templateBody); $(“#emailSubject”).val(this.templateSubject); }); }); solved Convert AJAX script to jQuery syntax [closed]

[Solved] how to swap two dropdownlists with one button using javascript [closed]

You could do this as follows: HTML <table> <tr> <td> <select id=”mySelect1″ size=”5″ multiple style=”width:200px”> <option value=”opt1″>Option 1</option> <option value=”opt2″>Option 2</option> <option value=”opt3″>Option 3</option> </select> </td> <td valign=”center”> <button id=”toRight”>►</button><br/> <button id=”toLeft”>◄</button> </td> <td> <select id=”mySelect2″ size=”5″ multiple style=”width:200px”> <option value=”opt4″>Option 4</option> <option value=”opt5″>Option 5</option> <option value=”opt6″>Option 6</option> </select> </td> </tr> </table> Javascript (pure) function … Read more

[Solved] Extract data from span tag within a div tag

I would use the BeautifulSoup library. Here is how I would grap this info knowning that you already have the HTML file : from bs4 import BeautifulSoup with open(html_path) as html_file: html_page = BeautifulSoup(html_file, ‘html.parser’) div = html_page.find(‘div’, class_=’playbackTimeline__duration’) span = div.find(‘span’, {‘aria-hidden’: ‘true’}) text = span.get_text() I’m not sure if it works, but it … Read more

[Solved] My javascript codes won’t work?

I changed your code in “LengthConvertercmToinch()” observe here just added one variable function LengthConvertercmToinch() { var inch2Ref,cmtoInchResultRef; var inchTwo,centimetresTwo,inchTwo1; inch2Ref=document.getElementById(“cmToInchValue”); cmtoInchResultRef=document.getElementById(“cmToInchRe”); inchTwo=Number(inch2Ref.value); centimetresTwo=Number(cmtoInchResultRef.value) inchTwo1=inchTwo/2.54 cmtoInchResultRef.innerText=inchTwo1; } I think now your problem has resolved Let me know if your problem is solved 5 solved My javascript codes won’t work?

[Solved] Making Images all the same size

I have substituted my own images for display purposes, but it’s the css here that matters (you can link it in as a separate css stylesheet – recommended – or put the style in <style> tags in the head of the html document) In my css I have set a max-height for the images, but … Read more

[Solved] href of a php element [closed]

“The href attribute specifies the link’s destination” https://www.w3schools.com/tags/att_a_href.asp I strongly suggest you go over the tutorials posted here solved href of a php element [closed]

[Solved] How to highlight the menu item in menu

I guess what you want is to have class ul.pureCssMenuSelected { //whatever the selection should look like } Then, in each html page you go to, you add that class to the option the page refers too. <ul class=”pureCssMenu pureCssMenum”> <li class=”pureCssMenui0″><a class=”pureCssMenui0 pureCssMenuSelected” href=”#”>Home</a></li> <li class=”pureCssMenui0″><a class=”pureCssMenui0″ href=”#”>About us</a></li> <li class=”pureCssMenui0″><a class=”pureCssMenui0″ href=”#”>FAQ</a></li> <li … Read more

[Solved] How do you repeat similar elements multiple times with different content using Bootstrap?

Use JavaScript to create multiple HTML elements with the same classList. It’s now up to you to adapt this for your context: const $root = document.getElementById(‘root’) const data = [“foo”, “bar”, “naz”] for (var i = 0; i < data.length; i++) { var newEl = document.createElement(‘p’) newEl.classList=”data-item” newEl.innerText = data[i] $root.appendChild(newEl) } .data-item { font-family: … Read more

[Solved] How to select an specific item on a drop down list on ASPX site

This particular web page isn’t using <select> and <option>. That suggests to me that they are using some custom JavaScript to simulate a drop-down list using the illustrated <div> and <span> elements. In addition, they are using onselect rather than onclick to trigger event handlers. I can’t replicate your test case. However, I did make … Read more