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

junio 17, 2010

Agregar la opcion "RESPONDER" en los comentarios de Blogger.

Sabemos muy bien que esta opción en Blogger no aparece, pero la podemos agregar de la siguiente manera: como primer punto debemos tener a mano la ID de nuestro blog, porque de ella depende este truco. Para conseguir la ID de nuestro blog sólo tenemos que accesar a el y hacer click sobre la pestaña Configuración. Luego observamos la barra de navegación para observar una numeración que corresponde a la ID de nuestro blog Ver Imágenes.


Luego con los artilugios expandidos ubicamos lo siguiente:

<data:commentPostedByMsg/>

y colocamos debajo el siguiente código:

<span><a expr:href='&quot;https://www.blogger.com/comment.g?blogID=AQUI_LA_ID_DE_TU_BLOG&amp;postID=&quot; + data:post.id + &quot;&amp;isPopup=true&amp;postBody=%40%3C%61%20%68%72%65%66%3D%22%23&quot; + data:comment.anchorName + &quot;%22%3E&quot; + data:comment.author + &quot;%3C%2F%61%3E#form&quot;' onclick='javascript:window.open(this.href, &quot;bloggerPopup&quot;, &quot;toolbar=0,location=0,statusbar=1,menubar=0,scrollbars=yes,width=450,height=450&quot;); return false;'>[Responder]</a></span>


Ahora solo tenemos que guardar los cambios efectuados en nuestra plantilla y observar en la parte de los comentarios lo siguiente:






Espero les sea de utilidad.



marzo 01, 2010

Comprobar la eficacia de nuestro antivirus.

¿Realmente sabemos cuan eficáz es el antivirus que utilizamos?. Para cerciorarnos vamos a utilizar un pequeño código que nos hará salir, ahora que la duda nos asalta despues de ésta pregunta, y que conseguirán a continuación:

X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Ahora haremos lo siguiente: copiamos éste código y lo pegamos en el bloc de notas (notepad), dándole un nombre al archivo y lo guardamos. Si nuestro antivirus es lo suficientemente bueno, de manera inmediata nos lo hara saber a través de una notificación como la siguiente:




En caso contrario deberíamos pensar en cambiarlo.



Fuente: Opcionez



enero 27, 2010

Resolucion de pantalla

Número de pixeles de una apariencia visual que puede ser mostrada en pantalla.
Wikipedia

Este es un concepto de RESOLUCIÓN DE PANTALLA según Wikipedia. Con un código Javascript podemos indicarle a los visitantes de nuestra página web o blog cual es la resolución de pantalla que usan en su ordenador. Sólo tenemos que colocar el siguiente código como elemento HTML/Javascript.


<a href="javascript:alert('Tu resolución de pantalla es: '+screen.width+'x'+screen.height);"><center>

Haz click para saber la resolución de tu pantalla</center></a>


Un ejemplo lo veremos aqui:




Espero les sea de utilidad esta información.



diciembre 27, 2009

Fuegos Artificiales en el blog

Sabemos que las fiestas de fìn de año vienen acompañadas de un enorme despliegue de fuegos artificiales. Es la manera de festejar la partida de un año mas y la bienvenida, al que esperamos sea mejor. Vamos entonces, con nuestro blog, a hacer una demostraciòn de que tambien estamos festejando, pero para ello necesitaremos el siguiente script el cual debemos colocar sobre </body> y el ejemplo del efecto en este blog.




<script type="text/javascript">

// <![CDATA[

var bits=100; // how many bits

var intensity=7; // how 'powerful' is the explosion (from 3 to 10 is best)

var speed=20; // how fast - smaller is faster

var colours=new Array("#03f", "#f03", "#0e0", "#93f", "#0cc", "#f93"); 

//                     blue    red     green   purple  cyan    orange

/****************************

*      Fireworks Effect     *

*(c) 2004-6 mf2fm web-design*

*  http://www.mf2fm.com/rv  *

* DON'T EDIT BELOW THIS BOX *

****************************/

var dx, xpos, ypos, bangheight;

var Xpos=new Array();

var Ypos=new Array();

var dX=new Array();

var dY=new Array();

var decay=new Array();

var colour=0;

var swide=800;

var shigh=600;

function write_fire() {

  var b, s;

  b=document.createElement("div");

  s=b.style;

  s.position="absolute";

  b.setAttribute("id", "bod");

  document.body.appendChild(b);

  set_scroll();

  set_width();

  b.appendChild(div("lg", 3, 4));

  b.appendChild(div("tg", 2, 3));

  for (var i=0; i<bits; i++) b.appendChild(div("bg"+i, 1, 1));

}

