Sprout Mobile Rich Media

title shadow

Tips & Tutorials are ideal for users looking for ways to advance their skills.

Add a sprout to your Ning header

Here is the code to add a sprout to your Ning header.

<script type=”text/javascript”>
/**
* Tracking Code Hack: Replace the Header of the network with a swf
**/

var headerSwfUrl    = “http://farm.sproutbuilder.com/load/HAAQ–J3FYnB0soP.swf”;
var headerSwfWidth  = 980;
var headerSwfHeight = 350;
var newHeaderHtml   = ‘<embed src=”‘+headerSwfUrl+’” width=”‘+headerSwfWidth+’” height=”‘+headerSwfHeight+’” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer <http://www.macromedia.com/go/getflashplayer> “> </embed>’;
var headerElement   = document.getElementById(‘xg_masthead’);

//replace the old header with the new one
headerElement.innerHTML = newHeaderHtml;

//change the id as a simple way to remove all css attached to it
headerElement.id    = ‘newheader’;

</script>

Still not finding what you're looking for? Try visiting our Help Desk