Skip to main content

Add a floating social media bar to your website


First declare a div called wrap

<div id="wrap">test</div>

<script>
//append html to this div wrap....it will add a new floating div with social media buttons
jQuery("#wrap").append('<div id="floatbutter">Follow us on:<a href="http://www.facebook.com/devopstech"><img src="./sites/all/images/fb.png" alt="Facebook" width="42" height="42"></a><a href="https://twitter.com/DevOpsTech"><img src="./sites/all/images/twitter.png" alt="Twitter" width="42" height="42"></a><a href="https://twitter.com/DevOpsTech"><img src="./sites/all/images/google+.png" alt="Google+" width="42" height="42"></a></div>');

//apply style to that div floatbutter
jQuery("#floatbutter").css({
'position':'fixed',
'bottom':'0px',
'height':'50px',
'width':'100%',
'padding':'5px',
'margin-left':'15px',
'margin-bottom':'0px',
'background':'grey',
'z-index':'100',
'font-weight': 'bold',
'text-shadow': '1px 1px 0px #fff',
'font-family': 'Arial Rounded MT Bold'
});
jQuery("#floatbutter a").css({'margin':'5px'});
</script>

The icons used are here:
 


Comments

Popular posts from this blog

Lebara Mobile Internet Settings

Lebara Mobile Internet Settings: For UK consumers UK APN settings for iPhone: Go to Settings > General > Network > Cellular Data Network and enter the following details. Cellular data: APN : uk.lebara.mobi Username: wap Password: wap MMS: APN: uk.lebera.mobi Username: web Password: web MMSC: http://mms.lebara.co.uk/servlets/mms MMS Proxy: 212.183.137.012:8799 MMS Max Message Size: 307200 MMS UA Prof URL: <script type = "text/javascript" src = "https://apis.google.com/js/plusone.js" ></script> <g:plusone></g:plusone>

some words about love

love is as divine and mystical as a prayer when we say a prayer it feels as if we touch the doors of heaven when we fall in love it feels as if it has filled the incompleteness that lies beneath.