domingo, 22 de junio de 2014

Pop-up caja de me gusta facebook para blogger – School – Hard drive – Accident – Dominios


Una buena idea para mantenernos en contacto con nuestros lectores es mediante las redes sociales, con facebook podemos crear páginas de fans de nuestro sitio web y compartir constantemente nuestras entradas. Una buena forma de asegurarnos de que los que visitan nuestro blog hagan clic en "me gusta" es con un pop-up que se abra cuando visitan nuestro blog.

Para agregar este pop-up a nuestro blog lo que haremos será ir al panel de administración de blogger y entramos en diseño.


Una vez allí hacemos click en añadir un gadget


Agregaremos un gadget del tipo HTML/Javascript


Nos abrirá una nueva ventana en la que pegaremos el siguiente código

script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'/script
style
#fanback {
display:none;
background:rgba(0,0,0,0.8);
width:100%;
height:100%;
position:fixed;
top:0;
left:0;
z-index:99999;
}
#fan-exit {
width:100%;
height:100%;
}
#JasperRoberts {
background:white;
width:420px;
height:270px;
position:absolute;
top:58%;
left:63%;
margin:-220px 0 0 -375px;
-webkit-box-shadow: inset 0 0 50px 0 #939393;
-moz-box-shadow: inset 0 0 50px 0 #939393;
box-shadow: inset 0 0 50px 0 #939393;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
margin: -220px 0 0 -375px;
}
#TheBlogWidgets {
float:right;
cursor:pointer;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtkBHl_C4YqtG-PHmJkpMNoGc42VYk_cId7jUtPCMQ92gMWbRIoc-n1gtahnAy6Jmtqd8JN9xGeiDm6Suhzhh2QOU_km6iXGLjveb4YfePsHUC2yhxMWl7dnpmZ1c-_Q4A_c4thBNBJiHX/s1600/TheBlogWidgets.png) repeat;
height:15px;
padding:20px;
position:relative;
padding-right:40px;
margin-top:-20px;
margin-right:-22px;
}
.remove-borda {
height:1px;
width:366px;
margin:0 auto;
background:#F3F3F3;
margin-top:16px;
position:relative;
margin-left:20px;
}
#linkit,#linkit a.visited,#linkit a,#linkit a:hover {
color:#80808B;
font-size:10px;
margin: 0 auto 5px auto;
float:center;
}
/style


script type='text/javascript'
//![CDATA[
jQuery.cookie = function (key, value, options) {

// key and at least value given, set cookie...
if (arguments.length 1 && String(value) !== "[object Object]") {
options = jQuery.extend({}, options);

if (value === null || value === undefined) {
options.expires = -1;
}

if (typeof options.expires === 'number') {
var days = options.expires, t = options.expires = new Date();
t.setDate(t.getDate() + days);
}

value = String(value);

return (document.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(''));
}

// key and possibly options given, get cookie...
options = value || {};
var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
};
//
/script
script type='text/javascript'
jQuery(document).ready(function($){
if($.cookie('popup_user_login') != 'yes'){
$('#fanback').delay(20000).fadeIn('medium');
$('#TheBlogWidgets, #fan-exit').click(function(){
$('#fanback').stop().fadeOut('medium');
});
}
$.cookie('popup_user_login', 'yes', { path: '/', expires: 7 });
});
/script

div id='fanback'
div id='fan-exit'
/div
div id='JasperRoberts'
div id='TheBlogWidgets'
/div
div class='remove-borda'
/div
iframe allowtransparency='true' frameborder='0' scrolling='no' src='//www.facebook.com/plugins/likebox.php?

href=http://www.facebook.com/BlogUnEstudiantedeInformatica&width=402&height=255&colorscheme=light&show_faces=true&show_border=false&stream=false&header=false'

style='border: none; overflow: hidden; margin-top: -19px; width: 402px; height: 230px;'/iframecenter
span style="color:#a8a8a8;font-size:8px;" id="linkit"Powered by a rel="nofollow" style="color:#a8a8a8;font-size:8px;" href="http://jasperroberts.com"Jasper Roberts Consulting/a - a style="color:#a8a8a8;font-size:8px;" href="http://www.theblogwidgets.com"Widget/a/span/center
/div
/div

