Open source portfolio
ReplyWow, I searched for that for a while but it's so simple. Thanks!!!
This week I was building a music player widget with jQuery and decided to make multiple skins available for people to choose from.
I figured I needed to dynamically load the css files with AJAX when the widget is initialized.
This is what I came up with:
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $.ajax({ url:"style.css", success:function(data){ $("<style></style>").appendTo("head").html(data); } }) }) </script>
This solution doesn't work for IE8. Did you find a workaround for that by any chance?