Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

267
Vistas
How to add background, and border as svg images to a rect element

I have the following code which draws a rect element on the svg box with blue background and pink boarder. I would like to change the blue background with an .svg image and the pink boarder with another .svg image.

 //how to put the border around the SVG element
   var borderRect = document.createElementNS('http://www.w3.org/2000/svg','rect');
   borderRect.setAttribute("id", "bRect");
   borderRect.setAttribute("width", bb.width);
   borderRect.setAttribute("height", newVboxH);
   borderRect.setAttribute("x", bb.x);
   borderRect.setAttribute("y", bb.y);
   borderRect.setAttribute("style","fill:blue;stroke:pink;stroke-width:5;fill-opacity:0.1;stroke-opacity:0.9");
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda