Mostrando entradas con la etiqueta jQuery. Mostrar todas las entradas
Mostrando entradas con la etiqueta jQuery. Mostrar todas las entradas

Añadir jCarousel en Blogger – Credit – Asesor

jCarousel es un plugin basado en jQuery creado porJan Sorgalla el cual muestra en forma de galería una serie de imágenes. A petición deRetube Lo he configurado para que se pueda utilizar como un simple slider superior.

Puedes ver un ejemplo del slider en esteblog de pruebas.


¿Cómo añadirlo a Blogger?:

Paso 1: Propiedades CSS:

En ''Diseño | Edición HTML'', buscaremos la siguiente sección:
/b:skin

Arriba de esta, pegaremos el siguiente código:

.jcarousel-skin-tango .jcarousel-container {
-moz-border-radius: 10px; /* Bordes redondeados para Firefox*/
-webkit-border-radius: 10px; /*Bordes redondeados para otros navegadores*/
border-radius: 10px; /* Bordes redondeados-valor estándar*/
background: #F0F6F9;
border: 1px solid #346F97;
}

.jcarousel-skin-tango .jcarousel-direction-rtl {
direction: rtl; /* Ignorar*/
}

.jcarousel-skin-tango .jcarousel-container-horizontal {
padding: 20px 40px; /* Ignorar*/
}

.jcarousel-skin-tango .jcarousel-container-vertical {
width: 100px; /* Ignorar*/
height: 720px; /* Ignorar*/
padding: 40px 20px; /*Ignorar*/
}

.jcarousel-skin-tango .jcarousel-clip {

overflow: hidden;
}

.jcarousel-skin-tango .jcarousel-clip-horizontal {
width: 720px; /* Alto del plugin*/
height: 100px; /* ancho del plugin*/
}

.jcarousel-skin-tango .jcarousel-clip-vertical {
width: 100px; /*Ignorar*/
height: 720px; /*Ignorar*/
}

.jcarousel-skin-tango .jcarousel-item {
width: 95px; /*Ancho de cada item*/
height: 95px; /*Alto de cada item*/
}

.jcarousel-skin-tango .jcarousel-item-horizontal {
margin-left: 0; /*Ignorar*/
margin-right: 10px; /*Ignorar*/
}

.jcarousel-skin-tango .jcarousel-direction-rtl .jcarousel-item-horizontal {
margin-left: 10px; /*Ignorar*/
margin-right: 0; /*Ignorar*/
}

.jcarousel-skin-tango .jcarousel-item-vertical {
margin-bottom: 10px; /*Ignorar*/
}

.jcarousel-skin-tango .jcarousel-item-placeholder {
background: #fff; /*Ignorar*/
color: #000; /*Ignorar*/
}

