![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|
|
#1
|
||||
|
||||
|
Ya que estamos con helados... uno chocolate / trufa / vainilla.
Poyaque estamos pidiendo, ¿Que tal un Top Trucos? (trucos más visitados). Quizás los 10 / 20 trucos más visitados ¿? (sirva tambien de debate la preguntita) OFFtopic: "Poyaque" es una abreviatura típica del sur de españa, abrevia la frase "Pues ya que"; se suele aplicar cuando queremos decir: "Pues ya que has hecho esto... haz lo otro" (además quiere decir que se haga por el mismo precio, sin cobrar más )Saludos
__________________
Si usted entendió mi comentario, contácteme y gustosamente, se lo volveré a explicar hasta que no lo entienda, Gracias. |
|
#2
|
|||
|
|||
|
Muy bueno lo de la numeración, aunque me tiene descolocado desde el primer día la ordenación de los trucos. Tardo un rato en saber que trucos son nuevos y cuales ya he leido, ya que me parece que se mezclan.
Una solución, que se puedan ordenar los resultados pinchando en el titulo de la columna. Y otra cosa que me tiene loco es que no puedo abrir los resultados en una nueva pestaña (uso FireFox) lo cual es muy, muy comodo. Para resolverlo, habria que cambiar el onclick="vertruco('xx')" por un <a href='......', de modo que el link fuese un enlace y no la respuesta a un evento. Además, de esta forma google indexará las paginas de los trucos. Corregirme si me equivoco, pero creo que google no indexa paginas referenciadas mediante javascript, verdad?? Es muy facil pedir, asi que ofrezco mi ayuda ya que tengo experiencia con PHP y javascript. Por cierto, acabo de descubrir un fallo de seguridad que intentaré postear en privado al moderador. Saludos Última edición por Sick boy fecha: 22-06-2006 a las 12:22:09. |
|
#3
|
||||
|
||||
|
Cita:
Por cierto Emilio, además de la Batería, también te gusta el WindSurf ??, está un poquito escondido el link... pero se vé ![]() Saludos
__________________
Si usted entendió mi comentario, contácteme y gustosamente, se lo volveré a explicar hasta que no lo entienda, Gracias. |
|
#4
|
||||
|
||||
|
Cita:
![]() Ahora ya sólo me queda tiempo para la batería. Por cierto que casi todas las fotos de la página de windsurf están hechas frente a mi casa ![]() Un deporte apasionante
__________________
Saludos Emilio |
|
#5
|
||||
|
||||
|
Cita:
.Cita:
![]() ![]()
__________________
Van Troi De León (Not) Guía, Code vB:=Delphi-SQL, ¿Cómo? Viajar en el tiempo no es teóricamente posible, pues si lo fuera, ya estarían aqui contándonos al respecto! |
|
#6
|
||||
|
||||
|
Cita:
__________________
Saludos Emilio |
|
#7
|
||||
|
||||
|
Cita:
Código:
<html>
<head>
<style type="text/css">
td {border:1px solid black}
td a {width:100%; display:block}
td a:hover {background:red}
</style>
</head>
<body>
<table>
<tr>
<td style="width:120px">
<a href="algo.html">Enlace</a>
</td>
</tr>
</table>
</body>
</html>
Saludos, ![]()
__________________
Lo importante no es saber, sino tener el e-mail del que sabe. |
|
#8
|
||||
|
||||
|
No está mal, pero eso funciona con TD, la intención es que funcione con el TR o con el TABLE.
De todas formas las gracias por supuesto que ya las tienes ![]()
__________________
Saludos Emilio |
|
#9
|
|||
|
|||
|
Ya recorde donde lo habia visto, esta en PHPMyAdmin !!!!!!!
Esta es la función javascript: Código:
/**
* This array is used to remember mark status of rows in browse mode
*/
var marked_row = new Array;
/**
* Sets/unsets the pointer and marker in browse mode
*
* @param object the table row
* @param integer the row number
* @param string the action calling this script (over, out or click)
* @param string the default background color
* @param string the color to use for mouseover
* @param string the color to use for marking a row
*
* @return boolean whether pointer is set or not
*/
function setPointer(theRow, theRowNum, theAction, theDefaultColor, thePointerColor, theMarkColor)
{
var theCells = null;
// 1. Pointer and mark feature are disabled or the browser can't get the
// row -> exits
if ((thePointerColor == '' && theMarkColor == '')
|| typeof(theRow.style) == 'undefined') {
return false;
}
// 2. Gets the current row and exits if the browser can't get it
if (typeof(document.getElementsByTagName) != 'undefined') {
theCells = theRow.getElementsByTagName('td');
}
else if (typeof(theRow.cells) != 'undefined') {
theCells = theRow.cells;
}
else {
return false;
}
// 3. Gets the current color...
var rowCellsCnt = theCells.length;
var domDetect = null;
var currentColor = null;
var newColor = null;
// 3.1 ... with DOM compatible browsers except Opera that does not return
// valid values with "getAttribute"
if (typeof(window.opera) == 'undefined'
&& typeof(theCells[0].getAttribute) != 'undefined') {
currentColor = theCells[0].getAttribute('bgcolor');
domDetect = true;
}
// 3.2 ... with other browsers
else {
currentColor = theCells[0].style.backgroundColor;
domDetect = false;
} // end 3
// 3.3 ... Opera changes colors set via HTML to rgb(r,g,b) format so fix it
if (currentColor.indexOf("rgb") >= 0)
{
var rgbStr = currentColor.slice(currentColor.indexOf('(') + 1,
currentColor.indexOf(')'));
var rgbValues = rgbStr.split(",");
currentColor = "#";
var hexChars = "0123456789ABCDEF";
for (var i = 0; i < 3; i++)
{
var v = rgbValues[i].valueOf();
currentColor += hexChars.charAt(v/16) + hexChars.charAt(v%16);
}
}
// 4. Defines the new color
// 4.1 Current color is the default one
if (currentColor == ''
|| currentColor.toLowerCase() == theDefaultColor.toLowerCase()) {
if (theAction == 'over' && thePointerColor != '') {
newColor = thePointerColor;
}
else if (theAction == 'click' && theMarkColor != '') {
newColor = theMarkColor;
marked_row[theRowNum] = true;
// Garvin: deactivated onclick marking of the checkbox because it's also executed
// when an action (like edit/delete) on a single item is performed. Then the checkbox
// would get deactived, even though we need it activated. Maybe there is a way
// to detect if the row was clicked, and not an item therein...
// document.getElementById('id_rows_to_delete' + theRowNum).checked = true;
}
}
// 4.1.2 Current color is the pointer one
else if (currentColor.toLowerCase() == thePointerColor.toLowerCase()
&& (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum])) {
if (theAction == 'out') {
newColor = theDefaultColor;
}
else if (theAction == 'click' && theMarkColor != '') {
newColor = theMarkColor;
marked_row[theRowNum] = true;
// document.getElementById('id_rows_to_delete' + theRowNum).checked = true;
}
}
// 4.1.3 Current color is the marker one
else if (currentColor.toLowerCase() == theMarkColor.toLowerCase()) {
if (theAction == 'click') {
newColor = (thePointerColor != '')
? thePointerColor
: theDefaultColor;
marked_row[theRowNum] = (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum])
? true
: null;
// document.getElementById('id_rows_to_delete' + theRowNum).checked = false;
}
} // end 4
// 5. Sets the new color...
if (newColor) {
var c = null;
// 5.1 ... with DOM compatible browsers except Opera
if (domDetect) {
for (c = 0; c < rowCellsCnt; c++) {
theCells[c].setAttribute('bgcolor', newColor, 0);
} // end for
}
// 5.2 ... with other browsers
else {
for (c = 0; c < rowCellsCnt; c++) {
theCells[c].style.backgroundColor = newColor;
}
}
} // end 5
return true;
} // end of the 'setPointer()' function
Cita:
En cada celda puedes poner un href a documentos diferentes (por ejemplo para editar). Me parece que el efecto es el que se buscaba, funciona con todos los navegadores, y funciona el boton derecho, y como el link esta en un href el google lo indexa correctamente. No me merezco el 10, porque la función no es mia (ni mucho menos), solo soy muy observador, y recuerdo donde veo cosas interesantes. |
|
#10
|
|||||
|
|||||
|
Cita:
Cita:
Cita:
Cita:
Cita:
Si tienes una solución que cumpla con todo eso y con los navegadores principales te damos un 10 ![]()
__________________
Saludos Emilio |
|
#11
|
|||
|
|||
|
Puede que haya modificado la configuración de mi firefox, pero ahora esta como me gusta
Cita:
De momento, tengo ese efecto implementado para navegadores explorer. Lo he probado con firefox, y no funciona, pero voy a intentar modificarlo. Creo que es posible hacerlo, porque recuerdo haber visto alguna pagina donde mi firefox si que funcionaba..... Saludos |
|
#12
|
||||
|
||||
|
Cita:
![]() De verdad me alegra ver que la gente acepte retos y de paso que eche una mano que no viene mal. Cita:
Cita:
__________________
Saludos Emilio |
|
#13
|
||||
|
||||
|
Cita:
![]() por cierto, Lepe, eres de Lepe?
__________________
La otra guía de estilo | Búsquedas avanzadas | Etiquetas para código | Colabora mediante Paypal |
|
#14
|
|||
|
|||
|
Se podria meter algun sistema que avisara de lo los comentarios de los trucos, ya que si no vas mirando uno a uno, no hay forma de saber si alguien ha comentado algo. Se podria hacer una columa de comentario, con la fecha, si la hay, del ultimo. Que os parece?
|
|
#15
|
||||
|
||||
|
Cita:
__________________
La otra guía de estilo | Búsquedas avanzadas | Etiquetas para código | Colabora mediante Paypal |
|
#16
|
||||
|
||||
|
Cita:
__________________
Saludos Emilio |
|
#17
|
||||
|
||||
|
Cita:
. En un hilo anterior usé la palabra cachondeo.... y parece que tenía connotaciones sexuales por allá, por eso ahora lo he "traducido"Cita:
![]() Saludos ![]()
__________________
Si usted entendió mi comentario, contácteme y gustosamente, se lo volveré a explicar hasta que no lo entienda, Gracias. |
|
#18
|
||||
|
||||
|
Cita:
![]()
__________________
La otra guía de estilo | Búsquedas avanzadas | Etiquetas para código | Colabora mediante Paypal |
![]() |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Trucos para Linux | jhonny | Linux | 0 | 17-05-2003 18:20:01 |
|