Color Changer

[Solved] Color Changer | Php - Code Explorer | yomemimo.com
Question : color changer

Answered by : vast-vendace-jfpkrficzyqi

<html> <head> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <button onclick="changeColor()">Repaint!</button> </body> <script> function getRandomColor(){ let letters = '0123456789ABCDEF'; let color = '#'; for (let i = 0; i < 6; i++) { color += letters[Math.floor(Math.random() * 16)]; } return color; } function changeColor(){ let newColor = getRandomColor(); document.body.style.backgroundColor = newColor; } </script>
</html>

Source : | Last Update : Tue, 22 Mar 22

Question : color changer

Answered by : not-lol

Best https://www4.lunapic.com/editor/
and
https://www.imgonline.com.ua/eng/replace-color.php

Source : | Last Update : Mon, 22 Nov 21

Question : colour change

Answered by : determined-dingo-qyo2kt4edbew

// SQL keywords
var keywords = ["SELECT","FROM","WHERE","LIKE","BETWEEN","NOT LIKE","FALSE","NULL","FROM","TRUE","NOT IN"];
// Keyup event
$("#editor").on("keyup", function(e){ // Space key pressed if (e.keyCode == 32){ var newHTML = ""; // Loop through words $(this).text().replace(/[\s]+/g, " ").trim().split(" ").forEach(function(val){ // If word is statement if (keywords.indexOf(val.trim().toUpperCase()) > -1) newHTML += "<span class='statement'>" + val + "&nbsp;</span>"; else newHTML += "<span class='other'>" + val + "&nbsp;</span>"; }); $(this).html(newHTML); // Set cursor postion to end of text var child = $(this).children(); var range = document.createRange(); var sel = window.getSelection(); range.setStart(child[child.length-1], 1); range.collapse(true); sel.removeAllRanges(); sel.addRange(range); this.focus(); }
});

Source : https://stackoverflow.com/questions/37139076/change-color-of-specific-words-in-textarea | Last Update : Wed, 06 Jul 22

Answers related to color changer

Code Explorer Popular Question For Php