/**
* BOTONES
*/
.jcarousel-skin-tango .jcarousel-next-horizontal {
position: absolute;
top: 43px;
right: 5px;
width: 32px;
height: 32px;
cursor: pointer;
background: transparent url(http://archivos.ayuda-bloggers.info/Scripts%20Recuperados/carousel/jCarousel/next-horizontal.png) no-repeat 0 0;
}

.jcarousel-skin-tango .jcarousel-direction-rtl .jcarousel-next-horizontal {
left: 5px;
right: auto;
background-image: url(http://archivos.ayuda-bloggers.info/Scripts%20Recuperados/carousel/jCarousel/prev-horizontal.png);
}

.jcarousel-skin-tango .jcarousel-next-horizontal:hover,
.jcarousel-skin-tango .jcarousel-next-horizontal:focus {
background-position: -32px 0;
}

.jcarousel-skin-tango .jcarousel-next-horizontal:active {
background-position: -64px 0;
}

.jcarousel-skin-tango .jcarousel-next-disabled-horizontal,
.jcarousel-skin-tango .jcarousel-next-disabled-horizontal:hover,
.jcarousel-skin-tango .jcarousel-next-disabled-horizontal:focus,
.jcarousel-skin-tango .jcarousel-next-disabled-horizontal:active {
cursor: default;
background-position: -96px 0;
}

.jcarousel-skin-tango .jcarousel-prev-horizontal {
position: absolute;
top: 43px;
left: 5px;
width: 32px;
height: 32px;
cursor: pointer;
background: transparent url(http://archivos.ayuda-bloggers.info/Scripts%20Recuperados/carousel/jCarousel/prev-horizontal.png) no-repeat 0 0;
}

.jcarousel-skin-tango .jcarousel-direction-rtl .jcarousel-prev-horizontal {
left: auto;
right: 5px;
background-image: url(http://archivos.ayuda-bloggers.info/Scripts%20Recuperados/carousel/jCarousel/next-horizontal.png);
}

.jcarousel-skin-tango .jcarousel-prev-horizontal:hover,
.jcarousel-skin-tango .jcarousel-prev-horizontal:focus {
background-position: -32px 0;
}

.jcarousel-skin-tango .jcarousel-prev-horizontal:active {
background-position: -64px 0;
}

.jcarousel-skin-tango .jcarousel-prev-disabled-horizontal,
.jcarousel-skin-tango .jcarousel-prev-disabled-horizontal:hover,
.jcarousel-skin-tango .jcarousel-prev-disabled-horizontal:focus,
.jcarousel-skin-tango .jcarousel-prev-disabled-horizontal:active {
cursor: default;
background-position: -96px 0;
}

/**
* BOTONES VERTICALES- IGNORAR
*/
.jcarousel-skin-tango .jcarousel-next-vertical {
position: absolute;
bottom: 5px;
left: 43px;
width: 32px;
height: 32px;
cursor: pointer;
background: transparent url(http://archivos.ayuda-bloggers.info/Scripts%20Recuperados/carousel/jCarousel/next-vertical.png) no-repeat 0 0;
}

.jcarousel-skin-tango .jcarousel-next-vertical:hover,
.jcarousel-skin-tango .jcarousel-next-vertical:focus {
background-position: 0 -32px;
}

.jcarousel-skin-tango .jcarousel-next-vertical:active {
background-position: 0 -64px;
}

.jcarousel-skin-tango .jcarousel-next-disabled-vertical,
.jcarousel-skin-tango .jcarousel-next-disabled-vertical:hover,
.jcarousel-skin-tango .jcarousel-next-disabled-vertical:focus,
.jcarousel-skin-tango .jcarousel-next-disabled-vertical:active {
cursor: default;
background-position: 0 -96px;
}

.jcarousel-skin-tango .jcarousel-prev-vertical {
position: absolute;
top: 5px;
left: 43px;
width: 32px;
height: 32px;
cursor: pointer;
background: transparent url(http://archivos.ayuda-bloggers.info/Scripts%20Recuperados/carousel/jCarousel/prev-vertical.png) no-repeat 0 0;
}

.jcarousel-skin-tango .jcarousel-prev-vertical:hover,
.jcarousel-skin-tango .jcarousel-prev-vertical:focus {
background-position: 0 -32px;
}

.jcarousel-skin-tango .jcarousel-prev-vertical:active {
background-position: 0 -64px;
}

.jcarousel-skin-tango .jcarousel-prev-disabled-vertical,
.jcarousel-skin-tango .jcarousel-prev-disabled-vertical:hover,
.jcarousel-skin-tango .jcarousel-prev-disabled-vertical:focus,
.jcarousel-skin-tango .jcarousel-prev-disabled-vertical:active {
cursor: default;
background-position: 0 -96px;
}


Paso 2: Añadiendo la sección:

Ahora busca la siguiente sección en tu plantilla:
div id='content-wrapper'
Si utilizas una plantilla del Diseñador de Blogger busca la siguiente sección:
div class='main-outer'

Debajo de esta, pega el siguiente código:
div class='jcarousel-skin-tango' id='mycarousel'
ul

lia href='URL_ENLACE'img alt='' height='95' src='IMAGEN 1' width='95'//a/li

lia href='URL_ENLACE'img alt='' height='95' src='IMAGEN 2' width='95'//a/li

lia href='URL_ENLACE'img alt='' height='95' src='IMAGEN 3' width='95'//a/li

lia href='URL_ENLACE'img alt='' height='95' src='IMAGEN 4' width='95'//a/li

lia href='URL_ENLACE'img alt='' height='95' src='IMAGEN 5' width='95'//a/li

lia href='URL_ENLACE'img alt='' height='95' src='IMAGEN 6' width='95'//a/li

lia href='URL_ENLACE'img alt='' height='95' src=IMAGEN 7' width='95'//a/li

lia href='URL_ENLACE'img alt='' height='95' src='IMAGEN 8' width='95'//a/li

lia href='URL_ENLACE'img alt='' height='95' src=IMAGEN 9' width='95'//a/li

lia href='URL_ENLACE'img alt='' height='95' src='IMAGEN 10' width='95'//a/li

lia href='URL_ENLACE'img alt='' height='95' src='IMAGEN 11' width='95'//a/li

lia href='URL_ENLACE'img alt='' height='95' src='IMAGEN 12' width='95'//a/li

/ul
/div

Reemplaza cada valor por el correspondiente.

Paso 3: Añadiendo el script y haciendo el llamado a las funciones:


Ahora busca la siguiente sección:
/head
Arriba de esta pega el siguiente código:
script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' type='text/javascript'/
script src='http://archivos.ayuda-bloggers.info/Scripts%20Recuperados/carousel/jCarousel/jquery.jcarousel.min.js' type='text/javascript'/
script type='text/javascript'
jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel({
});
});
/script


Previsualiza los cambios y si el resultado es satisfactorio guardalos.


Importante:

  • Si el carrusel se vé muy ancho o muy estrecho para tu blog, modifica los valores width en la zona CSS (Están descritas algunas funciones).
  • Para cambiar el tamaño de las imágenes, deberás modificar los siguientes valores en la zona CSS:
width: 95px; /*Ancho de cada item*/
height: 95px; /*Alto de cada item*/
  • También deberás cambiar el valor width y height de cada imagen del paso 2 (Por defecto están en 95).
  • Para cambiar las imágenes de los botones, deberás manejar cómo usar sprites (Una imagen que contenga varias).

Donate Car To Charity CALIFORNIA DONATE CAR FOR TAX CREDITDONATE CARS IN MADONATE YOUR CAR SACRAMENTOHOW TO DONATE A CAR IN CALIFORNIA DONATE YOUR CAR FOR KIDS,CAR INSURANCE QUOTES COLORADO ,NUNAVUT CULTURE,DAYTON FREIGHT LINESHARDDRIVE DATA RECOVERY SERVICES,DONATE A CAR IN MARYLAND,MOTOR REPLACEMENTS,CHEAP DOMAIN REGISTRATION HOSTING,DONATING A CAR IN MARYLANDMundial Football free legal advice,FIFA World Cup cheap web hosting donde me dieron un available domain name,cheap domain name registration,pero salio muy caro y mejor me hice student credit card ,accept credit pero me recomendaron mejor utilizar credit counseling service donde tienen un mejor soporte y credito support stocking pero mejor me compre un linux hosting y mejor me afilie a affiliate programs pero buy �web position gold�,microsoft certification,Mesothelioma law firm,Selling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

michigan motorcycle accident lawyer Donate cars in ma buyer of structured settlement annuity Online Motor Insurance Quotes Mobile casino domain name yahoo mesothelioma attorney california Annuity Settlements Online casino injury lawyers accident attorneys orange county la personal injury lawyer verizon sip Gas/Electricity AUTO ACCIDENT ATTORNEY mesothelioma law suits Home phone internet bundle Live casino selling structured settlement mesothelioma lawsuits DONATE CARS IN MA mesothelioma charities CAR INSURANCE QUOTES PA Car Insurance Quotes Utah Best Seo company Low credit line credit cards fortis health insurance temporary Tech school Casino Php programmers for hire accident attorney orange county firm law mesothelioma Seo services Hire php developers attorney lawyer mesothelioma Seo companies MORTGAGE ADVISER Donate Old Cars to Charity Royalty free images stock hair removal washington dc Car Accident Lawyers CAR INSURANCE IN SOUTH DAKOTA Data Recovery Raid Bankruptcy lawyer Make money online Australia Casino reviews Register free domains car accident lawyer san bernardino Auto Mobile Shipping Quote Psychic for Free DUI lawyer car insurance quotes pa utah mesothelioma lawyer Custom WordPress theme designer Social media management donating used cars to charity Hire php developer mesothelioma lawyer chicago Hire php programmers car accident lawyers west palm beach maritime lawyer houston personal injury attorney ocala fl mesothelioma attorney florida BETTER CONFERENCING CALLS structured settlement investments Christmas cards Dwi lawyer Social media platforms for business car insurance quotes personal injury accident lawyer dui lawyer scottsdale CAR INSURANCE QUOTES MN Donate Your Car for Kids personal injury law firm HOW TO DONATE A CAR IN CALIFORNIA Criminal defense attorneys Florida Criminal lawyer Social media strategies structured annuity settlement Dayton Freight Lines Service business software Donate car for tax credit Insurance Criminal defense lawyer car accident lawyers structured settlement buyer PAPERPORT PROMOTIONAL CODE Mesothelioma Law Firm Best social media platforms Seo company How to Donate A Car in California holland michigan college Personal Injury Lawyer car insurance quotes mn Donating a Car in Maryland business voip solutions integrated ehr Donate Your Car Sacramento mesothelioma ct WORLD TRADE CENTER FOOTAGE structured settlement purchasers Computer science classes online mesothelioma help Car Insurance Quotes Colorado Php programmers Asbestos Lung Cancer Car Donate Best social media platforms for business New social media platforms Met auto truck accident attorney los angeles Business finance group structured settlement company Online Classes Automobile Accident Attorney

Share:

Advertencia de contenido en Blogger – Registros – Domains – coche

En este tutorial mostraré cómo añadir una advertencia de contenido en un blog que contenga material no apto para menores de edad. La idea de este plugin es que mantenga un límite mediante un bloqueador de contenido basado en jQuery el cual se sobrepone delante del blog.

Puedes ver un ejemplo visitando esteblog de pruebas, o bien observando la imagen siguiente:




¿Cómo añadirlo a Blogger?

Paso 1: Añadiendo CSS:

En ''Diseño | Edición HTML'' buscaremos la siguiente sección:
/b:skin

Arriba de esta, pega el siguiente código:
/*Advertencia contenido CSS*/
#aceptar{
cursor: pointer;
text-decoration:none;
color: #fff;
}
#oculto{
display:none;
position:fixed;
_position:absolute; /* hack para internet explorer 6*/
height:100%;
width:100%;
top:0;
left:0;
background:#000000;
border:1px solid #cecece;
z-index:1;
}
#advertencia{
display:none;
position:fixed;
_position:absolute; /* hack para internet explorer 6*/
height:600px;
width:400px;
background:#000;
z-index:2;
color:#fff;
padding:12px;
font-size:13px;
}
#advertencia h1{
text-align:left;
color:#fff;
font-size:22px;
font-weight:700;
border-bottom:2px solid #D3D3D3;
padding-bottom:2px;
margin-bottom:20px;
}
#advertencia a {
font-size:18px;
line-height:14px;
color:#fff;
font-weight:700;
}
#advertencia a{
cursor: pointer;
text-decoration:none;
color: #fff;
}
#aceptar{
font-size:18px;
line-height:14px;
color:#fff;
font-weight:700;
}