function div(id, w, h) {

  var d=document.createElement("div");

  d.style.position="absolute";

  d.style.overflow="hidden";

  d.style.width=w+"px";

  d.style.height=h+"px";

  d.setAttribute("id", id);

  return (d);

}

function bang() {

  var i, X, Y, Z, A=0;

  for (i=0; i<bits; i++) { 

    X=Math.round(Xpos[i]); 

    Y=Math.round(Ypos[i]);

    Z=document.getElementById("bg"+i).style;

    if((X>=0)&&(X<swide)&&(Y>=0)&&(Y<shigh)) {

      Z.left=X+"px";

      Z.top=Y+"px";

 }

    if ((decay[i]-=1)>14) { 

   Z.width="3px";

   Z.height="3px";

    }

    else if (decay[i]>7) { 

   Z.width="2px";

   Z.height="2px";

    }

    else if (decay[i]>3) { 

   Z.width="1px";

   Z.height="1px";

    } 

    else if (++A) Z.visibility="hidden";

    Xpos[i]+=dX[i];

    Ypos[i]+=(dY[i]+=1.25/intensity);

  }

  if (A!=bits) setTimeout("bang()", speed);

}

 

function stepthrough() { 

  var i, Z;

  var oldx=xpos;

  var oldy=ypos;

  xpos+=dx;

  ypos-=4;

  if (ypos<bangheight||xpos<0||xpos>=swide||ypos>=shigh) {

    for (i=0; i<bits; i++) {

      Xpos[i]=xpos;

      Ypos[i]=ypos;

      dY[i]=(Math.random()-0.5)*intensity;

      dX[i]=(Math.random()-0.5)*(intensity-Math.abs(dY[i]))*1.25;

      decay[i]=Math.floor((Math.random()*16)+16);

      Z=document.getElementById("bg"+i).style;

      Z.backgroundColor=colours[colour];

   Z.visibility="visible";

    }

    bang();

    launch();

  }

  document.getElementById("lg").style.left=xpos+"px";

  document.getElementById("lg").style.top=ypos+"px";

  document.getElementById("tg").style.left=oldx+"px";

  document.getElementById("tg").style.top=oldy+"px";

} 

function launch() {

  colour=Math.floor(Math.random()*colours.length);

  xpos=Math.round((0.5+Math.random())*swide*0.5);

  ypos=shigh-5;

  dx=(Math.random()-0.5)*4;

  bangheight=Math.round((0.5+Math.random())*shigh*0.4);

  document.getElementById("lg").style.backgroundColor=colours[colour];

  document.getElementById("tg").style.backgroundColor=colours[colour];

}

window.onscroll=set_scroll;

function set_scroll() {

  var sleft, sdown;

  if (typeof(self.pageYOffset)=="number") {

    sdown=self.pageYOffset;

    sleft=self.pageXOffset;

  }

  else if (document.body.scrollTop || document.body.scrollLeft) {

    sdown=document.body.scrollTop;

    sleft=document.body.scrollLeft;

  }

  else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {

    sleft=document.documentElement.scrollLeft;

 sdown=document.documentElement.scrollTop;

  }

  else {

    sdown=0;

    sleft=0;

  }

  var s=document.getElementById("bod").style;

  s.top=sdown+"px";

  s.left=sleft+"px";

}

window.onresize=set_width;

function set_width() {

  if (typeof(self.innerWidth)=="number") {

    swide=self.innerWidth;

    shigh=self.innerHeight;

  }

  else if (document.documentElement && document.documentElement.clientWidth) {

    swide=document.documentElement.clientWidth;

    shigh=document.documentElement.clientHeight;

  }

  else if (document.body.clientWidth) {

    swide=document.body.clientWidth;

    shigh=document.body.clientHeight;

  }

}

window.onload=function() { if (document.getElementById) {

  set_width();

  write_fire();

  launch();

  setInterval('stepthrough()', speed);

}}

// ]]>

</script>



Espero lo disfruten.






noviembre 26, 2009

Como colocar una "Lluvia de Estrellas" en el blog.

Este es un muy bonito efecto para implementar en el blog ahora que estamos en vispera de navidad. Su implementación es muy sencilla, sólo tiene que colocar el código que se te mostrará a continuación como un elemento HTML/Javascript en la sidebar de tu blog, guardar los cambios y posteriormente arrastrar esa sección hasta el final de la sidebar.

<marquee behavior="scroll" direction="down" scrollamount="3" style="border: 0px none; height: 701px; left: 284px; margin: 0px; padding: 0px; position: absolute; top: 15px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="border: 0px none; height: 141px; left: 68px; margin: 0px; padding: 0px; position: absolute; top: 99px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="border: 0px none; height: 591px; left: 846px; margin: 0px; padding: 0px; position: absolute; top: 62px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="1" style="border: 0px none; height: 421px; left: 873px; margin: 0px; padding: 0px; position: absolute; top: 29px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="5" style="border: 0px none; height: 556px; left: 291px; margin: 0px; padding: 0px; position: absolute; top: 76px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="5" style="border: 0px none; height: 351px; left: 816px; margin: 0px; padding: 0px; position: absolute; top: 6px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="border: 0px none; height: 398px; left: 604px; margin: 0px; padding: 0px; position: absolute; top: 78px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="border: 0px none; height: 600px; left: 720px; margin: 0px; padding: 0px; position: absolute; top: 115px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="6" style="border: 0px none; height: 54px; left: 237px; margin: 0px; padding: 0px; position: absolute; top: 45px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="5" style="border: 0px none; height: 651px; left: 242px; margin: 0px; padding: 0px; position: absolute; top: 107px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="border: 0px none; height: 138px; left: 841px; margin: 0px; padding: 0px; position: absolute; top: 18px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="1" style="border: 0px none; height: 624px; left: 108px; margin: 0px; padding: 0px; position: absolute; top: 10px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="5" style="border: 0px none; height: 784px; left: 638px; margin: 0px; padding: 0px; position: absolute; top: 23px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="border: 0px none; height: 305px; left: 737px; margin: 0px; padding: 0px; position: absolute; top: 73px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="" style="border: 0px none; height: 250px; left: 288px; margin: 0px; padding: 0px; position: absolute; top: 16px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="border: 0px none; height: 139px; left: 720px; margin: 0px; padding: 0px; position: absolute; top: 57px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="border: 0px none; height: 539px; left: 524px; margin: 0px; padding: 0px; position: absolute; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="5" style="border: 0px none; height: 337px; left: 637px; margin: 0px; padding: 0px; position: absolute; top: 65px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="border: 0px none; height: 281px; left: 757px; margin: 0px; padding: 0px; position: absolute; top: 104px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="border: 0px none; height: 50px; left: 829px; margin: 0px; padding: 0px; position: absolute; top: 80px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="border: 0px none; height: 136px; left: 878px; margin: 0px; padding: 0px; position: absolute; top: 5px; width: auto; z-index: 1;"><img src="http://jtpinto51.googlepages.com/STAR_LIGHTER.gif" /></marquee><a href="http://milaboratoriodepruebas.com/" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(255, 255, 255) none repeat scroll 0% 0%; border: 1px double rgb(0, 173, 239); color: navy; font-family: tahoma; font-size: 11px; padding: 1px; text-decoration: none;" target="_blank"></a>

El efecto puedes visualizarlo en esta DEMO.



noviembre 10, 2009

Efecto multicolor en los enlaces

Este efecto tiene cierta similitud con el efecto Rainbow. Para implementarlo accedemos a nuestra plantilla de la manera acostumbrada, y ayudados por nuestro buscador de códigos (CTRL+F) ubicamos  </head> y sobre el mismo colocamos el siguiente código:





<script type='text/javascript'>

//<![CDATA[

var rate = 20;

if (document.getElementById)
  window.onerror=new Function("return true")

var objActive;  // The object which event occured in
  var act = 0;    // Flag during the action
  var elmH = 0;   // Hue
  var elmS = 128; // Saturation
  var elmV = 255; // Value
  var clrOrg;     // A color before the change
  var TimerID;    // Timer ID

if (document.all) {
  document.onmouseover = doRainbowAnchor;
  document.onmouseout = stopRainbowAnchor;
  }
  else if (document.getElementById) {
  document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
  document.onmouseover = Mozilla_doRainbowAnchor;
  document.onmouseout = Mozilla_stopRainbowAnchor;
  }

function doRainbow(obj)
  {
  if (act == 0) {
  act = 1;
  if (obj)
  objActive = obj;
  else
  objActive = event.srcElement;
  clrOrg = objActive.style.color;
  TimerID = setInterval("ChangeColor()",100);
  }
  }


function stopRainbow()
  {
  if (act) {
  objActive.style.color = clrOrg;
  clearInterval(TimerID);
  act = 0;
  }
  }


function doRainbowAnchor()
  {
  if (act == 0) {
  var obj = event.srcElement;
  while (obj.tagName != 'A' && obj.tagName != 'BODY') {
  obj = obj.parentElement;
  if (obj.tagName == 'A' || obj.tagName == 'BODY')
  break;
  }

if (obj.tagName == 'A' && obj.href != '') {
  objActive = obj;
  act = 1;
  clrOrg = objActive.style.color;
  TimerID = setInterval("ChangeColor()",100);
  }
  }
  }


function stopRainbowAnchor()
  {
  if (act) {
  if (objActive.tagName == 'A') {
  objActive.style.color = clrOrg;
  clearInterval(TimerID);
  act = 0;
  }
  }
  }


function Mozilla_doRainbowAnchor(e)
  {
  if (act == 0) {
  obj = e.target;
  while (obj.nodeName != 'A' && obj.nodeName != 'BODY') {
  obj = obj.parentNode;
  if (obj.nodeName == 'A' || obj.nodeName == 'BODY')
  break;
  }

if (obj.nodeName == 'A' && obj.href != '') {
  objActive = obj;
  act = 1;
  clrOrg = obj.style.color;
  TimerID = setInterval("ChangeColor()",100);
  }
  }
  }


function Mozilla_stopRainbowAnchor(e)
  {
  if (act) {
  if (objActive.nodeName == 'A') {
  objActive.style.color = clrOrg;
  clearInterval(TimerID);
  act = 0;
  }
  }
  }


function ChangeColor()
  {
  objActive.style.color = makeColor();
  }


function makeColor()
  {
  // Don't you think Color Gamut to look like Rainbow?

// HSVtoRGB
  if (elmS == 0) {
  elmR = elmV;    elmG = elmV;    elmB = elmV;
  }
  else {
  t1 = elmV;
  t2 = (255 - elmS) * elmV / 255;
  t3 = elmH % 60;
  t3 = (t1 - t2) * t3 / 60;

if (elmH < 60) {
  elmR = t1;  elmB = t2;  elmG = t2 + t3;
  }
  else if (elmH < 120) {
  elmG = t1;  elmB = t2;  elmR = t1 - t3;
  }
  else if (elmH < 180) {
  elmG = t1;  elmR = t2;  elmB = t2 + t3;
  }
  else if (elmH < 240) {
  elmB = t1;  elmR = t2;  elmG = t1 - t3;
  }
  else if (elmH < 300) {
  elmB = t1;  elmG = t2;  elmR = t2 + t3;
  }
  else if (elmH < 360) {
  elmR = t1;  elmG = t2;  elmB = t1 - t3;
  }
  else {
  elmR = 0;   elmG = 0;   elmB = 0;
  }
  }

elmR = Math.floor(elmR).toString(16);
  elmG = Math.floor(elmG).toString(16);
  elmB = Math.floor(elmB).toString(16);
  if (elmR.length == 1)    elmR = "0" + elmR;
  if (elmG.length == 1)    elmG = "0" + elmG;
  if (elmB.length == 1)    elmB = "0" + elmB;

elmH = elmH + rate;
  if (elmH >= 360)
  elmH = 0;

return '#' + elmR + elmG + elmB;
  }

//]]>

</script>


Posterior a esto guardamos cambios, y para ver el efecto sólo tenemos que pasar el cursor sobre cualquier enlace o link y allí aparecerá el efecto.


Fuente:  AllBlogTools

octubre 03, 2009

Sombrear los titulos de la entradas

En lo personal este efecto no es de mi agrado, pero habrá personas a las cuales si les guste, además de que las informaciones hay que compartirlas. Para ello accedemos a nuestra plantilla de la manera acostumbrada, y con nuestro buscador de códigos (CTRL+F) ubicamos, según la plantilla, esto  .post tittle{  ó  .post h3, y justo debajo colocamos esto:
 


text-shadow: #6374AB 10px -10px 3px;

Con la inclusión de ésta línea, justo debajo de los títulos marcados anteriormente en azul, veremos entonces un efecto como el siguiente:






Espero les sea de utilidad.






 

Mi laboratorio de pruebas Copyright © 2011 -- Template created by O Pregador -- Powered by Blogger