Copiamos y pegamos el código anterior como se muestra en esta imagen. Además buscamos la línea que contiene el enlacehttp://www.facebook.com/BlogUnEstudiantedeInformatica y la cambiamos por el enlace de nuestra página de facebook.Finalmente hacemos click en guardar.


Es importante resaltar que este pop-up solo se mostrará una vez a cada visitante, a menos que este borre las cookies. El pop-up se mostrará luego de 20 segundos, sí queremos aumentar o disminuir este tiempo buscamos la línea$('#fanback').delay(20000).fadeIn('medium'); yeditamos el delay que es el tiempo en milisegundos que tarda en mostrarse el pop-up. Es decir, sí son 20000 milisegundos correspondería a 20 segundos. Y sí queremos que se muestre en 10 segundos entonces cambiaríamos 20000 por 10000.

Agregar dos FanPages al pop-up:

En los comentarios de esta entradaAnaTuron preguntaba sí es posible agregar más de una página de fans al pop-up. Si, es posible.

Sí poseemos mas de una página de fans en facebook una buena opción podría ser agregar al menos dos de estas al pop-up, esto lo haremos insertando un nuevo iframe de la caja de facebook cambiando para este el enlace de la fanpage. También hacer un cambio en el css en cuanto a la altura del gadget. El código html para poder agregar dos fanpage es el siguiente:

script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'/script
style
#fanback {
display:none;
background:rgba(0,0,0,0.8);
width:100%;
height:100%;
position:fixed;
top:0;
left:0;
z-index:99999;
}
#fan-exit {
width:100%;
height:100%;
}
#JasperRoberts {
background:white;
width:420px;
height:540px;
position:absolute;
top:58%;
left:63%;
margin:-220px 0 0 -375px;
-webkit-box-shadow:
inset 0 0 50px 0 #939393;
-moz-box-shadow:
inset 0 0 50px 0 #939393;
box-shadow:
inset 0 0 50px 0 #939393;
-webkit-
border-radius: 5px;
-moz-
border-radius: 5px;
border-radius: 5px;
margin: -220px 0 0 -375px;
}
#TheBlogWidgets {
float:right;
cursor:pointer;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtkBHl_C4YqtG-PHmJkpMNoGc42VYk_cId7jUtPCMQ92gMWbRIoc-n1gtahnAy6Jmtqd8JN9xGeiDm6Suhzhh2QOU_km6iXGLjveb4YfePsHUC2yhxMWl7dnpmZ1c-_Q4A_c4thBNBJiHX/s1600/TheBlogWidgets.png) repeat;
height:15px;
padding:20px;
position:relative;
padding-right:40px;
margin-top:-20px;
margin-right:-22px;
}
.remove-borda {
height:1px;
width:366px;
margin:0 auto;
background:#F3F3F3;
margin-top:16px;
position:relative;
margin-left:20px;
}
#linkit,#linkit a.visited,#linkit a,#linkit a:hover {
color:#80808B;
font-size:10px;
margin: 0 auto 5px auto;
float:center;
}
/style


script type='text/javascript'
//![CDATA[
jQuery.cookie =
function (key, value, options) {

// key and at least value given, set cookie...
if (arguments.length 1 && String(value) !== "[object Object]") {
options = jQuery.extend({}, options);

if (value === null || value === undefined) {
options.expires = -
1;
}

if (typeof options.expires === 'number') {
var days = options.expires, t = options.expires = new Date();
t.setDate(t.getDate() + days);
}

value =
String(value);

return (document.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(
''));
}

// key and possibly options given, get cookie...
options = value || {};
var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
};
//
/script
script type='text/javascript'
jQuery(
document).ready(function($){
if($.cookie('popup_user_login') != 'yes'){
$(
'#fanback').delay(20000).fadeIn('medium');
$(
'#TheBlogWidgets, #fan-exit').click(function(){
$(
'#fanback').stop().fadeOut('medium');
});
}
$.cookie(
'popup_user_login', 'yes', { path: '/', expires: 7 });
});
/script