Paso 2: Añadiendo jQuery, el script y las funciones:

Ahora busca la siguiente sección en tu plantilla:
/head

Arriba de ésta, pega el siguiente código:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript"></script>
<script src="https://sites.google.com/a/blogsydescargas.co.cc/ayudabloggers/scripts2/jquery.cookie.js" type="text/javascript"></script>
<script type="text/javascript">
var popupStatus = 0;
//this code will load popup with jQuery magic!
function loadPopup(){
//loads popup only if it is disabled
if(popupStatus==0){
$("#oculto").css({
"opacity": "1"
});
$("#oculto").fadeIn("slow");
$("#advertencia").fadeIn("slow");
popupStatus = 1;
}
}

//This code will disable popup when click on x!
function disablePopup(){
//disables popup only if it is enabled
if(popupStatus==1){
$("#oculto").fadeOut("slow");
$("#advertencia").fadeOut("slow");
popupStatus = 0;
}
}

//this code will center popup
function centerPopup(){
//request data for centering
var windowWidth = document.documentElement.clientWidth;
var windowHeight = document.documentElement.clientHeight;
var popupHeight = $("#advertencia").height();
var popupWidth = $("#advertencia").width();
//centering
$("#advertencia").css({
"position": "absolute",
"top": windowHeight/2-popupHeight/2,
"left": windowWidth/2-popupWidth/2
});
//only need force for IE6
$("#oculto").css({
"height": windowHeight
});

}
//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
if ($.cookie("anewsletter") != 1) {
//centering with css
centerPopup();
//load popup
loadPopup();
}
//CLOSING POPUP
//Click the x event!
$("#aceptar").click(function(){
disablePopup();
$.cookie("anewsletter", "1", { expires: 1 });


});
//Press Escape event!
$(document).keypress(function(e){
if(e.keyCode==27 && popupStatus==1){
disablePopup();

}
});
});
</script>


Paso 3: Añadiendo el contenido:

Por último busca la siguiente sección:
/body
Arriba de esta, pega el siguiente código:

div id='advertencia'
h1Este sitio web contiene material sexual explícito./h1
center
img border='0' src='http://3.bp.blogspot.com/-31VVSrpgzy4/TfmULHOu11I/AAAAAAAABHA/TuA9eFxhwtU/s1600/stop-icon.png'//center
p id='contenido'
Para poder entrar debes certificar lo siguiente:
pBajo la ley de gobierno de mi país he llegado a la mayoría de edad requerida para ver material sexual explícito y estoy accediendo a esta web desde un lugar donde el contenido sexual explícito es legal y permitido. /p

pNo voy a permitir a cualquier persona a acceder a esta página web que no esté legalmente autorizado para hacerlo./p

p
a href='javascript:history.back()'¡Ir atrás!/a/p

pa id='aceptar'Soy mayor de edad, ¡ENTRAR!/a/p

/p
/div
div id='oculto'/

Guarda los cambios y listo.


Importante:
  • Al script se le ha seteado una cookie de 1 día, por lo que si presionas en ''Mostrar contenido'', la siguiente vez tomará un día en volver en aparecer. Para evitar presionar sobre el enlace para mostrar contenido, puedes presionar la tecla ESC de tu teclado ya que se le ha atribuido el evento de cierre sin cookie.
  • Recuerda que si tienes demasiado sobrecargado el blog, es muy posible que el script tarde en aparecer, por lo tanto el contenido explícito tarde en ocultarse.

MESOTHELIOMA LAW FIRMDONATE CAR TO CHARITY CALIFORNIAHARDDRIVE DATA RECOVERY SERVICESDONATE A CAR IN MARYLAND DONATING A CAR IN MARYLAND,DONATE CARS ILLINOIS,CRIMINAL DEFENSE ATTORNEYS FLORIDA ,BEST CRIMINAL LAWYER IN ARIZONASTRUCTURED ANNUITY SETTLEMENT,ASBESTOS LAWYERS,NUNAVUT CULTURE,DAYTON FREIGHT LINES ,Bextra Bankruptcy Dental Plan Private JetMundial Football Mesothelioma law firm,mega life and health FIFA World Cup es un buen servicio en las distintas naciones trans union pero resulto que tenia cancer y fui a asbestos cancer y me dijeron en asbestos mesothelioma que tambien padecia de prostate cancer treatment y un daño tremendo a mi organismo fui a malignant pleural mesothelioma,asi que hice un prestamo en credit repair y otro en chase credit pero de pronto un anti spam software asi que decido un auto en rental car in costa rica me registre en Facebook en internet domain registration y tambien obtuve un domain registration,Selling annuity payments for cash,Selling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

WordPress themes for designers structured settlemen DONATE CAR FOR TAX CREDIT mortgage adviser hair removal washington dc cheap car insurance in virginia ONLINECLASSES cash out structured settlement ONLINE MOTOR INSURANCE QUOTES Php programmers for hire Sell Annuity Payment Online casino Donate your car for kids Massage School Dallas Texas Make money online Australia mesothelioma settlements mesothelioma lawyer houston Best social media platforms for business Italian cooking school Social media management Health Records Personal Health Record forensics online course Forensics Online Course mesothelioma lawyer dallas Attorney houston motorcycle accident lawyer Donating used cars to charity CAR INSURANCE QUOTES UTAH Donate Your Car Sacramento mesothelioma help Register Free Domains most profitable internet business ashely madis Mortgage adviser Casino personal injury attorney springfield mo Business VOIP Solutions Mobile casino AUTO ACCIDENT ATTORNEY Best social media platforms Met Auto donate car for tax credit los angeles auto accident attorneys automobile accident attorney Custom Christmas cards Hire php programmers Life Insurance Co Lincoln lease management software illinois mesothelioma lawyer average mesothelioma settlement LOW CREDIT LINE CREDIT CARDS Paperport Promotional Code MET AUTO domains yahoo FUTURISTIC ARCHITECTURE car accident lawyer san bernardino motorcycle accident attorney chicago Christmas cards Auto Accident Attorney boca raton personal injury attorney Psd to WordPress small business administration sba Live casino motorcycle lawyer los angeles CAR INSURANCE IN SOUTH DAKOTA Casino reviews New social media platforms motorcycle accident lawyer california DUI lawyer Nunavut Culture mesothelioma attorney florida CAR INSURANCE QUOTES MN Massage school Dallas Texas Mesothelioma Law Firm Best Seo company Donate a car in Maryland domain registration yahoo workers compensation lawyer los angeles DONATE A CAR IN MARYLAND asbestos exposure lawyers Hire php developers Car Insurance Quotes Colorado selling a structured settlement Car Insurance Companies Business Voip Solutions Business finance group Dwi lawyer World Trade Center Footage phd in counseling education Neuson Dayton freight lines cheap auto insurance in va verizon sip mesothelioma drug Auto Mobile Shipping Quote mesotheolima accident attorney orange county Better conferencing calls motorcycle accident lawyer san francisco purchase structured settlements Low Credit Line Credit Cards Custom WordPress theme designer Donate Your Car for Kids car donate Criminal lawyer Computer science classes online Service business software Data Recovery Raid Motor Insurance Quotes Criminal defense lawyer Hire php developer Seo services mesothelioma lawsuits Bankruptcy lawyer harddrive data recovery services

Share:

Botones flotantes para compartir (Incluído el botón +1) – Arquitectura – coche

