SVG Modified with Query String

Create one SVG that allows you to change colours by changing query string. SVG has code in it to break it down. What is a svg modified with query string How do you make a svg modified with query string? This script and codes were developed by James Nowland on 04 January 2022, Tuesday.

How do I make an svg modified with query string?
  1. SVG Modified with Query String Previews
  2. SVG Modified with Query String HTML Codes
  3. SVG Modified with Query String JS Codes
SVG Modified with Query String Previews

SVG Modified with Query String HTML Codes

<!DOCTYPE html>
<html >
<head>
  <meta charset="UTF-8">
  <title>SVG Modified with Query String</title>
  <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script>


  
  
  
  
</head>

<body>
  <img src="http://jamesnowland.com/demo/svg/html5.min.svg" alt="Default SVG" />

<img src="http://jamesnowland.com/demo/svg/html5.min.svg?bg=FF6138&stroke=00A388&badge-stroke=79BD8F&banners=79BD8F&badge-bg=FFFF9D&logo-circle=FF6138" alt="SVG With query strings" />

<object type="image/svg+xml" data="http://jamesnowland.com/demo/svg/html5.min.svg?bg=FF6138&stroke=00A388&badge-stroke=79BD8F&banners=79BD8F&badge-bg=FFFF9D&logo-circle=FF6138"></object>
  
    <script src="js/index.js"></script>

</body>
</html>

SVG Modified with Query String JS Codes

// Javascript doesn't fire on SVGs unless you view them direct

// Update: or you put them in an object tag.
Do you want hide your ip address?Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup.