{"id":3528,"date":"2012-07-24T15:12:20","date_gmt":"2012-07-24T15:12:20","guid":{"rendered":"https:\/\/www.jose-aguilar.com\/blog\/?p=3528"},"modified":"2012-08-26T14:14:25","modified_gmt":"2012-08-26T14:14:25","slug":"bgstretcher-background-stretcher-jquery-plugin","status":"publish","type":"post","link":"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/","title":{"rendered":"bgStretcher &#8211; Background Stretcher jQuery Plugin"},"content":{"rendered":"<p>bgStretcher es un plugin jQuery que te permite a\u00f1adir una imagen de gran tama\u00f1o (o un conjunto de im\u00e1genes) para el fondo de tu p\u00e1gina web y proporcionalmente cambiar el tama\u00f1o de la imagen(s) para llenar el \u00e1rea de la ventana entera.<\/p>\n<p><a href=\"https:\/\/www.jose-aguilar.com\/blog\/wp-content\/uploads\/2012\/07\/bgstretcher.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4140\" title=\"bgstretcher\" src=\"https:\/\/www.jose-aguilar.com\/blog\/wp-content\/uploads\/2012\/07\/bgstretcher-300x213.png\" alt=\"\" width=\"300\" height=\"213\" srcset=\"https:\/\/www.jose-aguilar.com\/blog\/wp-content\/uploads\/2012\/07\/bgstretcher-300x213.png 300w, https:\/\/www.jose-aguilar.com\/blog\/wp-content\/uploads\/2012\/07\/bgstretcher.png 875w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>El plugin funciona como una presentaci\u00f3n de diapositivas si el modo de im\u00e1genes m\u00faltiples se utiliza (la velocidad y la duraci\u00f3n de las diapositivas es configurable).<\/p>\n<p>Para utilizarlo tan solo deberemos incluirlo en &lt;head&gt; de nuestra p\u00e1gina junto con la librer\u00eda jQuery y algunos estilos + la llamada al plugin:<\/p>\n<pre>&lt;script type=\"text\/javascript\" src=\"..\/jquery-1.3.2.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script type=\"text\/javascript\" src=\"..\/bgstretcher.js\"&gt;&lt;\/script&gt;\r\n&lt;link rel=\"stylesheet\" href=\"..\/bgstretcher.css\" \/&gt;\r\n&lt;script type=\"text\/javascript\"&gt;\r\n$(document).ready(function(){\r\n   \/\/Initialize Backgound Stretcher\u00a0\u00a0 \u00a0\u00a0 \u00a0\r\n\u00a0\u00a0 $(document).bgStretcher({\r\n\u00a0\u00a0 \u00a0\u00a0 images: ['images\/sample-1.jpg', 'images\/sample-2.jpg', 'images\/sample-3.jpg', 'images\/sample-4.jpg'],\r\n\u00a0\u00a0 \u00a0\u00a0 imageWidth: 1024, imageHeight: 768\r\n\u00a0\u00a0 });\r\n});\r\n&lt;\/script&gt;<\/pre>\n<p>El plugin recibe como par\u00e1metro un array de ima\u00e1genes que iterar\u00e1n como fondo de la Web.<\/p>\n<p>Puedes ver m\u00e1s opciones y descarga <a href=\"http:\/\/www.ajaxblender.com\/bgstretcher-jquery-stretch-background-plugin.html\" target=\"_blank\">aqu\u00ed<\/a>.<\/p>\n<p><a href=\"https:\/\/www.jose-aguilar.com\/scripts\/jquery\/bgstretcher\/demo\/\" target=\"_blank\">Ver el ejemplo en funcionamiento<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>bgStretcher es un plugin jQuery que te permite a\u00f1adir una imagen de gran tama\u00f1o (o un conjunto de im\u00e1genes) para el fondo de tu p\u00e1gina web y proporcionalmente cambiar el tama\u00f1o de la imagen(s) para llenar el \u00e1rea de la ventana entera. El plugin funciona como una presentaci\u00f3n de diapositivas si el modo de im\u00e1genes [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4140,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[144],"class_list":["post-3528","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jquery","tag-backgrounds"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>bgStretcher - Background Stretcher jQuery Plugin - Jose Aguilar Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"bgStretcher - Background Stretcher jQuery Plugin - Jose Aguilar Blog\" \/>\n<meta property=\"og:description\" content=\"bgStretcher es un plugin jQuery que te permite a\u00f1adir una imagen de gran tama\u00f1o (o un conjunto de im\u00e1genes) para el fondo de tu p\u00e1gina web y proporcionalmente cambiar el tama\u00f1o de la imagen(s) para llenar el \u00e1rea de la ventana entera. El plugin funciona como una presentaci\u00f3n de diapositivas si el modo de im\u00e1genes [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/\" \/>\n<meta property=\"og:site_name\" content=\"Jose Aguilar Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/joseaguilarblog\" \/>\n<meta property=\"article:published_time\" content=\"2012-07-24T15:12:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-08-26T14:14:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.jose-aguilar.com\/blog\/wp-content\/uploads\/2012\/07\/bgstretcher.png\" \/>\n\t<meta property=\"og:image:width\" content=\"875\" \/>\n\t<meta property=\"og:image:height\" content=\"622\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jose Aguilar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@JoseAguilarBlog\" \/>\n<meta name=\"twitter:site\" content=\"@JoseAguilarBlog\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jose Aguilar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/\",\"url\":\"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/\",\"name\":\"bgStretcher - Background Stretcher jQuery Plugin - Jose Aguilar Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.jose-aguilar.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.jose-aguilar.com\/blog\/wp-content\/uploads\/2012\/07\/bgstretcher.png\",\"datePublished\":\"2012-07-24T15:12:20+00:00\",\"dateModified\":\"2012-08-26T14:14:25+00:00\",\"author\":{\"@id\":\"https:\/\/www.jose-aguilar.com\/blog\/#\/schema\/person\/e6d485db1e1140866e95971d17105d11\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/#primaryimage\",\"url\":\"https:\/\/www.jose-aguilar.com\/blog\/wp-content\/uploads\/2012\/07\/bgstretcher.png\",\"contentUrl\":\"https:\/\/www.jose-aguilar.com\/blog\/wp-content\/uploads\/2012\/07\/bgstretcher.png\",\"width\":875,\"height\":622},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/www.jose-aguilar.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"bgStretcher &#8211; Background Stretcher jQuery Plugin\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.jose-aguilar.com\/blog\/#website\",\"url\":\"https:\/\/www.jose-aguilar.com\/blog\/\",\"name\":\"Jose Aguilar Blog\",\"description\":\"Desarrollo Web con PrestaShop, WordPress, PHP, jQuery y Ajax\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.jose-aguilar.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.jose-aguilar.com\/blog\/#\/schema\/person\/e6d485db1e1140866e95971d17105d11\",\"name\":\"Jose Aguilar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.jose-aguilar.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/abbfef5f1d75260c549d0f2c2842bb697ba1aadff3b2836b39d2590c8a625415?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/abbfef5f1d75260c549d0f2c2842bb697ba1aadff3b2836b39d2590c8a625415?s=96&d=mm&r=g\",\"caption\":\"Jose Aguilar\"},\"description\":\"Director ejecutivo y tecnol\u00f3gico en JA Modules. Experto programador PrestaShop y Experto programador WordPress.\",\"sameAs\":[\"https:\/\/plus.google.com\/114357189801512615537\"],\"url\":\"https:\/\/www.jose-aguilar.com\/blog\/author\/josea902\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"bgStretcher - Background Stretcher jQuery Plugin - Jose Aguilar Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"es_ES","og_type":"article","og_title":"bgStretcher - Background Stretcher jQuery Plugin - Jose Aguilar Blog","og_description":"bgStretcher es un plugin jQuery que te permite a\u00f1adir una imagen de gran tama\u00f1o (o un conjunto de im\u00e1genes) para el fondo de tu p\u00e1gina web y proporcionalmente cambiar el tama\u00f1o de la imagen(s) para llenar el \u00e1rea de la ventana entera. El plugin funciona como una presentaci\u00f3n de diapositivas si el modo de im\u00e1genes [&hellip;]","og_url":"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/","og_site_name":"Jose Aguilar Blog","article_publisher":"https:\/\/www.facebook.com\/joseaguilarblog","article_published_time":"2012-07-24T15:12:20+00:00","article_modified_time":"2012-08-26T14:14:25+00:00","og_image":[{"width":875,"height":622,"url":"https:\/\/www.jose-aguilar.com\/blog\/wp-content\/uploads\/2012\/07\/bgstretcher.png","type":"image\/png"}],"author":"Jose Aguilar","twitter_card":"summary_large_image","twitter_creator":"@JoseAguilarBlog","twitter_site":"@JoseAguilarBlog","twitter_misc":{"Escrito por":"Jose Aguilar","Tiempo de lectura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/","url":"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/","name":"bgStretcher - Background Stretcher jQuery Plugin - Jose Aguilar Blog","isPartOf":{"@id":"https:\/\/www.jose-aguilar.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/#primaryimage"},"image":{"@id":"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/#primaryimage"},"thumbnailUrl":"https:\/\/www.jose-aguilar.com\/blog\/wp-content\/uploads\/2012\/07\/bgstretcher.png","datePublished":"2012-07-24T15:12:20+00:00","dateModified":"2012-08-26T14:14:25+00:00","author":{"@id":"https:\/\/www.jose-aguilar.com\/blog\/#\/schema\/person\/e6d485db1e1140866e95971d17105d11"},"breadcrumb":{"@id":"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/#primaryimage","url":"https:\/\/www.jose-aguilar.com\/blog\/wp-content\/uploads\/2012\/07\/bgstretcher.png","contentUrl":"https:\/\/www.jose-aguilar.com\/blog\/wp-content\/uploads\/2012\/07\/bgstretcher.png","width":875,"height":622},{"@type":"BreadcrumbList","@id":"https:\/\/www.jose-aguilar.com\/blog\/bgstretcher-background-stretcher-jquery-plugin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/www.jose-aguilar.com\/blog\/"},{"@type":"ListItem","position":2,"name":"bgStretcher &#8211; Background Stretcher jQuery Plugin"}]},{"@type":"WebSite","@id":"https:\/\/www.jose-aguilar.com\/blog\/#website","url":"https:\/\/www.jose-aguilar.com\/blog\/","name":"Jose Aguilar Blog","description":"Desarrollo Web con PrestaShop, WordPress, PHP, jQuery y Ajax","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.jose-aguilar.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Person","@id":"https:\/\/www.jose-aguilar.com\/blog\/#\/schema\/person\/e6d485db1e1140866e95971d17105d11","name":"Jose Aguilar","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.jose-aguilar.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/abbfef5f1d75260c549d0f2c2842bb697ba1aadff3b2836b39d2590c8a625415?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/abbfef5f1d75260c549d0f2c2842bb697ba1aadff3b2836b39d2590c8a625415?s=96&d=mm&r=g","caption":"Jose Aguilar"},"description":"Director ejecutivo y tecnol\u00f3gico en JA Modules. Experto programador PrestaShop y Experto programador WordPress.","sameAs":["https:\/\/plus.google.com\/114357189801512615537"],"url":"https:\/\/www.jose-aguilar.com\/blog\/author\/josea902\/"}]}},"_links":{"self":[{"href":"https:\/\/www.jose-aguilar.com\/blog\/wp-json\/wp\/v2\/posts\/3528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jose-aguilar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jose-aguilar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jose-aguilar.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jose-aguilar.com\/blog\/wp-json\/wp\/v2\/comments?post=3528"}],"version-history":[{"count":0,"href":"https:\/\/www.jose-aguilar.com\/blog\/wp-json\/wp\/v2\/posts\/3528\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jose-aguilar.com\/blog\/wp-json\/wp\/v2\/media\/4140"}],"wp:attachment":[{"href":"https:\/\/www.jose-aguilar.com\/blog\/wp-json\/wp\/v2\/media?parent=3528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jose-aguilar.com\/blog\/wp-json\/wp\/v2\/categories?post=3528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jose-aguilar.com\/blog\/wp-json\/wp\/v2\/tags?post=3528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}