Previamente había creado mediante jQuery una forma de mostrarbotones para compartir en Twitter y Facebook flotando en el blog. En esta oportunidad, modificando un poco los valores añadí una tercera función:El botón +1 de Google.

Este botón se puede implementar añadiendo los botones para compartir debajo de cada entrada, pero para algunos no es una opción fiable ya que utilizamos otros métodos para compartir nuestro contenido y sería redundante tener duplicaciones de los botones.

Recomiendo el uso de este botón ya que de la cantidad de votaciones que obtengamos en nuestras entradas, se valdrá nuestra posición en Google.

Vista previa de los botones:


Añadiendo esta función en Blogger:


Paso 1: Añadiendo la sección:

En ''Diseño | Edición HTML'' buscamos la siguiente línea:
data:post.body/
Arriba de esta, pegaremos el siguiente código:

b:if cond='data:blog.pageType == "item"'

div id='cajaflotante'

div class='boton'
a class='twitter-share-button' data-count='vertical' data-lang='es' data-via='NOMBRE-TWITTER' href='http://twitter.com/share'Tweet/ascript src='http://platform.twitter.com/widgets.js' type='text/javascript'/ /div

div class='boton'
diviframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=box_count&show_faces=false&width=53&height=65&action=like&font=arial&colorscheme=light&send=false"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:73px; height:65px;'//div /div

div class='plusbutton'
script src='http://apis.google.com/js/plusone.js' type='text/javascript'/
g:plusone expr:href='data:post.url' size='tall'/
/div

/div
/b:if

Reemplaza lo que está en color rojo por tu nombre de usuario en Twitter


Paso 2: Añadiendo CSS:

Ahora buscaremos la siguiente línea:
/b:skin

Arriba de esta, pegaremos el siguiente código:
#cajaflotante {
float: right;
margin-left: -92px;
background: #fff;
position: absolute;
-moz-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 5px 5px 5px #C0C0C0;
-webkit-box-shadow: 5px 5px 5px #C0C0C0;
}
#cajaflotante .boton {
margin:0px auto;
padding: 5px;
}

#cajaflotante .plusbutton {
margin:0px auto;
padding:0 15px;
}


Paso 3: Añadiendo jQuery a la plantilla:

Omite este paso si ya tienes jQuery instalado en tu Blog.

Ahora buscaremos la siguiente línea:
/b:skin
Inmediatamente después de esta, pegaremos el siguiente código:
script src='http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js' type='text/javascript'/script


Paso 4: Añadiendo el script:

Ahora buscaremos la siguiente sección:
/head
Arriba de esta, pega el siguiente código:
script type='text/javascript'
$(document).ready(function() {
var $sidebar = $("#cajaflotante"),
$window = $(window),
offset = $sidebar.offset(),
topPadding =65;
$window.scroll(function() {
if ($window.scrollTop() offset.top) {
$sidebar.stop().animate({
marginTop: $window.scrollTop() - offset.top + topPadding
});
} else {
$sidebar.stop().animate({
marginTop: 0
});
}
});
});
/script

Ahora guarda los cambios y listo:

MESOTHELIOMA LAW FIRMDONATE CAR TO CHARITY CALIFORNIAHARDDRIVE DATA RECOVERY SERVICESDONATE A CAR IN MARYLAND DONATING A CAR IN MARYLAND,DONATE CARS ILLINOIS,CRIMINAL DEFENSE ATTORNEYS FLORIDA ,BEST CRIMINAL LAWYER IN ARIZONASTRUCTURED ANNUITY SETTLEMENT,ASBESTOS LAWYERS,NUNAVUT CULTURE,DAYTON FREIGHT LINES ,Bextra Bankruptcy Dental Plan Private JetPero tuve que ser Mundial Football consolidating FIFA World Cup web host rating,register web address,online psychology degree,her first lesbian sex, make extra money ,make money fast and easy,addwords y mejor obtuve un credit application,visa gift carda,Mesothelioma law firm,voip phone service,Selling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

student loan consolidation program Social media tools Live casino personal injury accident lawyer domain registration yahoo Attorney Online casino Custom Christmas cards selling a structured settlement CRIMINAL DEFENSE ATTORNEYS FLORIDA Mesothelioma Law Firm Business finance group AUTOMOBILE ACCIDENT ATTORNEY CAR ACCIDENT LAWYERS mesothelioma law suit mesothelioma compensation Casino Donate Car to Charity California best consolidation loan student Php programmers for hire Social media platforms for business mesothelioma symptoms NUNAVUT CULTURE Mobile casino CAR DONATE Photo Christmas cards sell annuity payment CHEAP CAR INSURANCE IN VIRGINIA Donate car to charity California Hire php developers MET AUTO Online Christmas cards buyer of structured settlement annuity best criminal lawyer in arizona structured settlement agreement Make money online Australia florida car insurance company mesothelioma ct register free domains Forex Trading Platform Online Colleges anti spam appliance Nunavut Culture Casino reviews How to donate a car in California Donate Your Car Sacramento futuristic architecture DUI lawyer DONATING A CAR IN MARYLAND Dallas mesothelioma attorneys Dwi lawyer buying an annuity calculator Mortgage adviser what is structured settlement Criminal lawyer Dedicated Hosting Dedicated Server Hosting Christmas cards Donate Car for Tax Credit Car Insurance Quotes MN Hire php programmers structured settlement cash out Seo companies Psychic for Free PHD IN COUNSELING EDUCATION Online motor insurance quotes broward county dui lawyer Criminal defense lawyer Cheap Domain Registration Hosting Car Accident Lawyers DONATE A CAR IN MARYLAND Webex Costs chicago hair laser removal DONATE OLD CARS TO CHARITY WEBEX COSTS Service business software Holland Michigan College Bankruptcy lawyer Hire php developer Met auto massage school dallas texas Computer science classes online Business management software Php programmers LIFE INSURANCE CO LINCOLN Insurance Companies Car Insurance Quotes Colorado Best social media platforms for business Online Criminal Justice Degree domain name yahoo Html email Adobe illustrator classes Car Insurance Quotes PA FORENSICS ONLINE COURSE data recovery raid New social media platforms ONLINE MOTOR INSURANCE QUOTES Donating a Car in Maryland mortgage adviser low credit line credit cards Cheap car insurance for ladies Auto Mobile Insurance Quote selling annuity payments for cash Social media examiner LOW CREDIT LINE CREDIT CARDS Futuristic Architecture accident attorney orange county mesothelioma cases home phone internet bundle Custom WordPress theme designer Car insurance in South Dakota Motor Replacements Donating a car in Maryland Best Seo company Seo services Tech school

Share:

Traductor flotante con jQuery en Blogger – PHD

Habíamos visto con anterioridadcómo añadir un sistema traductor en la sidebar en Blogger, en esta oportunidad creé uno a base del anterior, pero que éste tuviese la propiedad de ser flotante y animado a base de jQuery.

Puedes ver trabajando el script en esteblog de pruebas

¿Cómo añadirlo en Blogger?

Paso 1: Añadiendo jQuery:
Importante: Si tienes jQuery instalado en tu plantilla no hará falta volverlo a añadir.

En ''Diseño | Edición HTML'' selecciona ''Expandir plantillas de artilugios''. Busca la siguiente línea:
/b:skin

Debajo de esta, pega el siguiente código:
script src='http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js' type='text/javascript'/

Paso 2: Añadiendo los valores y atributos del script:

