I am wanting to place a link for an affiliate site into corner of my site with javascript.
Would this work to add the code into the head of the theme?
function digital summer(){
echo '<script type="text/javascript" language="javascript">document.write('<style type="text/css">body{position:relative;}</style><div style="position: absolute; top:0px; right:0px; width:156px;height:155px;"><img src="http://www.gatesheaddigitalsummer.com/build/images/gds-badge.png" border="0" width="156" height="155"/></div>');<!--/End of GDS Badge. Thanks for the support! --></script>';
}
add_action('wp_head', 'digital summer');
thanks