[Solved] Replace with php each font size=”” to font-size: ; how to? [closed]

You can use preg_replace(). http://php.net/manual/en/function.preg-replace.php $str=”Hello <font size=”4″>today</font> is my <font size=”3″>special day</font> and am <font size=”11″>ready</font> for it…”; preg_replace(‘/<font size=”(\d+)”>(.+?)<\/font>/’, ‘<span style=”font-size:$1;”>$2</span>’, $str) Output: Hello <span style=”font-size:4;”>today</span> is my <span style=”font-size:3;”>special day</span> and am <span style=”font-size:11;”>ready</span> for it… 4 solved Replace with php each font size=”” to font-size: ; how to? [closed]

[Solved] Switch Statement-JavaScript [closed]

function main(arg1){ switch(arg1) { case ‘Jatin’: alert(‘This is Jatin’); break; case ‘Vivek’: alert(‘This is Vivek’); break; case ‘Vikas’: alert(‘This is Vikas’); break; default: alert(‘The name is not found’); } // no semi colon } // closing brace main(“Jatin”); 0 solved Switch Statement-JavaScript [closed]

[Solved] echo value from DB as a Link in PHP/HTML table [closed]

You must use echo for print value like: echo “<td><a href=””.$row[“url’].”‘>”.$row[‘url’].”</a></td>”; or <td><a href=”https://stackoverflow.com/questions/60163422/<?php echo $row[“url’]; ?>’><?php echo $row[‘url’]; ?></a></td> 2 solved echo value from DB as a Link in PHP/HTML table [closed]

[Solved] Why wont this code show the hunger variable? [closed]

You need to have a div with the id. This code increments the value. Also, you don’t need both document.write and setting the innerHTML. Code: <!DOCTYPE html> <html> <head> <link rel=”stylesheet” href=”https://stackoverflow.com/questions/66876926/styles/style.css”/> <title>Hunger!</title> </head> <body> <div id=”hunger-div”></div> <script> var health = 5; var hunger = 10; function task(i) { setTimeout(function() { hunger -= 1; document.getElementById(‘hunger-div’).innerHTML … Read more

[Solved] Different shaped divs [closed]

There are several ways to do this. Old School One way would be to crop the overlaid image so that it has a triangle cut off and replaced by transparency. This would work in any browser that supported .pngs, however, the downside would be that for each image you’d need to create a new crop. … Read more

[Solved] How to change color of products on a website? [closed]

Assuming you need this for a website, You can easily do it with a bit of HTML and Javascript. <div id = “clothes”> <img src=”#” id= “clothing”> <button onclick= “change()”>Click here</button> <button onclick = “change2()”> Click here</button> <button onclick = “change3()”> Click here</button> </div> Now for your Javascript do: function change(){ clothing.src = “#”; } … Read more

[Solved] how make the following html

You can use rowspan and colspan for header rows. Rest are simple tr and td. <table border=”1″> <tr> <td rowspan=”2″>A</td> <td colspan=”2″>B</td> <td colspan=”2″>C</td> </tr> <tr> <td>D</td> <td>E</td> <td>F</td> <td>G</td> </tr> <tr> <td>ROW1 – A</td> <td>ROW1 – B</td> <td>ROW1 – C</td> <td>ROW1 – D</td> <td>ROW1 – E</td> </tr> <tr> <td>ROW2 – A</td> <td>ROW2 – B</td> … Read more