Ahora busca la siguiente sección:
/head
Arriba de esta, pega el siguiente código:
script type='text/javascript'
$(document).ready(function() {
var $sidebar = $("#traductor"),
$window = $(window),
offset = $sidebar.offset(),
topPadding = 55;
$window.scroll(function() {
if ($window.scrollTop() > offset.top) {
$sidebar.stop().animate({
marginTop: $window.scrollTop() - offset.top + topPadding
});
} else {
$sidebar.stop().animate({
marginTop: 0
});
}
});
});
/script

Paso 3: Añadiendo los estilos y flotaciones:

Ahora busca la siguiente línea:
/b:skin
Debajo de ésta pega el siguiente fragmento CSS:
#traductor {
float: left;
margin-left: 251px;
background: #000;
position: absolute;
border-radius: 6px;
width:40px;
border:6px solid #fff;
}
#traductor .contenido {
clear: left;
padding: 8px;
}

Guarda todos los cambios y listo.


Paso 4: Añadiendo el gadget:

Ahora en ''Diseño | Elementos de la página'' agrega un gadget ''HTML/Javascript'', en el cual deberás pegar el siguiente código:
div id='traductor'
div class='contenido'
a class="google_translate" href="#" target="_blank" rel="nofollow" title="English" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7Cen&hl=en'); return false;"img alt="English" border="0" align="absbottom" title="English" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8xv2GJUYp-W-7oLE5czQcTNCmHQurAtzM4Cdurcv03I8xB9T6zrT7Guq6aMlmtmza363fTTVKm1Ul3sb1IhiusQZMDSPpzNm1pOsp2FpxbJO8Q8WTVy1xH8_3QzlSiZokRkmHvjV5PiM/s200/United+Kingdom(Great+Britain).png" style="cursor: pointer;margin-right:8px" width="24"//a
a class="google_translate" href="#" target="_blank" rel="nofollow" title="French" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7Cfr&hl=en'); return false;"img alt="French" border="0" align="absbottom" title="French" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitMPPiOgekdoVztleFf-EyBLqIv8aLfXuVT7IaB_fLSQiR7T57PAIsFowpujBToV_aZLsa7zWECrL6jYkEpE7bhFJr9T-i7vYdjQeeylmPOX0zA_dpnGpURlkPkThuERPDO2akae6VxSo/s200/France.png" style="cursor: pointer;margin-right:8px" width="24"//a
a class="google_translate" href="#" target="_blank" rel="nofollow" title="German" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7Cde&hl=en'); return false;"img alt="German" border="0" align="absbottom" title="German" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2rF2SV3eo-D_hKuXrigFOZmdPukSmbRlDOd8H-9k3iFdX6C86veaJLeajIN-0UNagWmSaHsWpVzUbxxHXjjSR4Ru_NSPDUuQThx2wfDvjF52AIChr6dpedAfB2vXJsQLNKB6sfPvD_Mk/s200/Germany.png" style="cursor: pointer;margin-right:8px" width="24"//a
a class="google_translate" href="#" target="_blank" rel="nofollow" title="Spanish" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7Ces&hl=en'); return false;"img alt="Spanish" border="0" align="absbottom" title="Spanish" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqv-XPkowjkfs9QTiISje_t0J3d8CBGUzX0qT2FR0AUkWDN7xPRScMbhpQooIsZ3-oTFoadU-osrGmCjSzd2ijAPfIi9Umov6m6EX8ho49h-3Qd5pbzbmUU4d-Wo87rCKa9IpQTSfb6cI/s200/Spain.png" style="cursor: pointer;margin-right:8px" width="24"//a
a class="google_translate" href="#" target="_blank" rel="nofollow" title="Italian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7Cit&hl=en'); return false;"img alt="Italian" border="0" align="absbottom" title="Italian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdOBcwK_xjA1LUJIcrsHtVqsVc2u8SW1xLdBa4DMf4KDA7JZLDjeMc17lGNd-HY-kcvt6r4BVUYGk2x8V1W8i4x_DBXoMZTosioy5W5W1j9dyAVV363Af26Me9VUsfePYP6ExkMUY7fik/s200/Italy.png" style="cursor: pointer;margin-right:8px" width="24"//a
a class="google_translate" href="#" target="_blank" rel="nofollow" title="Dutch" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7Cnl&hl=en'); return false;"img alt="Dutch" border="0" align="absbottom" title="Dutch" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJmZnExMhFRHjMxUETKP4lLLlTYSdacCiLKpGh6u5IuyOc80XtkH_BL2X5Y29WZuoMtC9JhHekYKWGqmcZjZVDc2VAjy4c6gX-0m2JWdfmlHYHEUHKjDVvKYD-3IMF0kohHcNMvuYCj4M/s200/Netherlands.png" style="cursor: pointer;margin-right:8px" width="24"//a
a class="google_translate" href="#" target="_blank" rel="nofollow" title="Russian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7Cru&hl=en'); return false;"img alt="Russian" border="0" align="absbottom" title="Russian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAZzizIygDVhFxSSR0T55bPCYZTZSY2r14kWJhrTYyOFJTl9LqXBbjsVllz7Vfq3I7OpzWYS95HvvJ8i5i_Lt7wcGGb7X1UDN2SvZLWOwSO-WJcyZ9oCgnhiS3LD0UyiFsrFWx2gYZpUg/s200/Russian+Federation.png" style="cursor: pointer;margin-right:8px" width="24"//a
a class="google_translate" href="#" target="_blank" rel="nofollow" title="Portuguese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7Cpt&hl=en'); return false;"img alt="Portuguese" border="0" align="absbottom" title="Portuguese" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2SswF4Ag3CVG7PceJdTVCX5ZlbChKim9dTupc5HUEQYhcnuyK-rnCzmmLKW4wZ0svHupd8VWzLGNYC-wPy6WeBwI_mgsuFb31CyYgDbj4Tv_FFSdA6GXk5WafyVuXzRENg9YqI7YXu2k/s200/Brazil.png" style="cursor: pointer;margin-right:8px" width="24"//a
a class="google_translate" href="#" target="_blank" rel="nofollow" title="Japanese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7Cja&hl=en'); return false;"img alt="Japanese" border="0" align="absbottom" title="Japanese" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_KzLL23n9tppzkVGaJ2L8yiVZODn6NcGrD_Zo1bA3QMWRBvXDiPsvIN0HQlxrFJwh3r_YEtO2MoK11Jo7n0_kn_CHjbMA4q5zBjlsUxLV0V7g9ml6EqZXCUTbL3ndmdNH57gvC4BZ2l8/s200/Japan.png" style="cursor: pointer;margin-right:8px" width="24"//a
a class="google_translate" href="#" target="_blank" rel="nofollow" title="Korean" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7Cko&hl=en'); return false;"img alt="Korean" border="0" align="absbottom" title="Korean" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSS0m2i0kV_pARCh0UyrLkk2W_Y9pfkmG4IKzWclFAeR-jLs3kwHNvQiYsh-hMsY-Ulg4HdLkh9ysVqeQ5x7PYOaCPQB7hMoYN9ISxXiWqM1vSz0vRL6NQ2PjsupvWCAQDgK0fAmFLIOE/s200/South+Korea.png" style="cursor: pointer;margin-right:8px" width="24"//a
a class="google_translate" href="#" target="_blank" rel="nofollow" title="Arabic" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7Car&hl=en'); return false;"img alt="Arabic" border="0" align="absbottom" title="Arabic" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTYh6XqzzH2IKmR_0rDZEIpbAG3wnDXu5W2yBF7RldF16weI8FG2qwobwefW5EGLp9IaIpLFMKA_iweRhyphenhyphen_vceSTp0VZSLMriyRuqwOnoAWU-dIhEC_q18JWLdZbo61Q7tjVN-CR6YcRY/s200/Saudi+Arabia.png" style="cursor: pointer;margin-right:8px" width="24"//a
a class="google_translate" href="#" target="_blank" rel="nofollow" title="Chinese Simplified" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7Czh-CN&hl=en'); return false;"img alt="Chinese Simplified" border="0" align="absbottom" title="Chinese Simplified" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdDKtN17bGf2KgNgmgRFTkNl7Co3_tSlj-8YPdLJU201Dbl7evzxxnBXtCU3kq0YlWCrm5mt4-OSg1iR8TKRHN-RgEzB9n3gyFUaO-nv4hojWdWzW0IRvYOiiGr_5AJRIWZIbBGG142to/s200/China.png" style="cursor: pointer;margin-right:8px" width="24"//a
/div
/div

Guarda el gadget y listo.


Consideraciones:

  • Si el traductor se ve sobrepuesto o muy lejos, cambia el siguiente atributo:
margin-left: 251px;
Un valor mayor o menor hará que el gadget aumente el margen o disminuya.


  • Si deseas que el traductor aparezca a la izquierda, simplemente utiliza un valor negativo, es decir:
margin-left: -600px;
Recuerda que ninguna plantilla es igual a otra, por lo que deberás setear manualmente el valor para darle una mejor ubicación.

MESOTHELIOMA LAW FIRMDONATE CAR TO CHARITY CALIFORNIAHARDDRIVE DATA RECOVERY SERVICESDONATE A CAR IN MARYLAND DONATING A CAR IN MARYLAND,DONATE CARS ILLINOIS,CRIMINAL DEFENSE ATTORNEYS FLORIDA ,BEST CRIMINAL LAWYER IN ARIZONASTRUCTURED ANNUITY SETTLEMENT,ASBESTOS LAWYERS,NUNAVUT CULTURE,DAYTON FREIGHT LINES ,Bextra Bankruptcy Dental Plan Private JetMundial FootballFIFA World Cup Vestidos de Perros y gatosHosting Dominio web movilSelling annuity payments for cashSelling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlementStructured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

ASBESTOS LAWYERS Health Records Personal Health Record Cheap Domain Registration Hosting Donating a Car in Maryland Business finance group cheap car insurance in virginia sell structured settlement calculator utah mesothelioma lawyer WordPress themes for designers motorcycle accident lawyer san francisco BEST CRIMINAL LAWYER IN ARIZONA DUI lawyer Online classes domain name yahoo Car Donate Auto Mobile Insurance Quote Online casino CHEAP AUTO INSURANCE IN VA Social media examiner car crash attorneys auto insurance cost by state structered settlement AUTOMOBILE ACCIDENT ATTORNEY Car Insurance Companies car accident lawyer san bernardino Futuristic Architecture Neuson firm law mesothelioma mesothelioma attorney illinois Business management software Social media platforms NEUSON Donate Car to Charity California Donate Cars Illinois illinois law lemon DONATING USED CARS TO CHARITY Casino diagnosed with mesothelioma workers compensation lawyer los angeles Holland Michigan College Psd to html How to Donate A Car in California Live casino Php programmers student loan consolidation program Proud Italian cook Seo companies mesothelioma claims auto accident attorney Torrance Dallas Mesothelioma Attorneys Futuristic architecture integrated ehr business voip solutions Auto Accident Attorney Bankruptcy lawyer Mobile casino mesothelioma attorney Best social media platforms for business Php programmers for hire Make money online Australia Html email personal injury lawyer sarasota fl Home Phone Internet Bundle Hire php developers ashely madis Psychic for Free Best social media platforms criminal defense attorneys florida attorney lawyer mesothelioma ONLINECLASSES mesothelioma Casino reviews peritoneal mesothelioma donate car for tax credit phd in counseling education mesothelioma lawyer houston workplace accident attorney Low credit line credit cards att call conference Hire php programmers Forex Trading Platform Learning adobe illustrator Dwi lawyer Criminal lawyer Service business software Car Insurance in South Dakota accident lawyers in los angeles Criminal defense lawyer Donate your car Sacramento Cheap Auto Insurance in VA Email bulk service Hire php developer PhD in counseling education offshore accident lawyer Seo company ANNUITY SETTLEMENT Computer science classes online holland michigan college WordPress hosting injury lawyers west palm beach fortis health insurance temporary FUTURISTIC ARCHITECTURE bus accident attorneys Best Seo company washington mesothelioma attorney sell annuity payment Social media tools Data Recovery Raid Car insurance quotes Colorado meso lawyer Italian cooking school New social media platforms Social media platforms for business Custom WordPress theme designer Seo services

Share:

Botones twittear y compartir en Facebook flotantes con jQuery – Habitaciones

Hace algún tiempo un usuario se interezó en los botones flotantes que tengo en mi blog, y en esta oportunidad los pongo a disposición del que los desee.

Estos botones tienen la particularidad de ser animados, son flotantes, están basados en jQuery y no necesitan una configuración complicada.


Vista previa de los botones:


¿Cómo añadirlos a Blogger?

Paso 1: Añadiendo la sección:

En ''Diseño | Edición HTML'' buscamos la siguiente línea:
data:post.body/
Arriba de esta, pegaremos el siguiente código:
b:if cond='data:blog.pageType == "item"'
div id='sharebox'
div class='wdt' a class='twitter-share-button' data-count='vertical' data-lang='es' data-via='NOMBRE-TWITTER' href='http://twitter.com/share'Tweet/ascript src='http://platform.twitter.com/widgets.js' type='text/javascript'/ /div
div class='wdt' diviframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=box_count&show_faces=false&width=53&height=65&action=like&font=arial&colorscheme=light&send=false"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:73px; height:65px;'//div /div
/div
/b:if
Reemplaza lo que está en color rojo por tu nombre de usuario en Twitter

Paso 2: Añadiendo jQuery:

Ahora buscaremos la siguiente línea:
/b:skin
Inmediatamente después de esta, pegaremos el siguiente código:
script src='http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js' type='text/javascript'/script


Paso 3: Añadiendo el script:

Ahora buscaremos la siguiente sección:
/head
Arriba de esta, pega el siguiente código:
script type='text/javascript'
$(document).ready(function() {
var $sidebar = $("#sharebox"),
$window = $(window),
offset = $sidebar.offset(),
topPadding =65;
$window.scroll(function() {
if ($window.scrollTop() offset.top) {
$sidebar.stop().animate({
marginTop: $window.scrollTop() - offset.top + topPadding
});
} else {
$sidebar.stop().animate({
marginTop: 0
});
}
});
});
/script

Paso 4: Añadiendo los estilos:

Ahora buscamos la siguiente línea:
/b:skin

Justo arriba de esta, pegaremos el siguiente fragmento CSS:
#sharebox {
float: left; /* Alineación */
margin-left:-82px; /* Separación a la izquierda */
background: #ffffff; /* Color de fondo */
position: absolute; /* NO TOCAR */
-moz-border-radius: 6px; /* Bordes redondeados Mozilla */
border-radius: 6px; /* Bordes redondeados genéricos */
}
#sharebox .wdt {
float: left;
clear: left;
padding: 5px;
}


Ahora guarda los cambios y listo:


Consideraciones:

  1. En el script aparece el siguiente atributo:
topPadding =65;
  1. Reemplaza el valor para aumentar o disminuir la separación superior de los botones.

  • Si deseas agregar sombras, agrega los siguientes atributos en la opción CSS:
-moz-box-shadow: 5px 5px 5px #C0C0C0;
-webkit-box-shadow: 5px 5px 5px #C0C0C0;

  • Si deseas que los botones se muestren tanto en la página principal como en las entradas, elimina las siguientes líneas de la sección:
