Social media has become a great source of traffic for websites and
blogs. Approximately 1.3 billion people use the Facebook, among eight million
people daily views their feeds. It provides you unique traffic and content
readers on a daily basis. In this post, I introduced how to install a Facebook
popup box on your blogger. It helps you greatly to touch with your readers
and reduce your workload.
These next steps provide you an easy guide to add a popup box on
your blogger or website and help you to attach with readers.
1. Login to your blog account, select blog > go to layout and
click add a gadget on your blog.
2. When the popup windows open, select the HTML/JavaScript gadget.
3. Now copy and paste the following code inside the gadget.
"<src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'></script> script <style >
#fbox-background {
: none; display
: background rgba 0,0,0,0.8); (
: 100%; width
: 100%; height
: fixed; position
: 0; top
: 0; left
-index: 99999; z
}
#fbox-close {
: 100%; width
: 100%; height
}
#fbox-display {
: #eaeaea; background
: 5px solid #828282; border
: 340px; width
: 230px; height
: absolute; position
: 32%; top
: 37%; left
--border-radius: 5px; webkit
--border-radius: 5px; moz
-radius: 5px; border
}
#fbox-button {
: right; float
: pointer; cursor
: absolute; position
: 0px; right
: 0px; top
}
#fbox-buttonbefore { :
: "CLOSE"; content
: 5px 8px; padding
: #828282; background
: #eaeaea; color
-weight: bold; font
-size: 10px; font
-family: Tahoma; font
}
#fbox-link#fbox-link , visited a. #fbox-link a , #fbox-link a , hover { :
: #aaaaaa; color
-size: 9px; font
-decoration: none; text
-align: center; text
: 5px; padding
}
</> style
<type='text/javascript'> script
//<![CDATA[ jQuery cookie = function (key, value, options) { .
//and at least value given, set cookie... key (arguments if length > 1 && String . value) ( == "[object Object]") { ! = options jQuery extend . {}, options); ( (value === null || value === undefined) { if options . = -1; expires
}( if options typeof expires === 'number') { . days = options var expires, t = options . expires = new Date . ); ( t . setDate t ( . getDate ) + days); (
}= String value value); ( (document return cookie = [ . encodeURIComponent key), '=', ( options raw . ? value encodeURIComponent : value), ( options expires . '; expires=' + options ? expires . . toUTCString ) ( '', // use expires attribute, max-age is not supported by IE : options path . '; path=' + options ? path . '', : options domain . '; domain=' + options ? domain . '', : options secure . '; secure' ? '' :
]. join '')); (
}
//and possibly options given, get cookie... key = value || {}; options result, decode = options var raw . ? (s) function return s; { } : ; decodeURIComponent return (result = new RegExp( '(?: ^|;) ' + encodeURIComponent( key) + '=( [^;]*)'). exec( document. cookie))? decode ( result[ 1]): null;
};
//]]>
</> script
<type='text/javascript'> script jQuery document) ( ready . function ( $ ( { ) if ( $. cookie( 'popup_facebook_box')! = 'yes') {
$('#fbox-background').delay(5000).fadeIn('medium');
$( '#fbox-button, #fbox-close'). click( function( ) {
$( '#fbox-background'). stop( ). fadeOut ( 'medium');
});
}
$. cookie( 'popup_facebook_box', 'yes',{ path: '/', expires: 7} );});
</> script
<div id='fbox-background'>
<div id='fbox-close'>
</div >
<div id='fbox-display'>
<div id='fbox-button'>
</div >
<iframe allowtransparency='true' frameborder='0' scrolling='no' src='//www.facebook.com/plugins/likebox.php?
href=https://www.facebook.com/aboutpcworld?ref=hl&width=402&height=255&colorscheme=light&show_faces=true&show_border=false&stream=false&header=false'
style='border: none; overflow: hidden; backgroun #fff; width: 339px; height: 200px;'></iframe>
<div id="fbox -link">Powered by <a style="padding-left: 0px;" href="http://helplogger.blogspot.com" rel="nofollow ">Helplogger</a></div >
</div >
</>" div
After adding the code, please replace the https://www.facebook.com/aboutpcworld?ref=hl to your desired page. The widget appears after the five seconds when your page stops loading. If you want to change, change the lesser code
Changing
. delay ( 5000)
4. Now save the gadget by pressing save button.