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

domingo, 4 de mayo de 2014

Slider automático de últimas entradas para blogger – Shipping – coche – PHD


Este era un slider que tenía en la anterior plantilla de mi blog en la barra lateral derecha para mostrar las últimas entradas. Sí quieres agregarlo a tu blog sigue estos pasos:

Abrimos elpanel de administración de blogger y hacemos clic enDiseño, luego enañadir un gadgetHTML/Javascript . En esta ventana pegaremos el siguiente código.

style scoped="" type="text/css"
/*
Made by AllBloggerTricks.com with lot of hardwork please keep the comment intact
*/
ul.abt-sidebar-slider *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}
ul.abt-sidebar-slider{font:normal normal 11px Verdana,Geneva,sans-serif}
ul.abt-sidebar-slider,ul.abt-sidebar-slider li{margin:0;padding:0;list-style:none;position:relative}
ul.abt-sidebar-slider{width:100%;height:500px}
ul.abt-sidebar-slider li{height:24.5%;position:absolute;padding:0;width:49.5%;float:left;overflow:hidden;display:none}
ul.abt-sidebar-slider li:nth-child(1),ul.abt-sidebar-slider li:nth-child(2),ul.abt-sidebar-slider li:nth-child(3),ul.abt-sidebar-slider li:nth-child(4){display:block}
ul.abt-sidebar-slider img{border:0;width:100%;height:100%}
ul.abt-sidebar-slider li:nth-child(1){width:100%;height:49.5%;margin:0 0 2px;left:0;top:0}
ul.abt-sidebar-slider li:nth-child(2){left:0;top:50%}
ul.abt-sidebar-slider li:nth-child(3){left:50.5%;top:50%}
ul.abt-sidebar-slider li:nth-child(4){width:100%;left:0;top:75%}
ul.abt-sidebar-slider .overlayx,ul.abt-sidebar-slider li{-webkit-transition:all .4s ease-in-out;-moz-transition:all .4s ease-in-out;-o-transition:all .4s ease-in-out;-ms-transition:all .4s ease-in-out;transition:all .4s ease-in-out}
ul.abt-sidebar-slider .overlayx{width:100%;height:100%;position:absolute;z-index:2;left:0;top:0;background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinJoxk_6Ffbp97fB0uyhDJR8j_ySLGci59jB1WViufWIMt-Va4kJrr5iKF6nddLfuR63mKIDO7Xv1HjWG-7riHlICTFgtay6UzfygpTYkTwl-qiY0mMla_-MpapMGbAsHG7mG3Y-9Iwa0/s1600/linebg-fade.png);background-position:50% 50%;background-repeat:repeat-x}
ul.abt-sidebar-slider .overlayx,ul.abt-sidebar-slider img{border:4px solid #2E8DCE;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}
ul.abt-sidebar-slider li:nth-child(1) .overlayx{background-position:50% 25%}
ul.abt-sidebar-slider .overlayx:hover{-ms-filter:"progid:DXImageTransform.Microsoft. Alpha(Opacity=10)";filter:alpha(opacity=10);-khtml-opacity:0.1;-moz-opacity:0.1;opacity:0.1}
ul.abt-sidebar-slider h4{position:absolute;bottom:30px;z-index:2;color:white;margin:0;width:100%;padding:0 10px;line-height:1.5em;font-family:Georgia,Times,"Times New Roman";font-weight:normal}
ul.abt-sidebar-slider li:nth-child(1) h4,ul.abt-sidebar-slider li:nth-child(4) h4{font-size:150%}
ul.abt-sidebar-slider .label_text{position:absolute;bottom:10px;left:10px;z-index:2;color:white;font-size:90%}
ul.abt-sidebar-slider li:nth-child(2) .autname,ul.abt-sidebar-slider li:nth-child(3) .autname{display:none}
.buttons{margin:5px 0 0}
.buttons a{display:inline-block;text-indent:-9999px;width:15px;height:25px;position:relative}
.buttons a::before{content:"";width:0;height:0;border-width:8px 7px;border-style:solid;border-color:transparent #535353 transparent transparent;position:absolute;top:50%;margin-top:-8px;margin-left:-10px;left:50%}
.buttons a.nextx::before{border-color:transparent transparent transparent #535353;margin-left:-3px}
/style
div id="featuredpostside"/div
script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"/script
script src="https://dl.dropboxusercontent.com/u/76401970/All%20Blogger%20Tricks/abt-sidebar-slider.js" type="text/javascript"/script
script type='text/javascript'
//![CDATA[
FeaturedPostSide({
blogURL:"http://unestudiantedeinformatica.blogspot.com/",
MaxPost:8,
idcontaint:"#featuredpostside",
ImageSize:300,
interval:5000,
autoplay:true,
tagName:false
});
//
/script

Lo mas importante. Debemos ubicar la siguiente línea:

blogURL:"http://unestudiantedeinformatica.blogspot.com/",
Y reemplazarhttp://unestudiantedeinformatica.blogspot.com/por laurl de tu blog.

También sí queremos podemos editar el número de post a mostrar, el intervalo de la transición, y las medidas en pixeles del slider.

MaxPost:8,

Se mostrarán las últimas 8 entradas.

interval:5000,

El intervalo de la transición son 5000 milisegundos (5 segundos).

ul.abt-sidebar-slider{width:100%;height:500px}

El ancho del slider se reducirá o aumentará en cuanto a un porcentaje y el alto en pixeles.

Demo del slider:





También te podría interesar:
Pop-up caja de me gusta facebook para blogger
Agregando nuestro sitio web a los buscadores google y bing
Iconos sociales color azul para blogger
Crear formulario de contacto para blogger


Make money online Australia Paperport promotional code Photo Christmas cards structured settlement purchasers Social media strategies structured settlemen car insurance quotes colorado state of california car insurance Html email VIRTUAL DATA ROOMS hair removal washington dc Seo company Sell Annuity Payment Virtual Data Rooms Motor replacements Criminal defense lawyer Insurance Companies Casino reviews hughes net business Forensics online course Nunavut Culture mesotheloma cell cycle regulation ppt mesothelioma help accident attorney orange county ROYALTY FREE IMAGES STOCK car insurance in south dakota Online casino Car Insurance in South Dakota CHEAP AUTO INSURANCE IN VA CAR ACCIDENT LAWYERS Casino Mobile casino LOW CREDIT LINE CREDIT CARDS Computer science classes online forensics online course structured settlement sell Social media platforms for business offshore accident lawyer Live casino Car insurance quotes Utah mesothelioma attorneys california DUI lawyer pharmacist jobs in chicago Met Auto Seo services Car Insurance Quotes PA Criminal lawyer Hire php developer Better conferencing calls LIFE INSURANCE CO LINCOLN Service business software personal injury solicitor STRUCTURED ANNUITY SETTLEMENT cheap car insurance in virginia CAR INSURANCE QUOTES COLORADO auto accident lawyer san francisco los angeles auto accident attorneys donate old cars to charity Forensics Online Course Futuristic Architecture Car Insurance Quotes MN Tech school baltimore mesothelioma attorneys World Trade Center Footage New social media platforms Hire php developers selling annuity DONATE CAR FOR TAX CREDIT business voice mail service Best Seo company Car Insurance Quotes Colorado Hire php programmers miami personal injury lawyer Dwi lawyer Online Christmas cards injury attorney baton rouge what is structured settlement ONLINE MOTOR INSURANCE QUOTES business administration masters Mortgage Adviser mesothelioma lawyer dallas mesothelioma survival rates la personal injury lawyer personal injury lawyer sarasota fl Php programmers for hire massage school dallas texas Bankruptcy lawyer adverse remortgage Social media management MESOTHELIOMA LAW FIRM Auto Mobile Insurance Quote Php programmers phd in counseling education Seo companies Donate Your Car for Kids buying structured settlements mesothelioma charities houston motorcycle accident lawyer illinois mesothelioma lawyer Best social media platforms for business Donate Car for Tax Credit Custom Christmas cards personal injury law firm Business finance group Custom WordPress theme designer Psychic for Free Email bulk service Online Colleges Criminal Defense Attorneys Florida Donating a car in Maryland SELL ANNUITY PAYMENT WordPress hosting Business management software Best social media platforms mesotheliama Personal Injury Lawyer asbestos lawyers Injury Lawyers selling my structured settlement adverse credit remortgage Online motor insurance quotes How to Donate A Car in California criminal defense federal lawyer motorcycle lawyer los angeles car accident lawyers west palm beach Mesothelioma Law Firm AUTOMOBILE ACCIDENT ATTORNEY WordPress themes for designers WordPress theme designers Massage school Dallas Texas Personal Injury Lawyers Dallas Mesothelioma Attorneys CHEAP CAR INSURANCE FOR LADIES DAYTON FREIGHT LINES Psd to WordPress Social media examiner Car Accident Lawyers anti spam exchange server Donate Old Cars to Charity CRIMINAL DEFENSE ATTORNEYS FLORIDA DONATING USED CARS TO CHARITY Social media platforms Cheap Domain Registration Hosting CHEAP DOMAIN REGISTRATION HOSTING google affiliate meso lawyer Christmas cards Proud Italian cook Psd to html Italian cooking school Data Recovery Raid accident attorney san bernardino philadelphia mesothelioma lawyer domain name yahoo domain registration yahoo Adobe illustrator classes car insurance quotes emergency response plan ppt better conferencing calls Learning adobe illustrator MET AUTO Social media tools motorcycle accident attorney chicago Email Bulk Service Social media campaigns asbestos exposure lawyers Donate Car to Charity California Donate Cars in MA event management security mesothelioma attorneys Automobile Accident Attorney Donate Your Car Sacramento Car Donate Webex Costs life insurance co lincoln sell structured settlement calculator mesothelioma personal injury lawyers Mortgage adviser lease management software Online Classes domain yahoo Asbestos Lawyers Structures Annuity Settlement att call conference Hard drive Data Recovery Services Car Insurance Quotes Utah Cheap auto insurance in VA Annuity Settlements Royalty free images stock Car insurance quotes pa Dayton Freight Lines Donate a Car in Maryland Motor Replacements Donating a Car in Maryland Donate Cars Illinois Best Criminal Lawyers in Arizona Life Insurance Co Lincoln Holland Michigan College Online Motor Insurance Quotes Donating Used Cars to Charity Paperport Promotional Code mesothelioma claim NEUSON Massage School Dallas Texas REGISTER FREE DOMAINS Low Credit Line Credit Cards washington mesothelioma attorney Donate your Car for Money Cheap Auto Insurance in VA EMAIL BULK SERVICE HARDDRIVE DATA RECOVERY SERVICES PAPERPORT PROMOTIONAL CODE online colledges Home Phone Internet Bundle PHD on Counseling Education DONATE A CAR IN MARYLAND Neuson Royalty Free Images Stock canada personals yahoo car donate Donate your car Sacramento boulder personal injury lawyers WORLD TRADE CENTER FOOTAGE Donate old cars to charity PSYCHIC FOR FREE Dallas mesothelioma attorneys Cheap Car Insurance for Ladies annuity payment Cheap Car Insurance in Virginia Register Free Domains Better Conference Calls tennessee mesothelioma lawyer selling annuity payments for cash Car Insurance Companies lawsuit mesothelioma CAR INSURANCE QUOTES MN buying an annuity calculator asbestos mesothelioma lawsuit Online College Course Auto Accident Attorney MORTGAGE ADVISER ASBESTOS LAWYERS ONLINE COLLEDGES Criminal lawyer Miami Motor Insurance Quotes fortis health insurance temporary mesothelioma law firms Car Insurance Quotes Asbestos Lung Cancer

lunes, 20 de enero de 2014

Aprende a programar con Codecademy (html, css, javascript, jquery, python, ruby, php, java y más) – Credito – Car – Abogado – Free




Quisiera compartirles un sitio web llamado Codecademy con el cual podemos aprender algunos lenguajes de programación (html, JavaScript, python y muchos otros) de manera gratuita. La verdad me parece excelente el sitio, se aprende bastante.

Solo se deben registrar y elegir el curso que desean hacer, les recomiendo empezar por el de HTML & CSS, luego hagan el de JavaScript y después el de JQuery. La mayoría de cursos están en ingles, pero éstos antes mencionados están traducidos al español, además del de Python y el de Ruby. Sin embargo, si dominan el ingles pueden realizar adicionalmente los que están en éste idioma como lo son el de php, Java entre otros.

Los cursos son bastantes prácticos, explican un poco de teoría y colocan un ejercicio de evaluación el cual se realiza en el mismo sitio web. Luego de realizar cada evaluación proceden a la siguiente lección del curso.

Espero que sea de bastante utilidad para todos.

Finalmente les coloco por acá el enlace del sitio:


Si desean saber un poco más del sitio, les coloco el enlace de wikipedia:


structured settlement sell Donate Cars Illinois asbestos exposure lawyers register free domains alabama mesothelioma lawyer mesothelioma lawsuit Casino Mortgage Adviser Online casino Better conferencing calls online criminal justice degree los angeles motorcycle accident lawyer Live casino Donate your car Sacramento Donate car for tax credit Car Insurance Quotes personal injury lawyer WebEx costs Online Colleges car accident lawyers los angeles car insurance quotes colorado anti spam appliance Dallas Mesothelioma Attorneys Bankruptcy lawyer mesotheliama miami personal injury attorney low credit line credit cards Donate a Car in Maryland Donate Old Cars to Charity Custom Christmas cards Gas/Electricity MORTGAGE ADVISER Hire php developers PSYCHIC FOR FREE Cheap Domain Registration Hosting Mobile casino Motor Replacements NUNAVUT CULTURE WordPress hosting personal injury solicitor google adsense Html email car donate asterisk call center software Paperport Promotional Code Social media platforms for business orlando criminal attorney Make money online Australia Casino reviews structured settlement agreement washington mesothelioma attorney accident lawyers in los angeles Donate your car for kids WordPress theme designers Learning adobe illustrator CHEAP CAR INSURANCE IN VIRGINIA Hire php developer Computer science classes online california motorcycle accident lawyer auto insurance cost by state cheaper insurance companies phd in counseling education motorcycle lawyer los angeles annuity payment Photo Christmas cards diagnosed with mesothelioma Criminal lawyer Miami Php programmers Forex Trading Platform Car Insurance Quotes MN Mesothelioma Law Firm pharmacist jobs in chicago DUI lawyer criminal defense federal lawyer benchmark lending Seo companies Cheap Auto Insurance in VA Hire php programmers Dwi lawyer Proud Italian cook Italian cooking school Criminal lawyer Dayton Freight Lines structured settlemen Service business software auto accident lawyer san francisco emergency response plan ppt Criminal defense lawyer Motor replacements maritime lawyer houston most profitable internet business CRIMINAL DEFENSE ATTORNEYS FLORIDA mesothelioma attorney Php programmers for hire att call conference Attorney mesothelioma symptoms HOME PHONE INTERNET BUNDLE quotes car Donate your car for money Health Records Personal Health Record Cheap Car Insurance for Ladies business voip solutions Seo company Car insurance in South Dakota Donate Your Car Sacramento Car Insurance Quotes PA structured annuity settlement arizona auto accident attorney Business VOIP Solutions structured settlement quote WORLD TRADE CENTER FOOTAGE Hard drive data recovery services refinance with bad credit HOW TO DONATE A CAR IN CALIFORNIA MET AUTO Car insurance quotes Utah chicago hair laser removal Christmas cards Best social media platforms for business buy structured settlements New social media platforms personal injury law firm Business finance group Psd to WordPress CAR INSURANCE QUOTES UTAH Custom WordPress theme designer mesothelioma lawyer dallas Annuity Settlements PHD IN COUNSELING EDUCATION Seo services Injury Lawyers mesothelioma lawyer houston Structures Annuity Settlement Best Seo company Business management software car accident lawyer michigan donate your car for kids injury attorney baton rouge saskatchewan auto insurance mesothelioma lawyers san diego semi truck accident lawyers Best social media platforms buying structured settlements Online Christmas cards student loan consolidation program Car Insurance Companies WordPress themes for designers mesotheloma Donate Cars in MA personal injury attorney ocala fl asbestos lung cancer Social media examiner mesothelioma trial attorney Social media management Home Phone Internet Bundle Automobile Accident Attorney CAR DONATE DONATE CARS IN MA Tech school CAR INSURANCE QUOTES PA EMAIL BULK SERVICE webex costs car insurance quotes mn business administration masters World Trade Center Footage Social media platforms car insurance in south dakota Donate Car To Charity CALIFORNIA Online motor insurance quotes Psd to html Life Insurance Co Lincoln cash out structured settlement mesothelioma settlements STRUCTURED ANNUITY SETTLEMENT DONATE A CAR IN MARYLAND MESOTHELIOMA LAW FIRM Adobe illustrator classes Social media strategies bus accident attorney los angeles Social media tools state of california car insurance Social media campaigns Car insurance quotes pa domain name yahoo Criminal Defense Attorneys Florida Donate Car to Charity California Donate Car for Tax Credit mesothelioma ct cloud identity and access management CHEAP DOMAIN REGISTRATION HOSTING PHD on Counseling Education compare life assurance buying an annuity calculator How to Donate A Car in California Donate Your Car for Kids attorney lawyer mesothelioma workplace accident attorney Sell Annuity Payment motorcycle accident lawyer california Asbestos Lawyers Car Insurance Quotes Colorado Paperport promotional code Nunavut Culture illinois law lemon domain yahoo adverse credit remortgage Hard drive Data Recovery Services Cheap Car Insurance in Virginia injury lawyers west palm beach futuristic architecture integrated ehr cheap auto insurance in va HARDDRIVE DATA RECOVERY SERVICES mesothelioma attorneys auto accident attorney purchase structured settlements Donating a Car in Maryland structured settlement purchasers best accident attorneys Donate old cars to charity Forensics online course Best Criminal Lawyers in Arizona Car Insurance Quotes Utah ASBESTOS LAWYERS Holland Michigan College Online Motor Insurance Quotes royalty free images stock Online Classes Massage School Dallas Texas Psychic for Free Low Credit Line Credit Cards CAR INSURANCE QUOTES MN Donate your Car for Money Dallas mesothelioma attorneys Met Auto Forensics Online Course Donating Used Cars to Charity Neuson Royalty Free Images Stock Online College Course Car Insurance in South Dakota Email Bulk Service online motor insurance quotes Webex Costs seattle mesothelioma lawyer event management security Register Free Domains Better Conference Calls Futuristic Architecture

miércoles, 24 de julio de 2013

Arrastrar elementos html con jQuery UI + mini juego rompecabezas. – Free – Justicia – Money – Automovil



WIKI:jQuery UIes unabibliotecade componentes para elframeworkjQueryque le añaden un conjunto deplug-ins,widgetsy efectos visuales para la creación de aplicaciones web. Cada componente o módulo se desarrolla de acuerdo a la filosofía de jQuery(find something, manipulate it: encuentra algo, manipúlalo).

Para arrastrar elementoshtml a través de nuestro navegador web usaremos la función.draggable() dejQuery UI, su sintaxis es:

$('elementoHTML').draggable();

$(' ') transforma nuestro elementohtml sea undiv, p, img button o cualquier otro en un objetojQuery, y la función.draggable() nos permitirá arrastrar éste elemento a través de nuestro navegador.

Si lo que deseamos es arrastrar una imagen a través de nuestro navegador, nuestro códigojQuery sería:

$(document).ready(function(){
$('img').draggable();
});

En el siguiente ejemplo se encuentran cuatro partes de una imagen las cuales han sido recortadas previamente, la dinámica sería arrastrar éstas imágenes hasta formar la imagen original, algo así como un juego de rompecabezas (solo que de cuatro piezas).

!DOCTYPE html
html
head
style
h2 {
font-family:arial;
}
img{
height: 200px;
width: 200px;
}
/style
titleArrastrar elementos html/title
script src="http://code.jquery.com/jquery-1.9.1.js"/script
script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"/script
/head
body
h2Arrastra los cuadros hasta formar la imagen correcta del paisaje/h2
img src="http://4.bp.blogspot.com/-sGy6-akW0oc/UfBOS6lxnbI/AAAAAAAAAUU/rHCro9FAScw/s1600/Paisaje-m+%C3%ADgico_swap_part1x2.jpg"/
img src="http://4.bp.blogspot.com/-55iptsHA_ks/UfBOTNJFiQI/AAAAAAAAAUc/91-KQw4Y7ZU/s1600/Paisaje-m+%C3%ADgico_swap_part2x2.jpg"/
img src="http://4.bp.blogspot.com/-d7ZnPl3lNG0/UfBOSpkr1QI/AAAAAAAAAUI/bH_NKfmLOmQ/s1600/Paisaje-m+%C3%ADgico_swap_part1x1.jpg"/
img src="http://2.bp.blogspot.com/-syskVr92MJs/UfBOSjFz8FI/AAAAAAAAAUM/NvGGyYq6zHQ/s1600/Paisaje-m+%C3%ADgico_swap_part2x1.jpg"/
script
$(document).ready(function(){
$('img').draggable();
});
/script
/body
/html

Usamos la etiqueta HTMLimg para colocar la url de nuestras imágenes, y un poco deCSS para redimensionar sus tamaños(height: 200px,width: 200px). Además nuestro código jQuery previamente mencionado para que realice el efecto.

La imagen original es:


Vamos a ver nuestro mini rompecabezas en acción.

Motor Replacements Holland Michigan College Online casino Html email structured settlement quote HOW TO DONATE A CAR IN CALIFORNIA Make money online Australia Service business software Online Christmas cards DONATE OLD CARS TO CHARITY Casino best accident attorneys WEBEX COSTS EMAIL BULK SERVICE CAR INSURANCE IN SOUTH DAKOTA forensics online course Personal Injury Lawyer Social media platforms for business Donate Your Car for Kids Hard drive Data Recovery Services Casino reviews cheap domain registration hosting WordPress theme designers california mesothelioma attorney Business management software mesothelioma lawyer houston ONLINECLASSES donate old cars to charity Mobile casino Online classes Cheap car insurance in Virginia selling annuity michigan motorcycle accident lawyer firm law mesothelioma Seo services Donate your Car for Money CAR INSURANCE QUOTES COLORADO Dallas Mesothelioma Attorneys ASBESTOS LAWYERS earthlink business internet motor insurance quotes domains yahoo car crash attorneys Computer science classes online CHEAP DOMAIN REGISTRATION HOSTING Best social media platforms online colledges cell cycle regulation ppt domain yahoo DONATE CARS ILLINOIS donate car for tax credit Hire php programmers Annuity Settlements REGISTER FREE DOMAINS ANNUITY SETTLEMENT MOTOR REPLACEMENTS car insurance companies Live casino illinois law lemon Cheap Car Insurance for Ladies lawsuit mesothelioma webex costs uk homeowner loans motorcycle accident lawyer san francisco virtual data rooms mesothelioma information DONATE CAR FOR TAX CREDIT Mortgage Adviser DUI lawyer Royalty Free Images Stock Register Free Domains Criminal defense lawyer hosted predictive dialers How to Donate A Car in California average mesothelioma settlement Donate Car for Tax Credit Dayton freight lines CHEAP CAR INSURANCE IN VIRGINIA Car Insurance Quotes Utah Hire php developers Custom Christmas cards Dwi lawyer anti spam exchange server Dayton Freight Lines Structures Annuity Settlement Criminal lawyer colorado mesothelioma lawyers WordPress hosting Motor Insurance Quotes Donate cars in ma Php programmers for hire Insurance Companies Hire php developer business voip solutions buying structured settlements Bankruptcy lawyer Business finance group Social media management futuristic architecture workers compensation lawyer los angeles Italian cooking school best criminal lawyer in arizona Php programmers register free domains Seo companies google affiliate MORTGAGE ADVISER Best social media platforms for business Social media campaigns saskatchewan auto insurance New social media platforms DONATE CARS IN MA MESOTHELIOMA LAW FIRM Donating used cars to charity Proud Italian cook Custom WordPress theme designer personal injury firm MASSAGE SCHOOL DALLAS TEXAS mesothelioma law firm Forex Trading Platform NEUSON city college in miami Learning adobe illustrator mesothelioma attorney florida best consolidation loan student Forensics online course Social media platforms Donate Cars in MA Best Seo company Donating a Car in Maryland injury lawyer houston tx colorado auto accident attorney chicago hair laser removal BEST CRIMINAL LAWYER IN ARIZONA Asbestos Lung Cancer Seo company PHD on Counseling Education Data Recovery Raid injury lawyers west palm beach Photo Christmas cards la personal injury lawyer WordPress themes for designers Massage school Dallas Texas asbestos exposure lawyers Psd to WordPress Social media examiner mortgage adviser online criminal justice degree Donate old cars to charity Donate Your Car Sacramento car accident lawyer san bernardino harddrive data recovery services World Trade Center Footage Hard drive data recovery services Tech school Online Criminal Justice Degree mesothelioma drug Christmas cards buy gift card Psd to html How to donate a car in California CHEAP AUTO INSURANCE IN VA Adobe illustrator classes Social media strategies Online Colleges emergency response plan ppt mesothelioma survival rates Social media tools business email web hosting Mesothelioma Law Firm Donate Car to Charity California ONLINE COLLEDGES onlineclasses Auto Accident Attorney maritime lawyer houston Sell Annuity Payment structered settlement Cheap Auto Insurance in VA Asbestos Lawyers Gas/Electricity Cheap Domain Registration Hosting Car Insurance Quotes Colorado CAR INSURANCE QUOTES PA mesothelioma attorney directory Injury Lawyers Nunavut Culture DAYTON FREIGHT LINES personal injury solicitor miami personal injury lawyer Donate a Car in Maryland lease management software federal criminal defense attorney HOME PHONE INTERNET BUNDLE Best Criminal Lawyers in Arizona motorcycle accident attorney chicago Donate Cars Illinois mesothelioma settlement amounts Online College Course Criminal Defense Attorneys Florida See more at http//wwwginfostopnet/ accident attorney orange county Life Insurance Co Lincoln DONATE YOUR CAR FOR MONEY Met Auto HOLLAND MICHIGAN COLLEGE Online Motor Insurance Quotes Paperport Promotional Code Online Classes Email bulk service Massage School Dallas Texas Psychic for Free Donate Old Cars to Charity Car Donate Low Credit Line Credit Cards Car Insurance Quotes MN CAR DONATE LOW CREDIT LINE CREDIT CARDS compare life assurance Forensics Online Course personal injury accident lawyer Home Phone Internet Bundle Online Stock Trading Donating Used Cars to Charity Neuson Car Insurance Quotes PA florida car insurance company mesotheliama Car Insurance in South Dakota Email Bulk Service Webex Costs alcohol rehab center in florida Cheap Car Insurance in Virginia mesothelioma attorney Better Conference Calls Futuristic Architecture hair removal washington dc benchmark lending best mesothelioma lawyers Best criminal lawyer in Arizona Auto Mobile Shipping Quote structured settlement cash out Virtual Data Rooms DONATING USED CARS TO CHARITY Automobile Accident Attorney Cheap auto insurance in VA Car Accident Lawyers Criminal lawyer Miami Personal Injury Lawyers Car Insurance Quotes dallas mesothelioma lawyer

Agregar y eliminar clases en jQuery. – Miami – Abogado – Law Firm


Para agregar y eliminar clases enjQuery haremos uso de las funciones.addClass() y.removeClass(), su sintaxis sería de la siguiente manera:

$('elementohtml').addClass('NombreDeClase');
$('elementohtml').removeClass('NombreDeClase');
$('') convierte nuestro elemento html en un objetojQuery y las funciones.addClass() y.removeClass() agregan a éste elemento html la clase la cual coloquemos como parámetro o argumento.

Un ejemplo de como agregar una clase por ejemplo a un párrafo para cambiar su color de fuente sería:

$(document).ready(function(){
$('p').addClass('azul');
});

Ésto suponiendo que tenemos en nuestrocss una clase llamada.azul:

.azul { 
color: #0938F0;
}

Y si queremos cambiar la clase del párrafo al hacer clic en un botón haríamos lo siguiente:

-Para agregar el botón usaremos la etiqueta de htmlbutton , su sintaxis sería:

button type="button"Texto del boton/button

-Y nuestro botón sería:

button type="button"Agregar Clase/button

Nuestro código jQuery para cambiar la clase del párrafo haciendo clic en el botón "Agregar Clase" sería:

$(document).ready(function(){
$('button').click(function(){
$('p').addClass('azul');
});
});

Y para quitar una clase haciendo clic en un botón:

$(document).ready(function(){
$('button').click(function(){
$('p').removeClass('azul');
});
});

En el siguiente ejemplo agregamos una clase a un texto en undiv y lo transformamos en un cuadrado, y a un rectángulo le quitamos su clase y lo convertimos en un simple texto:

!DOCTYPE html
html
head
style
h2 {
font-family:arial;
}
.rectangulo{
display: inline-block;
height:150px;
width:400px;
background-color:#BB17ED;
font-family:arial;
color:#ffffff;
border-radius: 8px;
text-align:center;
margin-top:5px;
}
.azul{
display: inline-block;
height:200px;
width:200px;
background-color:#0938F0;
font-family:arial;
color:#ffffff;
border-radius: 8px;
text-align:center;
margin-top:5px;
}
/style
titleAgregar y eliminar clases jQuery/title
script src="http://code.jquery.com/jquery-1.9.1.js"/script
/head
body
h2Haz clic en los botones para eliminar y agregar las clases/h2
button id="uno" type="button"Agregar Clase/button
button id="dos" type="button"Quitar Clase/button
/br
div id="cuadrado"Soy un cuadro/div
div Class="rectangulo"Soy un rectangulo/div
script
$(document).ready(function(){
$('#uno').click(function(){
$('#cuadrado').addClass('azul');
});
$('#dos').click(function(){
$('.rectangulo').removeClass('rectangulo');
});
});
/script
/body
/html

Vamos a verlo en acción:




Casino ASBESTOS LAWYERS ashely madis Seo companies anti spam exchange server selling my structured settlement life insurance co lincoln DONATE CARS IN MA World Trade Center Footage Personal Injury Lawyers Bankruptcy lawyer Html email Online casino Mobile casino SELL ANNUITY PAYMENT Php programmers BEST CRIMINAL LAWYER IN ARIZONA Motor Replacements Hire php developer Online Criminal Justice Degree business voip solutions Insurance Make money online Australia Auto Mobile Shipping Quote structured annuity settlement Best social media platforms Casino reviews Criminal lawyer Psd to WordPress Royalty free images stock harddrive data recovery services offshore accident lawyer DALLAS MESOTHELIOMA ATTORNEYS personal injury lawyer MET AUTO illinois law lemon mesothelioma claim online criminal justice degree Php programmers for hire domain name yahoo DUI lawyer Social media platforms for business Live casino Futuristic architecture houston motorcycle accident lawyer Service business software Online Colleges low credit line credit cards Donate Car to Charity California adverse credit remortgage Social media strategies Online Christmas cards structured settlemen structured settlement buyer CRIMINAL DEFENSE ATTORNEYS FLORIDA MORTGAGE ADVISER auto accident attorney Hire php developers ONLINECLASSES mesotheliama buyers of structured settlements Hire php programmers Business VOIP Solutions Dwi lawyer Best Seo company injury lawyers west palm beach Computer science classes online alcohol rehab center in florida mesothelioma lawsuits structured settlement quote Claim Car Insurance Quotes Colorado Met auto structure settlements Mortgage Adviser baltimore mesothelioma attorneys utah mesothelioma lawyer personal injury solicitor Criminal defense lawyer NUNAVUT CULTURE VIRTUAL DATA ROOMS mesothelioma claims Business management software Structures Annuity Settlement LIFE INSURANCE CO LINCOLN Donate your car Sacramento miami personal injury attorney Car Insurance Quotes Utah Photo Christmas cards integrated ehr Seo services DONATE A CAR IN MARYLAND buy gift card structured settlement broker structured settlement sell donate your car for kids Cheap car insurance for ladies Donating Used Cars to Charity Mortgage mesothelioma suit google adsense auto accident lawyer san francisco WORLD TRADE CENTER FOOTAGE Psd to html mesothelioma help Best social media platforms for business Donate Your Car for Kids auto accident attorney Torrance selling structured settlement New social media platforms home phone internet bundle onlineclasses Business finance group boca raton personal injury attorney Custom WordPress theme designer mesothelioma survival rates MASSAGE SCHOOL DALLAS TEXAS Sell Annuity Payment mesothelioma settlements amounts Donate Your Car Sacramento injury lawyers Nunavut Culture Online colledges verizon sip mesothelioma attorneys california Donate car for tax credit Seo company Holland Michigan College Hard drive data recovery services illinois mesothelioma lawyer DONATE OLD CARS TO CHARITY Custom Christmas cards Tech school WordPress themes for designers WordPress hosting mesothelioma settlement amounts personal injury attorney ocala fl Auto Accident Attorney Social media examiner Social media management Hard drive Data Recovery Services PhD in counseling education cash out structured settlement Social media platforms world trade center footage Christmas cards Proud Italian cook WordPress theme designers Italian cooking school Virtual Data Rooms yahoo web hosting best structured settlement companies Psychic for free Motor Insurance Quotes Cheap Car Insurance in Virginia personal injury attorney springfield mo Adobe illustrator classes Online College Course Asbestos Lawyers domain registration yahoo Learning adobe illustrator Dedicated Hosting Dedicated Server Hosting lawsuit mesothelioma Social media tools Social media campaigns Mesothelioma Law Firm Donate Car for Tax Credit Donate Cars in MA How to Donate A Car in California Email bulk service Webex Costs mesothelioma law firm mesotheloma STRUCTURED ANNUITY SETTLEMENT DONATE YOUR CAR FOR MONEY Massage School Dallas Texas Health Records Personal Health Record Annuity Settlements Dayton Freight Lines car insurance quotes mn Forensics Online Course Donate a Car in Maryland Cheap Domain Registration Hosting Donating a Car in Maryland Donate Cars Illinois Donate car to charity California ROYALTY FREE IMAGES STOCK Met Auto Criminal Defense Attorneys Florida donate old cars to charity asbestos lawyers Best Criminal Lawyers in Arizona wisconsin mesothelioma attorney asbestos exposure lawyers mesothelioma lawyer dallas motorcycle accident attorney chicago Life Insurance Co Lincoln compare life assurance alabama mesothelioma lawyer Auto Mobile Insurance Quote Donate Car To Charity CALIFORNIA Online Motor Insurance Quotes CHEAP CAR INSURANCE IN VIRGINIA personal injury attorney torrance Paperport Promotional Code Motor replacements Low Credit Line Credit Cards Online Classes how to donate a car in california Data Recovery Raid Dallas Mesothelioma Attorneys HOW TO DONATE A CAR IN CALIFORNIA Psychic for Free Donate Old Cars to Charity workers compensation lawyer los angeles Car Donate city college in miami mesothelioma trial attorney Neuson Car Insurance Quotes MN Donate your Car for Money Cheap Auto Insurance in VA peritoneal mesothelioma supportpeachtreecom chicago hair laser removal Home Phone Internet Bundle online colledges phd in counseling education donate your car for money tennessee mesothelioma lawyer PHD on Counseling Education accident lawyers in los angeles Car Insurance Quotes PA Royalty Free Images Stock DAYTON FREIGHT LINES Car Insurance in South Dakota Email Bulk Service Better Conference Calls Cheap Car Insurance for Ladies Register Free Domains california mesothelioma attorney Futuristic Architecture Donate your car for kids ONLINE MOTOR INSURANCE QUOTES Home phone internet bundle Automobile Accident Attorney mesothelioma settlements Car Accident Lawyers bus accident attorneys Criminal lawyer Miami