b:if cond='data:blog.pageType == "item"'
  • y
/b:if

Donate Car To Charity CALIFORNIA DONATE CAR FOR TAX CREDITDONATE CARS IN MADONATE YOUR CAR SACRAMENTOHOW TO DONATE A CAR IN CALIFORNIA DONATE YOUR CAR FOR KIDS,CAR INSURANCE QUOTES COLORADO ,NUNAVUT CULTURE,DAYTON FREIGHT LINESHARDDRIVE DATA RECOVERY SERVICES,DONATE A CAR IN MARYLAND,MOTOR REPLACEMENTS,CHEAP DOMAIN REGISTRATION HOSTING,DONATING A CAR IN MARYLANDMundial Football free legal advice,FIFA World Cup cheap web hosting donde me dieron un available domain name,cheap domain name registration,pero salio muy caro y mejor me hice student credit card ,accept credit pero me recomendaron mejor utilizar credit counseling service donde tienen un mejor soporte y credito support stocking pero mejor me compre un linux hosting y mejor me afilie a affiliate programs pero buy �web position gold�,microsoft certification,Mesothelioma law firm,Selling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

Best Seo company Criminal lawyer car accident lawyer san bernardino Service business software Annuity Settlements semi truck accident lawyers Make money online Australia ROYALTY FREE IMAGES STOCK Royalty Free Images Stock home phone internet bundle Structures Annuity Settlement boca raton personal injury attorney motorcycle accident lawyer california Motor Replacements Php programmers DONATE CARS ILLINOIS Php programmers for hire Seo companies DONATE YOUR CAR FOR MONEY workplace accident attorney Online casino donate your car for kids Mortgage Adviser wisconsin mesothelioma attorney Online Criminal Justice Degree car accident lawyers New social media platforms harddrive data recovery services mesothelioma information Casino DONATING A CAR IN MARYLAND miami personal injury attorney Social media platforms for business cheaper insurance companies mesothelioma law firm Donating Used Cars to Charity sell structured settlement calculator Hire php developers Psd to html Mobile casino domain yahoo Dwi lawyer los angeles auto accident attorneys Gas/Electricity Custom Christmas cards massage school dallas texas Live casino diagnosed with mesothelioma business voip solutions WordPress theme designers REGISTER FREE DOMAINS car insurance in south dakota online criminal justice degree Casino reviews caraccidentlawyer Data Recovery Raid Psd to WordPress Criminal defense lawyer Best Criminal Lawyers in Arizona Online Classes business administration masters DUI lawyer Online Christmas cards mesothelioma lawsuit Hire php programmers Social media management EMAIL BULK SERVICE Low credit line credit cards MASSAGE SCHOOL DALLAS TEXAS mesothelioma lawyer california Email bulk service CAR INSURANCE QUOTES UTAH Forensics online course Bankruptcy lawyer Social media campaigns Photo Christmas cards Business finance group Holland Michigan College ONLINECLASSES Cheap Car Insurance in Virginia Dayton Freight Lines Tech school HOME PHONE INTERNET BUNDLE Mortgage adviser alabama mesothelioma lawyer Forex Trading Platform Hire php developer Online College Course mesotheolima Paperport promotional code event management security Computer science classes online city college in miami Met Auto refinance with bad credit car donate DONATE CAR FOR TAX CREDIT Best social media platforms for business Paperport Promotional Code federal criminal defense attorney Donate a car in Maryland Donate your Car for Money phd in counseling education Donate old cars to charity Custom WordPress theme designer Seo services Insurance Companies Motor replacements Claim integrated ehr Seo company Business management software Christmas cards Best social media platforms personal injury lawyer sarasota fl

Share:

PopUp de suscripción para Blogger con jQuery – Auto – Domains – Online

Este popup de suscripción elaborado conjQuery permite que el usuario al ingresar por primera vez al blog, muestre una ventana emergente la cual le permita suscribirse a distintas redes sociales o servicios.

Este popup tiene la particularidad que trabaja con jQuery Cookie, una extensión que permite quejQuery almacene datos, gracias a ello permite que sólo aparezca una vez el mensaje cada 1 semana (tiempo de expiración de la cookie).


Vista previa del plugin:




¿Cómo añadirlo a Blogger?

Paso 1: Añadiendo la sección:

Primero, vamos a ''Diseño | Edición HTML'', marcamos ''Expandir plantillas de artilugios'' y buscamos la siguiente línea:
/body

Justo arriba de esta, pegaremos el siguiente código:
div id='popupContact'
a id='popupContactClose'x/a
h1TU TÍTULO/h1
p id='contactArea'
Muchas gracias por visitar este blog, te recomiendo que te suscribas a los siguientes servicios:

div class='separator' style='clear: both; text-align: center;'
a href='http://www.facebook.com/USUARIO' imageanchor='1' style='margin-left: 1em; margin-right: 1em;' target='_blank'img border='0' src='http://3.bp.blogspot.com/-4Bz7JTJO_TM/TYjGrOxkskI/AAAAAAAAAjc/e_E59mI-0VU/s1600/facebook_32.png'//aa href='http://www.youtube.com/user/USUARIO' imageanchor='1' style='margin-left: 1em; margin-right: 1em;' target='_blank'img border='0' src='http://1.bp.blogspot.com/-_z25Btg5c7Q/TYjGs6Qiv7I/AAAAAAAAAjo/MOcOd-lmAi4/s1600/youtube_32.png'//aa href='http://www.twitter.com/USUARIO' imageanchor='1' style='margin-left: 1em; margin-right: 1em;' target='_blank'img border='0' src='http://4.bp.blogspot.com/-paLT5kbLPTY/TYjGr7bmcAI/AAAAAAAAAjk/bNJ33x_xDLM/s1600/twitter_32.png'//aa href='http://tu-blog.blogspot.com/feeds/posts/default' imageanchor='1' style='margin-left: 1em; margin-right: 1em;' target='_blank'img border='0' src='http://2.bp.blogspot.com/-ULq8qNzNwQw/TYjGrhN9SRI/AAAAAAAAAjg/feTIE-KbfGk/s1600/rss_32.png'//a/div
center
form action='http://feedburner.google.com/fb/a/mailverify' method='post' onsubmit='window.open('http://feedburner.google.com/fb/a/mailverify?uri=blogspot/USUARIO-FEEDBURNER', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true' style='padding:3px;text-align:center;' target='popupwindow'pIngresa tu Dirección de Correo:/ppinput name='email' style='width:140px' type='text'//pinput name='uri' type='hidden' value='blogspot/vkhLT'/input name='loc' type='hidden' value='es_ES'/input type='submit' value='Suscribir'//form
/center


/p
/div
div id='backgroundPopup'/
Reemplaza los valores marcados por los correspondientes.

Paso 2: Añadiendo los scripts:

Ahora buscamos la siguiente línea:
/head

Justo encima de esta, añadimos el siguiente código:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js" type="text/javascript"></script>
<script src="https://sites.google.com/a/blogsydescargas.co.cc/ayudabloggers/scripts2/jquery.cookie.js" type="text/javascript"></script>
<script type="text/javascript">
var popupStatus = 0;
//this code will load popup with jQuery magic!
function loadPopup(){
//loads popup only if it is disabled
if(popupStatus==0){
$("#backgroundPopup").css({
"opacity": "0.7"
});
$("#backgroundPopup").fadeIn("slow");
$("#popupContact").fadeIn("slow");
popupStatus = 1;
}
}

