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/AVvXsEjqjFa-x-7bK5amMQE2mP9EbFegmnpS7pg67W1PJlNLdQ_9FVpCj3LmsMYBLO9JatKFoJdylpNQode7WdeFyvHrwDsB6gTyoumMxuOzZgBGoGe9hOM3Fb3_wOKiiV5qugQNqqR-frBgPSHa/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/AVvXsEjqjFa-x-7bK5amMQE2mP9EbFegmnpS7pg67W1PJlNLdQ_9FVpCj3LmsMYBLO9JatKFoJdylpNQode7WdeFyvHrwDsB6gTyoumMxuOzZgBGoGe9hOM3Fb3_wOKiiV5qugQNqqR-frBgPSHa/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


Cheap car insurance for ladies personal injury lawyer sarasota fl federal criminal defense attorney cash out structured settlement sell annuity payment california law lemon Psd to WordPress Online casino Donating used cars to charity CHEAP DOMAIN REGISTRATION HOSTING Donate Old Cars to Charity Email Bulk Service Donate a car in Maryland car accident lawyers Make money online Australia Car insurance quotes Utah Online motor insurance quotes Structures Annuity Settlement Cheap Domain Registration Hosting Seo company Business management software small business administration sba STRUCTURED ANNUITY SETTLEMENT Low Credit Line Credit Cards Nunavut Culture Adobe illustrator classes mesotheolima dallas mesothelioma lawyer Donate Car for Tax Credit Social media campaigns DONATING A CAR IN MARYLAND Best Seo company Learning adobe illustrator truck accident attorney los angeles DUI lawyer Casino benchmark lending Criminal defense attorneys Florida criminal defense federal lawyer Tech school Proud Italian cook california motorcycle accident lawyer ONLINE MOTOR INSURANCE QUOTES Best Criminal Lawyers in Arizona Mobile casino World Trade Center Footage holland michigan college Criminal lawyer Miami mesothelioma ct Social media platforms for business See more at http//wwwginfostopnet/ Massage school Dallas Texas ashely madis wisconsin mesothelioma attorney domain yahoo tucson car accident attorney injury attorney baton rouge truck accident attorney texas Auto Accident Attorney Criminal Defense Attorneys Florida Attorney Business finance group personal injury attorney springfield mo Hire php programmers structured settlement brokers Casino reviews DONATING USED CARS TO CHARITY PHD on Counseling Education futuristic architecture selling a structured settlement Car Insurance Quotes MN Hire php developer Psychic for Free Donate Cars in MA Asbestos Lung Cancer Live casino lease management software New social media platforms buy structured settlements Php programmers online criminal justice degree PSYCHIC FOR FREE Hire php developers Donating a car in Maryland Dwi lawyer CAR INSURANCE QUOTES PA Criminal lawyer Bankruptcy lawyer Php programmers for hire data recovery raid How to Donate A Car in California Service business software Criminal defense lawyer mesothelioma lawyer dallas DONATE YOUR CAR FOR KIDS MET AUTO Forensics Online Course Better conferencing calls offshore accident lawyer AUTOMOBILE ACCIDENT ATTORNEY online colledges buying an annuity calculator Computer science classes online domains yahoo car insurance quotes mn structured settlement need cash now Custom WordPress theme designer Donate your car for kids MOTOR REPLACEMENTS Seo companies motorcycle lawyer los angeles mesothelioma law suit Best social media platforms for business ONLINE COLLEDGES Donate Your Car for Kids Personal Injury Lawyers los angeles motorcycle accident lawyer car insurance quotes refinance with bad credit REGISTER FREE DOMAINS WordPress hosting CAR INSURANCE IN SOUTH DAKOTA PAPERPORT PROMOTIONAL CODE MESOTHELIOMA LAW FIRM life insurance co lincoln Seo services WEBEX COSTS Health Records Personal Health Record Donate car for tax credit CAR INSURANCE QUOTES UTAH attorney lawyer mesothelioma Online College Course Best social media platforms saskatchewan auto insurance Online Christmas cards Custom Christmas cards Html email Cheap Car Insurance for Ladies sell my structured settlement Neuson mesothelioma law suits injury lawyers west palm beach Photo Christmas cards WordPress themes for designers accident car florida lawyer Annuity Settlements Italian cooking school selling annuity Social media examiner Social media management business administration masters HOLLAND MICHIGAN COLLEGE Social media platforms structured settlement annuity companies Online Motor Insurance Quotes Christmas cards insurance medical temporary sell your structured settlement payments fast cash for house Psd to html Met auto HARDDRIVE DATA RECOVERY SERVICES mesothelioma litigation WordPress theme designers structured settlemen motor replacements injury lawyers Social media strategies structured settlements annuities Social media tools Mesothelioma Law Firm mesothelioma lawyer houston Donate Car to Charity California anti spam exchange server semi truck accident lawyers Car Insurance Quotes Utah mesothelioma symptoms Car Insurance Quotes Colorado Nunavut culture Donate Your Car Sacramento Sell Annuity Payment Register Free Domains Asbestos Lawyers DONATE CARS IN MA Car insurance quotes pa selling my structured settlement business email web hosting Donating Used Cars to Charity Dayton Freight Lines virtual data rooms Hard drive Data Recovery Services Donate a Car in Maryland Motor Replacements best criminal lawyer in arizona Donating a Car in Maryland Donate Cars Illinois washington mesothelioma attorney Dayton freight lines uk homeowner loans Life Insurance Co Lincoln Holland Michigan College bus accident attorney los angeles CRIMINAL DEFENSE ATTORNEYS FLORIDA Online Colleges Paperport Promotional Code mesothelioma information Business Voip Solutions verizon sip Online Classes mesothelioma lawyer texas mesothelioma lawyer virginia DALLAS MESOTHELIOMA ATTORNEYS Massage School Dallas Texas CAR INSURANCE QUOTES COLORADO mesothelioma law firms structured settlement sell Dallas Mesothelioma Attorneys Met Auto chicago hair laser removal Donate your Car for Money donate old cars to charity NUNAVUT CULTURE Cheap Auto Insurance in VA google affiliate Home Phone Internet Bundle Royalty Free Images Stock structured settlement blog Car Insurance Quotes PA Car Insurance in South Dakota Webex Costs dallas mesothelioma attorneys Cheap Car Insurance in Virginia Better Conference Calls mesothelioma claims earthlink business internet Mortgage Adviser Futuristic Architecture Dedicated Hosting Dedicated Server Hosting structered settlement Car Donate Virtual Data Rooms Automobile Accident Attorney Car Accident Lawyers Data Recovery Raid how to donate a car in california HOW TO DONATE A CAR IN CALIFORNIA Motor Insurance Quotes Donate your car Sacramento meso lawyer royalty free images stock

No hay comentarios:

Publicar un comentario