div id='fanback'
div id='fan-exit'
/div
div id='JasperRoberts'
div id='TheBlogWidgets'
/div
div class='remove-borda'
/div
piframe allowtransparency='true' frameborder='0' scrolling='no' src='//www.facebook.com/plugins/likebox.php?

href=http://www.facebook.com/NombreDeLaPrimeraFanPage&width=402&height=255&colorscheme=light&show_faces=true&show_border=false&stream=false&header=false'

style='border: none; overflow: hidden; margin-top: -19px; width: 402px; height: 230px;'/iframe/p
piframe allowtransparency='true' frameborder='0' scrolling='no' src='//www.facebook.com/plugins/likebox.php?

href=http://www.facebook.com/NombreDelaSegundaFanPage&width=402&height=255&colorscheme=light&show_faces=true&show_border=false&stream=false&header=false'

style='border: none; overflow: hidden; margin-top: -19px; width: 402px; height: 230px;'/iframe/pcenter
span style="color:#a8a8a8;font-size:8px;" id="linkit"Powered by a rel="nofollow" style="color:#a8a8a8;font-size:8px;" href="http://jasperroberts.com"Jasper Roberts Consulting/a - a style="color:#a8a8a8;font-size:8px;" href="http://www.theblogwidgets.com"Widget/a/span/center
/div
/div

IMPORTANTE
Solo debemos editar el enlace de nuestras páginas de fans de facebook donde dice:

http://www.facebook.com/NombreDeLaPrimeraFanPage
http://www.facebook.com/NombreDelaSegundaFanPage

Una vez agregado el gadget nuestro pop-up con dos páginas de fans se vería de la siguiente manera:


También te podría interesar:
Slider automático de últimas entradas para blogger
Iconos sociales color azul para blogger
Crear formulario de contacto para blogger
Colocar código en entradas de blog


Online casino city college in miami email bulk service domains yahoo futuristic architecture structured annuity settlement Casino cloud identity and access management selling annuity payments for cash mesothelioma care Forensics online course structured settlement agreement structured settlement company Mobile casino Seo services Live casino Futuristic Architecture Make money online Australia Casino reviews Cheap Car Insurance for Ladies ANNUITY SETTLEMENT hair removal washington dc DUI lawyer Register Free Domains Criminal lawyer california mesothelioma attorney Adobe illustrator classes Personal Injury Lawyers phd in counseling education Social media platforms domain registration yahoo Php programmers MESOTHELIOMA LAW FIRM Hire php programmers personal injury attorney ocala fl Hire php developer Hire php developers Service business software Social media platforms for business workplace accident attorney paperport promotional code new mexico mesothelioma lawyer Online Stock Trading Dwi lawyer Donate Cars in MA WordPress theme designers Tech school BETTER CONFERENCING CALLS Best criminal lawyer in Arizona asbestos lawyers Car Insurance Quotes car insurance quotes Criminal defense lawyer world trade center footage royalty free images stock mesotheloma Bankruptcy lawyer DONATE YOUR CAR FOR MONEY CAR INSURANCE QUOTES UTAH Donate car for tax credit mesothelioma cases student loan consolidation program Php programmers for hire Donate Your Car for Kids Social media campaigns DONATE YOUR CAR FOR KIDS supportpeachtreecom Christmas cards harddrive data recovery services Criminal Defense Attorneys Florida personal injury solicitor car crash attorneys Business Voip Solutions New social media platforms life insurance quotes car insurance companies life insurance co lincoln business email web hosting Paperport Promotional Code PHD IN COUNSELING EDUCATION home phone internet bundle mesothelioma lawyer virginia Seo companies mesothelioma settlements Computer science classes online HOME PHONE INTERNET BUNDLE Photo Christmas cards Better conferencing calls Learning adobe illustrator Asbestos Lawyers Donate Car to Charity California dallas mesothelioma attorneys Business finance group utah mesothelioma lawyer CAR INSURANCE QUOTES COLORADO Dallas Mesothelioma Attorneys auto insurance cost by state best criminal lawyer in arizona caraccidentlawyer Best social media platforms for business injury lawyers auto accident attorney st louis mesothelioma attorney AUTOMOBILE ACCIDENT ATTORNEY LIFE INSURANCE CO LINCOLN Online Christmas cards Injury Lawyers Home Phone Internet Bundle Structures Annuity Settlement Psychic for free mesotheliama attorney lawyer mesothelioma Custom WordPress theme designer saskatchewan auto insurance Best Seo company Business management software Psd to WordPress Best social media platforms DALLAS MESOTHELIOMA ATTORNEYS Best Criminal Lawyers in Arizona Seo company Car Insurance in South Dakota selling my structured settlement WordPress hosting structured settlement investments Custom Christmas cards DONATE YOUR CAR SACRAMENTO Paperport promotional code Virtual Data Rooms asbestos mesothelioma lawsuit WordPress themes for designers Social media management Donating a Car in Maryland Hard drive Data Recovery Services illinois mesothelioma lawyer Donate Cars Illinois MET AUTO structured settlements companies Social media examiner Royalty free images stock wisconsin mesothelioma attorney Html email Insurance Companies Cheap auto insurance in VA mesothelioma suit World Trade Center Footage How to Donate A Car in California california law lemon structured settlement annuity companies Annuity Settlements Donate Car To Charity CALIFORNIA Car Insurance Quotes PA Proud Italian cook cheap car insurance in virginia Psd to html Italian cooking school structured settlements annuities accident car florida lawyer peritoneal mesothelioma NEUSON DONATE CARS ILLINOIS CHEAP CAR INSURANCE FOR LADIES mesothelioma lawyer asbestos cancer lawsuit Social media strategies donate your car for kids Social media tools Online Criminal Justice Degree Mesothelioma Law Firm motorcycle accident attorney sacramento Donate Car for Tax Credit WEBEX COSTS buy structured settlements Met Auto Donate Your Car Sacramento Nunavut Culture Sell Annuity Payment Car Insurance Quotes MN state of california car insurance florida car insurance company Automobile Accident Attorney Car Insurance Quotes Colorado hughes net business refinance with poor credit ONLINECLASSES Motor Replacements Dayton Freight Lines Donate a Car in Maryland Online Motor Insurance Quotes structured settlement sell Cheap Domain Registration Hosting Mortgage Adviser MASSAGE SCHOOL DALLAS TEXAS Auto Mobile Insurance Quote Psychic for Free Cheap Auto Insurance in VA donate old cars to charity Criminal lawyer Miami chicago hair laser removal Car Insurance Quotes Utah Life Insurance Co Lincoln Business VOIP Solutions Holland Michigan College Online Colleges Email Bulk Service injury lawyer houston tx Online Classes criminal defense federal lawyer bus accident attorney los angeles miami personal injury lawyer virtual data rooms Massage School Dallas Texas mesothelioma lawsuits Donate Old Cars to Charity Low Credit Line Credit Cards washington mesothelioma attorney truck accident attorney texas donating used cars to charity cheap domain registration hosting Donate your car Sacramento compare life assurance primary pulmonary hypertension Donate your Car for Money motorcycle accident lawyer california Cheap domain registration hosting cheap auto insurance in va structured settlement need cash now Forensics Online Course Donating Used Cars to Charity PHD on Counseling Education CHEAP DOMAIN REGISTRATION HOSTING Neuson Royalty Free Images Stock BEST CRIMINAL LAWYER IN ARIZONA sell annuity payment Webex Costs CAR INSURANCE IN SOUTH DAKOTA Cheap Car Insurance in Virginia mesothelioma claims Better Conference Calls car accident lawyers west palm beach structered settlement Low credit line credit cards Car Donate anti spam appliance Online College Course mesothelioma attorney assistance Auto Accident Attorney Car Accident Lawyers Data Recovery Raid injury attorney baton rouge

No hay comentarios:

Publicar un comentario