REFERENCIAS:

Homero, el CSS y un trabajo increible |
<div style="position: absolute; padding-left: 1.47em; padding-top: 5.4em;">
<div style="font-size: 0.66em; color: #000;">C</div>
</div>
<div style="position: absolute; padding-left: 1.62em; padding-top: 5.53em;">
<div style="font-size: 10px">
<div style="width: 2.2em; height: 2.2em; background-color: #FED90E;"></div>
</div>
</div>
Book Flip Slideshow |
<script type='text/javascript'> // <![CDATA[ var Book_Image_Width = 250; // el ancho de las imágenes a utilizar var Book_Image_Height = 350; // el alto de las imágenes a utilizar var Book_Border = false; // si las imágenes tienen borde, ponemos true var Book_Border_Color = "gray"; // es el color del borde var Book_Speed = 15; // la velocidad del efecto var Book_NextPage_Delay = 1500; // 1 segundo=1000 var Book_Vertical_Turn = 0; // si queremos que sea vertical, colocamos el valor de 1 // esta es la lista de las imágenes a ser mostradas (mínimo cuatro) Book_Image_Sources=new Array( // si no se quiere agregar un enlace, se deja en blanco "" "URL_imagen1","URL_enlace1", "URL_imagen2","", "URL_imagen3","", "URL_imagen4","URL_enlace4" // la última imagen no debe terminar con una coma ); var B_CrImg=Book_Image_Sources.length/2; var B_LI, B_MI, B_RI, B_TI; var B_Angle=0; var B_MaxW; var B_Direction=1; var B_MSz; var B_Stppd=false; B_Pre_Img=new Array(Book_Image_Sources.length); function ImageBook() { if(document.getElementById) { for(i=0;iB_Pre_Img[i]=new Image(); B_Pre_Img[i].src=Book_Image_Sources[i]; } Book_Div=document.getElementById("Book"); B_LI=document.createElement("img");Book_Div.appendChild(B_LI); B_RI=document.createElement("img");Book_Div.appendChild(B_RI); B_MI=document.createElement("img");Book_Div.appendChild(B_MI); B_LI.style.position=B_MI.style.position=B_RI.style.position="absolute"; B_LI.style.zIndex=B_RI.style.zIndex=0;B_MI.style.zIndex=1; B_LI.style.top=(Book_Vertical_Turn?Book_Image_Height+1:0)+"px"; B_LI.style.left=0+"px"; B_MI.style.top=0+"px"; B_MI.style.left=(Book_Vertical_Turn?0:Book_Image_Width+1)+"px"; B_RI.style.top=0+"px"; B_RI.style.left=(Book_Vertical_Turn?0:Book_Image_Width+1)+"px"; B_LI.style.height=Book_Image_Height+"px"; B_MI.style.height=Book_Image_Height+"px"; B_RI.style.height=Book_Image_Height+"px"; B_LI.style.width=Book_Image_Width+"px"; B_MI.style.width=Book_Image_Width+"px"; B_RI.style.width=Book_Image_Width+"px"; if(Book_Border) { B_LI.style.borderStyle=B_MI.style.borderStyle=B_RI.style.borderStyle="solid"; B_LI.style.borderWidth=1+"px"; B_MI.style.borderWidth=1+"px"; B_RI.style.borderWidth=1+"px"; B_LI.style.borderColor=B_MI.style.borderColor=B_RI.style.borderColor=Book_Border_Color; } B_LI.src=B_Pre_Img[0].src; B_LI.lnk=Book_Image_Sources[1]; B_MI.src=B_Pre_Img[2].src; B_MI.lnk=Book_Image_Sources[3]; B_RI.src=B_Pre_Img[4].src; B_RI.lnk=Book_Image_Sources[5]; B_LI.onclick=B_MI.onclick=B_RI.onclick=B_LdLnk; B_LI.onmouseover=B_MI.onmouseover=B_RI.onmouseover=B_Stp; B_LI.onmouseout=B_MI.onmouseout=B_RI.onmouseout=B_Rstrt; BookImages(); } } function BookImages(){ if(!B_Stppd) { if(Book_Vertical_Turn) { B_MSz=Math.abs(Math.round(Math.cos(B_Angle)*Book_Image_Height)); MidOffset=!B_Direction?Book_Image_Height+1:Book_Image_Height-B_MSz; B_MI.style.top=MidOffset+"px"; B_MI.style.height=B_MSz+"px" } else { B_MSz=Math.abs(Math.round(Math.cos(B_Angle)*Book_Image_Width)); MidOffset=B_Direction?Book_Image_Width+1:Book_Image_Width-B_MSz; B_MI.style.left=MidOffset+"px"; B_MI.style.width=B_MSz+"px"} B_Angle+=Book_Speed/720*Math.PI; if(B_Angle>=Math.PI/2&&B_Direction) { B_Direction=0; if(B_CrImg==Book_Image_Sources.length)B_CrImg=0; B_MI.src=B_Pre_Img[B_CrImg].src; B_MI.lnk=Book_Image_Sources[B_CrImg+1]; B_CrImg+=2 } if(B_Angle>=Math.PI) { B_Direction=1; B_TI=B_LI; B_LI=B_MI; B_MI=B_TI; if(Book_Vertical_Turn)B_MI.style.top=0+"px"; else B_MI.style.left=Book_Image_Width+1+"px"; B_MI.src=B_RI.src; B_MI.lnk=B_RI.lnk; setTimeout("Book_Next_Delay()",Book_NextPage_Delay); } else setTimeout("BookImages()",50); } else setTimeout("BookImages()",50); } function Book_Next_Delay() { if(B_CrImg==Book_Image_Sources.length)B_CrImg=0; B_RI.src=B_Pre_Img[B_CrImg].src; B_RI.lnk=Book_Image_Sources[B_CrImg+1]; B_MI.style.zIndex=2; B_LI.style.zIndex=1; B_Angle=0; B_CrImg+=2; setTimeout("BookImages()",50); } function B_LdLnk() { if(this.lnk)window.location.href=this.lnk; } function B_Stp() { B_Stppd=true;this.style.cursor=this.lnk?"pointer":"default"; } function B_Rstrt() { B_Stppd=false; } // ]]> </script>
<div id="Book" style="position:relative;"> <img src="URL_placeholder.gif" width="elAncho" height="elAlto"> </div> <script type="text/javascript">ImageBook();</script>
Crimen y castigo |
Ampliar imágenes de manera sencilla |
<script type='text/javascript'>
//<![CDATA[
var nW,nH,oH,oW;
function zoomToggle(iWideSmall,iHighSmall,iWideLarge,iHighLarge,whichImage){
oW=whichImage.style.width;oH=whichImage.style.height;
if((oW==iWideLarge)||(oH==iHighLarge)){
nW=iWideSmall;nH=iHighSmall;
}else{
nW=iWideLarge;nH=iHighLarge;
}
whichImage.style.width=nW;whichImage.style.height=nH;
}
//]]>
</script>
<img src="URL_imagen" width="ancho1" height="alto1" onclick="zoomToggle('ancho1px','alto1px','ancho2px','alto2px',this);">
![]() | ![]() |
ScreenToaster: Creando screecasts online |
![]() | ![]() | ![]() |
ENLACE | ENLACE | ENLACE |
Click para ver los videos. |
Grabar videos desde Firefox |
Somos lo que fuimos |
¿Qué es Blogger?
Blogger es una herramienta para la publicación de weblogs ... Uno escribe entradas y las envía para que sean publicadas ordenadas cronológicamente teniendo como resultado, un sitio web de diseño personal.
¿Cómo funciona? ¡Es magia! y es gratuito.
Mostrando posts de cierta fecha |
<script type="text/javascript"> home_page = "http://nuestroSitio.blogspot.com/"; timezone = "-03:00"; function submitdate(){ year = document.selectdate.year.options[document.selectdate.year.selectedIndex].value;month = document.selectdate.month.options[document.selectdate.month.selectedIndex].value;day = document.selectdate.day.options[document.selectdate.day.selectedIndex].value;tmax = year+"-"+month+"-"+day+"T23:59:59"+timezone; tmin = year+"-"+month+"-"+day+"T00:00:00"+timezone; tlink = home_page+"search?updated-max="+encodeURIComponent(tmax)+"&updated-min="+encodeURIComponent(tmin)+"&max-results=20"; if(year=="" || month=="" || day=="") { alert("Please select a right date!"); return false; } else { self.location.href=tlink; } } </script>
<form id="buscarXfecha" name="selectdate"><span>Seleccione una fecha</span> <select name="day"> <option value="" selected="selected">DIA</option> <option value="01">1</option> ....... <option value="31">31</option> </select> <select name="month"> <option value="" selected="selected">MES</option> <option value="01">ENE</option> ....... <option value="11">NOV</option> <option value="12">DIC</option> </select> <select name="year"> <option value="" selected="selected">AÑO</option> <option value="2007">2007</option><option value="2008">2008</option> </select> <input type="button" onclick="submitdate()" value="BUSCAR"/> </form>
#buscarXfecha { /* el bloque del formulario */ background-color: #243240; border: 1px solid #4D5B68; margin: 0 auto; padding: 5px 0 10px; text-align: center; width: 250px; } #buscarXfecha span { /* el texto indicativo superior */ color: #FFFFFF; display:block; margin-bottom: 5px; } #buscarXfecha select { /* los elementos con las opciones */ background-color: #CCC; border: 2px solid #8D9BA8; color: #000; font-size: 11px; width: 50px; } #buscarXfecha input { /* el botón de envio */ background-color: #CCC; border: 2px solid #8D9BA8; color: #000; cursor: pointer; font-size: 10px; font-weight: bold; }
Amores y desamores varios |
Un nombre = Un avatar |
Wallpapers (más en negro) |
Feo como emoticón de GMail |
Seguidores: Personalizar el gadget |
<b:widget id='Followers1' locked='false' title='Seguidores' type='Followers'>
<b:widget id='Followers1' locked='false' title='Seguidores' type='Followers'> <b:includable id='main'> esta parte define el título: <b:if cond='data:title != ""'> <b:if cond='data:codeSnippet != ""'> <h2 class='title'><data:title/></h2> <b:else/> <h2 class='title'><data:title/> (<data:totalFollowerCount/>)</h2> </b:if> </b:if> NOTA: parece haber una opción para que en el título se muestre o no se muestre la cantidad de seguidores en función de algún dato pero, desconozco donde está. Podríamos hacerlo manualmente, eliminando esa parte y dejando sólo la parte de color. No es el único caso donde hay opciones poco claras, en el resto siguen apareciendo: <div expr:id='data:widget.instanceId + "-wrapper"'> <b:if cond='data:codeSnippet != ""'> <data:codeSnippet/> <b:else/> <b:if cond='data:followingLinkPresent'> este es el enlace que por defecto dice "Seguir este blog" y que nos permite agregarnos: <div class='follow-this profile-link item-control following-follow-this'> <a expr:href='"javascript:_FollowersView._openPopup(\"" + data:followUri + "\");"'> <data:followThisMessage/> </a> </div> este es el enlace que aparecerá si estamos siguiendo un blog y queremos dejar de hacerlo. Por defecto dice "Parar siguiente" (una traducción increible): <div class='follow-this profile-link item-control following-stop-following-this'> <a expr:href='"javascript:_FollowersView._openPopup(\"" + data:followUri + "\");"'> <data:stopFollowingMessage/> </a> </div> </b:if> <div class='followers-grid'> este es el mensaje que se muestra si el blog no tiene seguidores y que por defecto dice "Sé el primero en seguir este blog": <b:if cond='data:totalFollowerCount == 0'> <div class='profile-link item-control following-follow-this'> <data:emptyFollowersMessage/> </div> </b:if> este es el bucle que muestra el avatar de los seguidores con un enlace a su perfil de Blogger y con el atributo nofollow que no tiene sentido quitar ya que al no apuntar al blog, no significará un enlace valido para posicionar un sitio y de esta manera se evita el "seguimiento spam": <!-- Relies on the js written out in navbar.gxp --> <b:loop values='data:followers' var='follower'> <div class='follower'> <a expr:href='data:follower.profileUrl' expr:title='data:follower.displayName' rel='nofollow'> <img class='follower-img' expr:alt='data:follower.displayName' expr:height='data:follower.imageHeight' expr:onerror='"this.onerror=null;this.src=\"" + data:anonFollowerImageUrl + "\";"' expr:onload='"setAttributeOnload(this, \"src\", \"" + data:follower.imageUrl + "\")"' expr:width='data:follower.imageWidth' src='http://img1.blogblog.com/img/blank.gif'/> </a> </div> </b:loop> <div class='clear'/> </div> <div class='followers-canvas profile-link'> este es el mensaje que muestra la cantidad de seguidores: <data:followersFooterMessage/> este enlace permite "Ver todos los seguidores" ya que sólo se mostrará una cantidad máxima: <span class='item-control following-not-admin'> <a expr:href='data:followersUri'> <data:viewAllMessage/> </a> </span> este enlace dice "Administrar" y sólo lo veremos nosotros si estamos logueados: <span class='item-control blog-admin'> <a expr:href='data:manageFollowersUri'> <data:manageFollowersMessage/> </a> </span> </div> </b:if> <b:include name='quickedit'/> </div> </b:includable> </b:widget>
<style type='text/css'>
[... aquí colocamos las definiciones ...]
</style>
#Followers1 h2 { aquí podemos modificar el estilo del título } #Followers1-wrapper { este es el DIV general que contiene el elemento }
.follow-this { margin: 0 5px 5px 0; text-align: right; } .follow-this a { /* los enlaces superiores */ color: #7E92A6; font-weight: normal; font-size: 11px; } .follow-this a:hover { color: #9EB2C6; font-weight: bold; } .followers-canvas { /* la cantidad de seguidores */ background: transparent url(URL_imagen) no-repeat scroll left top; color: #778899; float: right; font-size: 11px; font-weight: normal; margin: 5px 5px 0 0; padding-left: 15px; text-align: right; } .following-not-admin a { /* es el enlace "Ver Todos" */ color: #7E92A6; display: block; font-size: 11px; font-weight: normal; text-align: right; } .following-not-admin a:hover { color: #9EB2C6; font-weight: bold; } .blog-admin a { /* es el enlace "Administrar" */ color: #7E92A6; font-weight: normal; font-size: 11px; } .blog-admin a:hover { color: #9EB2C6; font-weight: bold; }
.followers-grid { /* el espacio donde se mostrarán los avatares */ margin: 0 auto; /* esto lo centra */ padding: 0; width: anchopx; /* ese ancho es importante ya que define cuántas imágenes se mostrarán por línea */ } .follower-img { /* es la imagen en si misma que tienen 28x28 */ float: left; margin: 0; padding: 0; } .follower { /* cada imagen está dentro de un DIV */ float: left; height: valorpx; margin: 0px; width: valorpx} /* ancho y alto son la imagen más los bordes y márgenes */ }OTRA MIRADA:
Encontrar el enlace directo en SkyDrive |
Fijando DIVs en la página |
<script type='text/javascript'>
//<![CDATA[
....... aquí copiamos el código .......
//]]>
</script>
<script src="URL_archivo.js"></script>
var persistclose = 1 // una vez cerrada permanece cerrada (0 se muestra cada vez que se abre la página) var startX = 20 // posición horizontal de la ventana (en pixeles) var startY = 5 // posición vertical de la ventana (en pixeles) var verticalpos = "fromtop" // va arriba de la pantalla ("frombottom" va abajo) function iecompattest() { return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { offset += search.length end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; } function closebar() { if (persistclose) document.cookie="remainclosed=1" document.getElementById("topbar").style.visibility="hidden" } function staticbar(){ barheight=document.getElementById("topbar").offsetHeight var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera; var d = document; function ml(id){ var el=d.getElementById(id); if (!persistclose || persistclose && get_cookie("remainclosed")=="") el.style.visibility="visible" if(d.layers)el.style=el; el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";}; el.x = startX; if (verticalpos=="fromtop") el.y = startY; else { el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight; el.y -= startY; } return el; } window.stayTopLeft=function() { if (verticalpos=="fromtop") { var pY = ns ? pageYOffset : iecompattest().scrollTop; ftlObj.y += (pY + startY - ftlObj.y)/8; } else { var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight; ftlObj.y += (pY - startY - ftlObj.y)/8; } ftlObj.sP(ftlObj.x, ftlObj.y); setTimeout("stayTopLeft()", 10); } ftlObj = ml("topbar"); stayTopLeft(); } if (window.addEventListener) window.addEventListener("load", staticbar, false) else if (window.attachEvent) window.attachEvent("onload", staticbar) else if (document.getElementById) window.onload=staticbar
<div id='topbar'> ....... aquí va el contenido del mensaje a mostrar ....... <a href="javascript:void(0);" onclick="closebar(); return false">CERRAR</a> </div>
<div id="topbar" onclick="closebar(); return false">
....... aquí va el contenido del mensaje a mostrar .......
</div>
#topbar{ background-color: #F35D5D; border: 2px solid #FFFFFF; color: #FFFFFF; height: 70px; padding: 10px; position:absolute; width: 500px; visibility: hidden; z-index: 640; }
<style type="text/css">#fadeinbox{ background-color: lightyellow; border: 2px solid #FFFFFF; left: 0; padding: 10px; position:absolute; top: -400px; visibility:hidden; width: 350px; z-index: 100; }</style> <script type="text/javascript"> //<![CDATA[ var displaymode="always"; // la forma en que se mostrará var enablefade="yes" // habilita el efecto fade var autohidebox=["yes", 5] // oculta el cartel tras cierta cantidad de tiempo var showonscroll="yes" // se ueve mediante scroll var IEfadelength=1 // tiempo del fade para IE var Mozfadedegree=0.05 // datos del fade para NS6+ if (parseInt(displaymode)!=NaN) var random_num=Math.floor(Math.random()*displaymode) function displayfadeinbox() { var ie=document.all && !window.opera var dom=document.getElementById iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body objref=(dom)? document.getElementById("fadeinbox") : document.all.fadeinbox var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset var docwidth=(ie)? iebody.clientWidth : window.innerWidth docheight=(ie)? iebody.clientHeight: window.innerHeight var objwidth=objref.offsetWidth objheight=objref.offsetHeight objref.style.left=docwidth/2-objwidth/2+"px" objref.style.top=scroll_top+docheight/2-objheight/2+"px" if (showonscroll=="yes") showonscrollvar=setInterval("staticfadebox()", 50) if (enablefade=="yes" && objref.filters) { objref.filters[0].duration=IEfadelength objref.filters[0].Apply() objref.filters[0].Play() } objref.style.visibility="visible" if (objref.style.MozOpacity) { if (enablefade=="yes") mozfadevar=setInterval("mozfadefx()", 90) else { objref.style.MozOpacity=1 controlledhidebox() } } else controlledhidebox() } function mozfadefx() { if (parseFloat(objref.style.MozOpacity)<1) objref.style.MozOpacity=parseFloat(objref.style.MozOpacity)+Mozfadedegree else { clearInterval(mozfadevar) controlledhidebox() } } function staticfadebox() { var ie=document.all && !window.opera var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset objref.style.top=scroll_top+docheight/2-objheight/2+"px" } function hidefadebox() { objref.style.visibility="hidden" if (typeof showonscrollvar!="undefined") clearInterval(showonscrollvar) } function controlledhidebox() { if (autohidebox[0]=="yes") { var delayvar=(enablefade=="yes" && objref.filters)? (autohidebox[1]+objref.filters[0].duration)*1000 : autohidebox[1]*1000 setTimeout("hidefadebox()", delayvar) } } function initfunction() { setTimeout("displayfadeinbox()", 100) } function get_cookie(Name) { var search = Name + "=" var returnvalue = "" if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { offset += search.length end = document.cookie.indexOf(";", offset) if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; } if (displaymode=="oncepersession" && get_cookie("fadedin")=="" || displaymode=="always" || parseInt(displaymode)!=NaN && random_num==0) { if (window.addEventListener) window.addEventListener("load", initfunction, false) else if (window.attachEvent) window.attachEvent("onload", initfunction) else if (document.getElementById) window.onload=initfunction document.cookie="fadedin=yes" } //]]> </script>
<div id="fadeinbox" onclick="hidefadebox(); return false" style="filter:progid:DXImageTransform.Microsoft.RandomDissolve(duration=1) progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135); -moz-opacity:0">
....... aquí va el contenido del mensaje a mostrar .......
</div>
<style type="text/css"> .cartelFijo { background-color: #0080FF; border: 2px solid #FFFFFF; color: #FFFFFF; font-family: Tahoma; font-weight: bold; left: 20px; /* la coordenada horizontal donde se muestra */ padding: 10px; position: fixed; /* esto es lo que lo fija */ text-align: justify; top: 30px; /* la coordenada vertical donde se muestra */ width: 200px; /* el ancho del cartel */ z-index: 10000; }
<div class="cartelFijo" onclick="this.style.display='none'; return false">
....... aquí va el contenido del mensaje a mostrar .......
</div>
El elemento "Seguidores" y novedades varias |
Buenos Aires
Argentina
Nacido en el tercer mundo. Un santo varón. Buenos Aires. Los elefantes. Las golondrinas de Plaza de Mayo. Me chupo el dedo.
El tiempo es veloz. ¿No ves que ya no somos chiquitos? Despedida de la infancia. Todo es efímero. Juguetes perdidos. Dime quién me lo robó. Aprendizaje.
Soy un hippie. Rutas argentinas. Sobredosis de TV. Raros peinados nuevos. Más de cien mentiras. Delirium tremens.
Ciudad de pobres corazones. El karma de vivir al sur. Mundo de quimeras. Oh Dios, ¿Qué puedo hacer?
Cuando era más joven. Los mayores del mundo. Botas locas. Rejas electrificadas. Cerca de la revolución. Contra todos los males de este mundo. La casa desaparecida. Tumbas de la gloria. Vencedores vencidos. Carguen, apunten, fuego. Estás frito angelito. A lo mejor aún te acuerdas.
Ah, te vi entre las luces. Muchacha. Amor se llama el juego. Juego de seducción. Mi genio amor. Prométeme que nunca me dirás adiós. Pequeñas delicias de la vida conyugal. Toda la vida tiene música hoy. Es hora de levantare, querido (dormiste bien?).
Resumiendo.
Mi sueño de hoy. La sed verdadera. La búsqueda de la estrella. Todos juntos. ¡Ah! Basta de pensar.
Esto es to-to-todo amigos.
CONTRAER ARCHIVOS |
|