//This code will disable popup when click on x!
function disablePopup(){
//disables popup only if it is enabled
if(popupStatus==1){
$("#backgroundPopup").fadeOut("slow");
$("#popupContact").fadeOut("slow");
popupStatus = 0;
}
}

//this code will center popup
function centerPopup(){
//request data for centering
var windowWidth = document.documentElement.clientWidth;
var windowHeight = document.documentElement.clientHeight;
var popupHeight = $("#popupContact").height();
var popupWidth = $("#popupContact").width();
//centering
$("#popupContact").css({
"position": "absolute",
"top": windowHeight/2-popupHeight/2,
"left": windowWidth/2-popupWidth/2
});
//only need force for IE6
$("#backgroundPopup").css({
"height": windowHeight
});

}
//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
if ($.cookie("anewsletter") != 1) {
//centering with css
centerPopup();
//load popup
loadPopup();
}
//CLOSING POPUP
//Click the x event!
$("#popupContactClose").click(function(){
disablePopup();
$.cookie("anewsletter", "1", { expires: 7 });
});
//Click out event!
$("#backgroundPopup").click(function(){
disablePopup();
$.cookie("anewsletter", "1", { expires: 7 });
});
//Press Escape event!
$(document).keypress(function(e){
if(e.keyCode==27 && popupStatus==1){
disablePopup();
$.cookie("anewsletter", "1", { expires: 7 });
}
});
});
</script>


Paso 3: Añadiendo los estilos correspondientes:

Ahora buscamos la sección de CSS de nuestra plantilla:
/b:skin



Arriba de esta, pegaremos el siguiente código:

#popupContactClose{
cursor: pointer;
text-decoration:none;
color: #fff;
}
#backgroundPopup{
display:none;
position:fixed;
_position:absolute; /* hack para internet explorer 6*/
height:100%;
width:100%;
top:0;
left:0;
background:#000000;
border:1px solid #cecece;
z-index:1;
}
#popupContact{
display:none;
position:fixed;
_position:absolute; /* hack para internet explorer 6*/
height:284px;
width:391px;
background:#FFFFFF url(http://3.bp.blogspot.com/-5dXeJlybFpk/Tb2fi7pEkvI/AAAAAAAAA0g/MideNQUtcBM/s1600/metalbg-ayudabloggers2.PNG) center;
border:9px solid #cecece;
border-radius:5px;
z-index:2;
color:#fff;
padding:12px;
font-size:13px;
}
#popupContact h1{
text-align:left;
color:#fff;
font-size:22px;
font-weight:700;
border-bottom:1px dotted #D3D3D3;
padding-bottom:2px;
margin-bottom:20px;
}
#popupContactClose{
font-size:14px;
line-height:14px;
right:6px;
top:4px;
position:absolute;
color:#fff;
font-weight:700;
display:block;
}


Guardas los cambios y listo:


Consideraciones:

  • Te recomiendo deshabilitar las cookies al trabajar el script, ya que éste una vez presionado, no volverá a aparecer durante una semana.
  • Si quieres vaciar el contenido del script, deberás eliminar el contenido desde p id='contactArea' a /p.
  • El script no tiene atribución, pero está escrictamente prohibido copiar el contenido en otro blog sin citar la fuente (http://ayuda-bloggers.blogspot.com).



Actualización (22 Mayo 2011):

Para poder utilizar el script de forma permanente, es decir que no se ejecuten la función de guardado de las cookies, elimina la siguiente línea (Se repite 3 veces):
$.cookie("anewsletter", "1", { expires: 7 });
Consideración:

  • Si la cookie ya ha sido guardada (Es decir si ya utilizamos el script y además presionamos en cerrar), deberás vaciarlas, o de lo contrario no se mostrará porque la instrucción de no mostrar el Popup ya está establecida.

    MESOTHELIOMA LAW FIRMDONATE CAR TO CHARITY CALIFORNIAHARDDRIVE DATA RECOVERY SERVICESDONATE A CAR IN MARYLAND DONATING A CAR IN MARYLAND,DONATE CARS ILLINOIS,CRIMINAL DEFENSE ATTORNEYS FLORIDA ,BEST CRIMINAL LAWYER IN ARIZONASTRUCTURED ANNUITY SETTLEMENT,ASBESTOS LAWYERS,NUNAVUT CULTURE,DAYTON FREIGHT LINES ,Bextra Bankruptcy Dental Plan Private JetMundial Football Perros,FIFA World Cup Peinados caninos,Veterinarios caninos,MESOTHELIOMA LAW FIRM,MESOTHELIOMA LAW FIRM,DONATE CAR TO CHARITY CALIFORNIA ,DONATE CAR FOR TAX CREDIT,DONATE CARS IN MA,DONATE YOUR CAR SACRAMENTO,HOW TO DONATE A CAR IN CALIFORNIA,SELL ANNUITY PAYMENT,DONATE YOUR CAR FOR KIDS,ASBESTOS LAWYERS,DONATE YOUR CAR FOR KIDS ,Selling annuity payments for cashSelling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

    FORENSICS ONLINE COURSE car crash attorneys Dwi lawyer Donating a Car in Maryland Car Insurance Companies Personal Injury Lawyer WordPress hosting Online casino saskatchewan auto insurance motorcycle lawyer los angeles Hire php programmers Sell Annuity Payment MASSAGE SCHOOL DALLAS TEXAS Auto Accident Attorney Hire php developer Cheap car insurance in Virginia Automobile Accident Attorney Casino Motor Replacements mesotheliama Psychic for Free Social media examiner Mobile casino Casino reviews Live casino Bankruptcy lawyer alcohol rehab center in florida Donate Cars in MA DONATING USED CARS TO CHARITY car accident lawyer san bernardino Virtual Data Rooms DUI lawyer Hard drive Data Recovery Services dallas mesothelioma lawyer Donate car for tax credit Social media campaigns Make money online Australia car insurance in south dakota bus accident attorney los angeles Best Seo company DONATE CARS IN MA Service business software emergency response plan ppt sell your structured settlement payments offshore accident lawyer Seo services World trade center footage Best social media platforms average mesothelioma settlement mesothelioma lawyer texas Hire php developers lease management software donate your car for money Seo companies mesothelioma lawyer california miami personal injury lawyer business administration masters asbestos exposure lawyers car accident lawyers west palm beach structured settlements companies mesothelioma charities anti spam exchange server what is structured settlement Donate Car To Charity CALIFORNIA Paperport Promotional Code Health Records Personal Health Record paperport promotional code Low Credit Line Credit Cards HOLLAND MICHIGAN COLLEGE Attorney orlando criminal attorney World Trade Center Footage Structures Annuity Settlement Royalty free images stock CRIMINAL DEFENSE ATTORNEYS FLORIDA Criminal lawyer Criminal Defense Attorneys Florida Criminal defense lawyer Seo company car insurance quotes colorado donating used cars to charity car insurance quotes mesothelioma attorney florida Auto Mobile Insurance Quote cloud identity and access management Social media platforms for business Better Conference Calls PHD on Counseling Education New social media platforms Php programmers for hire WEBEX COSTS wisconsin mesothelioma attorney BETTER CONFERENCING CALLS Holland Michigan College structured settlement annuity companies Learning adobe illustrator STRUCTURED ANNUITY SETTLEMENT motorcycle accident attorney chicago dallas mesothelioma attorneys Computer science classes online adverse credit remortgage houston mesothelioma attorney NUNAVUT CULTURE Proud Italian cook compare life assurance Php programmers Asbestos Lung Cancer cheaper insurance companies Business management software Adobe illustrator classes Online colledges Best social media platforms for business car insurance companies annuity payment la personal injury lawyer

    Share: