I am trying to implement an SVG logo and would like to dynamically change the colour of it on an event.
At the moment I have simply embedded it:
<embed class="logo" src="images/logo.svg" type="image/svg+xml" pluginspage="http://www.adobe.com/svg/viewer/install/" />
I then use this piece of jQuery to switch the embed for an img tag for webkit browser support.
if ($.browser.webkit) {
$(".logo").replaceWith("<img class=logo src=images/logo.svg type=image/svg+xml pluginspage=http://www.adobe.com/svg/viewer/install/ />")
}
Is it possible to manipulate the fill colour of the SVG using this implementation?
Cheers