elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Estamos en la red social de Mastodon


  Mostrar Mensajes
Páginas: [1] 2
1  Foros Generales / Foro Libre / Comprar y Vender de forma segura sitios web y dominios en: 5 Agosto 2012, 17:14 pm
Hola a todos!

Os dejo un nuevo sitio donde podréis comprar o vender sitios web y dominios, se llama Compra Venta Páginas Web y es hasta ahora el más completo.
Tiene muchas funcionalidades, entre otras el poder compartir los anuncios en las redes sociales y la compra venta segura a través del sitio para evitar estafas y poder comprar o vender tranquilamente. Yo antes lo hacía a través de Sedo hasta que encontré este sitio. Además poner anuncios es 100% gratis! aquí os dejo el enlace: http://www.compraventapaginasweb.com

Espero que os sea de ayuda.
2  Seguridad Informática / Seguridad / Ayuda Twitter Robado! en: 7 Junio 2012, 09:06 am
Buenos días,

Os escribo porque un gusano a robado la cuenta de twitter de mi madre y me gustaría recuperarla, no solicito ningún tipo de forma para hackear el twitter sino pido ayuda para recuperar la cuenta de twitter robada.

Se lo hemos comunicado al soporte de Twitter pero no sabemos nada, he estado investigando el tema en la red pero por falta de tiempo todavía no he encontrado nada.

Por favor os pido vuestra colaboración si alguien sabe del tema o si me puede ayudar a recuperar de nuevo la cuenta.

Muchas gracias
3  Programación / Desarrollo Web / Re: Problema con slideshow para validación W3C en: 25 Enero 2011, 20:42 pm
Hola de nuevo,

Lo he hecho de esa forma pero entonces no me aparecen las imagenes, debe de ser porque hay una segunda parte en el html que está asociada pero claro como lo haces para sacarlo?, pongo todo el código referente al slide, parece complicado:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />

<?php
   global $templateurl ;
   $templateurl = $this -> baseurl . '/templates/mi template' ;
   $js = $templateurl.'/js/';
   $css = $templateurl.'/css/';
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $templateurl; ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $templateurl; ?>/css/style.css" type="text/css" />
<script src="<?php echo $templateurl; ?>/js/jquery-1.3.2.js" type="text/javascript"></script>
<script src="<?php echo $templateurl; ?>/js/jquery-slide.js" type="text/javascript"></script>
<script src="<?php echo $templateurl; ?>/js/ie.js" type="text/javascript"></script>


      <!-- Header_gallery -->
<script type="text/javascript">
var $j = jQuery.noConflict();
$j('img').src = '<?php echo $templateurl; ?>/images/header/1.jpg';
$j('img').src = '<?php echo $templateurl; ?>/images/header/2.jpg';
$j('img').src = '<?php echo $templateurl; ?>/images/header/3.jpg';
$j('img').src = '<?php echo $templateurl; ?>/images/header/4.jpg';

$j(function() {
   var fx,   cbox = 1;//$('input:checkbox').click(start)[0];
   //cbox.checked = true;
   
   var markup = '<div id="slideshow">'
      + '<img src="<?php echo $templateurl; ?>/images/header/1.jpg" alt=""/><img src="<?php echo $templateurl; ?>/images/header/2.jpg" alt=""/><img src="<?php echo $templateurl; ?>/images/header/3.jpg" alt=""/><img src="<?php echo $templateurl; ?>/images/header/4.jpg" alt=""/>'
      + '</div>';
      
   function start() {
      $j('#slideshow').cycle('stop').remove();
        $j('#show').append(markup);
      $j('#effect').html(fx);
      $j('#slideshow').cycle({
         fx: fx,
         timeout: 5000,
         delay:  -1000,
         after: onAfter,
         sync: 1
      });
   }

   function onAfter(curr,next,opts) {
      var msg = 'Slide ' + (opts.currSlide + 1) + ' of ' + opts.slideCount;
      $j('#caption').html(msg);
   };
   
   fx = $j.trim("zoom");
   start();
});
</script>
                     <!-- Header_gallery_end -->
<!--[if IE]>
   <link href="<?php echo $templateurl; ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->

</head>
                                                                                          <body dir="ltr">
<div id="body">
   <div class="outer">
      <div id="shopcart">
         <jdoc:include type="modules" name="user2" />
      </div>
      <div id="currency"><jdoc:include type="modules" name="user1"  style="top" /></div>
      <div  id="logo">
         <a href="<?php echo $mainframe -> getCfg ( 'live_site' ) ; ?>">
            <img src="<?php echo $templateurl; ?>/images/logo.jpg" alt="" />
         </a>
      </div>
      <div id="search"><jdoc:include type="modules" name="user4" /></div>
      <div id="topmenu">
         <jdoc:include type="modules" name="user3" />
      </div>
      <div class="clear"></div>
      
      <div id="header" class="outer">
         <div class="inner">
            <div id="shop_now">
               <div id="show">
                  <div style="overflow: hidden; position: relative;" id="slideshow">
                      <img style="position: absolute; top: 0px; left: 0px; display: none; z-index: 9; opacity: 1; width: 991px; height: 334px;" src="<?php echo $templateurl; ?>/images/header/1.jpg" alt="" />
                      <img style="position: absolute; top: 0px; left: 0px; display: none; z-index: 9; opacity: 1; width: 991px; height: 334px;" src="<?php echo $templateurl; ?>/images/header/2.jpg" alt="" />
                      <img style="position: absolute; top: 0px; left: 0px; display: none; z-index: 9; opacity: 1; width: 991px; height: 334px;" src="<?php echo $templateurl; ?>/images/header/3.jpg" alt="" />
                      <img style="position: absolute; top: 0px; left: 0px; display: none; z-index: 9; opacity: 1; width: 991px; height: 334px;" src="<?php echo $templateurl; ?>/images/header/3.jpg" alt="" />
                  </div>

La primera y la última parte esta asociada al header de las imagenes y lo del medio son posiciones de modulos, debería de llevar las dos partes a otro archivo pero la verdad nosé como podría hacerlo, he probado varias fórmulas pero nada.
4  Programación / Desarrollo Web / Re: Problema con slideshow para validación W3C en: 25 Enero 2011, 17:12 pm
Muchas gracias por tu respuesta drvy,

Pienso que es mejor como tu dices si separo el javascript del html, te voy a decir como lo haría a ver si es correcto por si a alguien más le surge el problema.
este es el código a separar dentro del header gallery:
<!-- Header_gallery -->
<script type="text/javascript">
var $j = jQuery.noConflict();
$j('img').src = '<?php echo $templateurl; ?>/images/header/1.jpg';
$j('img').src = '<?php echo $templateurl; ?>/images/header/2.jpg';
$j('img').src = '<?php echo $templateurl; ?>/images/header/3.jpg';
$j('img').src = '<?php echo $templateurl; ?>/images/header/4.jpg';

$j(function() {
   var fx,   cbox = 1;//$('input:checkbox').click(start)[0];
   //cbox.checked = true;
   
   var markup = '<div id="slideshow">'
      + '<img src="<?php echo $templateurl; ?>/images/header/1.jpg" alt=""/><img src="<?php echo $templateurl; ?>/images/header/2.jpg" alt=""/><img src="<?php echo $templateurl; ?>/images/header/3.jpg" alt=""/><img src="<?php echo $templateurl; ?>/images/header/4.jpg" alt=""/>'
      + '</div>';
      
   function start() {
      $j('#slideshow').cycle('stop').remove();
        $j('#show').append(markup);
      $j('#effect').html(fx);
      $j('#slideshow').cycle({
         fx: fx,
         timeout: 5000,
         delay:  -1000,
         after: onAfter,
         sync: 1
      });
   }

   function onAfter(curr,next,opts) {
      var msg = 'Slide ' + (opts.currSlide + 1) + ' of ' + opts.slideCount;
      $j('#caption').html(msg);
   };
   
   fx = $j.trim("zoom");
   start();
});
</script>
                     <!-- Header_gallery_end -->

Cogería el código entero sin incluir lo de Header gallery, y lo guardaría en un archivo .js
Despues entre el header gallery y header gallery end escribría: <script src="http://mipagina/miarchivo.js"></script>

Sería correcto?

Muchas gracias

Un saludo
5  Programación / Desarrollo Web / Problema con slideshow para validación W3C en: 25 Enero 2011, 14:26 pm
Hola a todos,

Estoy intentando validar de una vez por todas mi web y entre otros errores me aparece este:

# Error Line 223, Column 35: document type does not allow element "div" here

   var markup = '<div id="slideshow">'

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
# Error Line 276, Column 43: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified

<input type="hidden" name="Itemid" value=93 />


# Error Line 287, Column 62: ID "slideshow" already defined

<div style="overflow: hidden; position: relative;" id="slideshow">

An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

# Info Line 223, Column 25: ID "slideshow" first defined here

   var markup = '<div id="slideshow">'

Algo tengo que tener mal, a simple vista el firebug no me da nada mal pero con el w3c validator me da esos errores.

Alguna idea?

Muchas gracias

Un saludo a todos

6  Programación / Desarrollo Web / Aparece el código en la primera imagén en: 9 Enero 2011, 16:41 pm
Hola de nuevo!

Aquí estoy intentando validar mi código en w3c y peleandome con las imagenes del head.
Me ha surgido ahora un problema hay una parte del código que cuando carga la web aparece en la primera imagen del slide y es esta:

img style="position: absolute; top: 0px; left: 0px; display: none; z-index: 9; opacity: 1; width: 991px; height: 334px;" src="<?php echo $templateurl; ?>/images/header/1.jpg" alt="imagen 1"
                      img style="position: absolute; top: 0px; left: 0px; display: none; z-index: 9; opacity: 1; width: 991px; height: 334px;" src="<?php echo $templateurl; ?>/images/header/2.jpg" alt="imagen 2"
                      img style="position: absolute; top: 0px; left: 0px; display: none; z-index: 9; opacity: 1; width: 991px; height: 334px;" src="<?php echo $templateurl; ?>/images/header/3.jpg" alt="imagen 3"


Aparece solo al principio cuando carga por un 1 segundo y luego ya no aparece.
El tema es que no se como dejarlo oculto para que no me aparezca, aquí os pego el resto del código por si alguien tuviera alguna idea:
<head>
<jdoc:include type="head" />

<?php
   global $templateurl ;
   $templateurl = $this -> baseurl . '/templates/mi plantilla' ;
   $js = $templateurl.'/js/';
   $css = $templateurl.'/css/';
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $templateurl; ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $templateurl; ?>/css/style.css" type="text/css" />
<script src="<?php echo $templateurl; ?>/js/jquery-1.3.2.js" type="text/javascript"></script>
<script src="<?php echo $templateurl; ?>/js/jquery-slide.js" type="text/javascript"></script>
<script src="<?php echo $templateurl; ?>/js/ie.js" type="text/javascript"></script>


      <!-- Header_gallery -->
<script type="text/javascript">
var $j = jQuery.noConflict();
$j('img').src = '<?php echo $templateurl; ?>/images/header/1.jpg';
$j('img').src = '<?php echo $templateurl; ?>/images/header/2.jpg';
$j('img').src = '<?php echo $templateurl; ?>/images/header/3.jpg';

$j(function() {
   var fx,   cbox = 1;//$('input:checkbox').click(start)[0];
   //cbox.checked = true;
   
   var markup = '<div id="slideshow">'
      + '<img src="<?php echo $templateurl; ?>/images/header/1.jpg" alt="imagen 1"/><img src="<?php echo $templateurl; ?>/images/header/2.jpg" alt="imagen 2"/><img src="<?php echo $templateurl; ?>/images/header/3.jpg" alt="imagen 3"/>'
      + '</div>';
      
   function start() {
      $j('#slideshow').cycle('stop').remove();
        $j('#show').append(markup);
      $j('#effect').html(fx);
      $j('#slideshow').cycle({
         fx: fx,
         timeout: 5000,
         delay:  -1000,
         after: onAfter,
         sync: 1
      });
   }

   function onAfter(curr,next,opts) {
      var msg = 'Slide ' + (opts.currSlide + 1) + ' of ' + opts.slideCount;
      $j('#caption').html(msg);
   };
   
   fx = $j.trim("zoom");
   start();
});
</script>
                     <!-- Header_gallery_end -->
<!--[if IE]>
   <link href="<?php echo $templateurl; ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->

</head>
                                                                                                   
<body dir="ltr">
<div id="body">
   <div class="outer">
      <div id="shopcart">
         <jdoc:include type="modules" name="user2" />
      </div>
      <div id="currency"><jdoc:include type="modules" name="user1"  style="top" /></div>
      <div  id="logo">
         <a href="<?php echo $mainframe -> getCfg ( 'live_site' ) ; ?>">
            <img src="<?php echo $templateurl; ?>/images/logo.jpg" longdesc="<?php echo $mainframe->getCfg('sitename') ; ?>" />
         </a>
      </div>
      <div id="search"><jdoc:include type="modules" name="user4" /></div>
      <div id="topmenu">
         <jdoc:include type="modules" name="user3" />
      </div>
      <div class="clear"></div>
      
      <div id="header" class="outer">
         <div class="inner">
            <div id="shop_now">
               <div id="show">
                  <div style="overflow: hidden; position: relative;" id="slideshow">
                      img style="position: absolute; top: 0px; left: 0px; display: none; z-index: 9; opacity: 1; width: 991px; height: 334px;" src="<?php echo $templateurl; ?>/images/header/1.jpg" alt="imagen 1"
                      img style="position: absolute; top: 0px; left: 0px; display: none; z-index: 9; opacity: 1; width: 991px; height: 334px;" src="<?php echo $templateurl; ?>/images/header/2.jpg" alt="imagen 2"
                      img style="position: absolute; top: 0px; left: 0px; display: none; z-index: 9; opacity: 1; width: 991px; height: 334px;" src="<?php echo $templateurl; ?>/images/header/3.jpg" alt="imagen 3"
                  </div>
               </div>
            </div>
Muchas gracias

7  Programación / Desarrollo Web / Re: Problema con codigo al intentar validar en W3C en: 9 Enero 2011, 12:45 pm
Hola Nakp

Muchísimas gracias por tu ayuda!
Lo he conseguido solucionar poniendo simplemente $j('img') y quitando el valor

Un saludo
8  Programación / Desarrollo Web / Re: Problema con codigo al intentar validar en W3C en: 9 Enero 2011, 01:06 am
Hola Nakp

Gracias por tu respuesta

Nosé exactamente como hacerlo por un .class o simplemente img, porque en cuanto muevo algo de la línea de código las imagenes no se me muestran.
9  Programación / Desarrollo Web / Re: Problema con codigo al intentar validar en W3C en: 8 Enero 2011, 12:04 pm
Buenos días bizco,

Quiero validar xhtml, aquí te escribo el código y te comento:

// no direct access

defined( '_JEXEC' ) or die( 'Restricted access' );

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >

<head>

<jdoc:include type="head" />



<?php

   global $templateurl ;

   $templateurl = $this -> baseurl . '/nombre de mi plantilla' ;

   $js = $templateurl.'/js/';

   $css = $templateurl.'/css/';

?>

<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />

<link rel="stylesheet" href="<?php echo $templateurl; ?>/css/template.css" type="text/css" />

<link rel="stylesheet" href="<?php echo $templateurl; ?>/css/style.css" type="text/css" />

<script src="<?php echo $templateurl; ?>/js/jquery-1.3.2.js" type="text/javascript"></script>

<script src="<?php echo $templateurl; ?>/js/jquery-slide.js" type="text/javascript"></script>

<script src="<?php echo $templateurl; ?>/js/ie.js" type="text/javascript"></script>



      <!-- Header_gallery -->

<script type="text/javascript">

var $j = jQuery.noConflict();

$j('<img />')[0].src = '<?php echo $templateurl; ?>/images/header/1.jpg';

$j('<img />')[0].src = '<?php echo $templateurl; ?>/images/header/2.jpg';

$j('<img />')[0].src = '<?php echo $templateurl; ?>/images/header/3.jpg';



$j(function() {

   var fx,   cbox = 1;//$('input:checkbox').click(start)[0];

   //cbox.checked = true;

   

   var markup = '<div id="slideshow">'

      + '<img src="<?php echo $templateurl; ?>/images/header/1.jpg"><img src="<?php echo $templateurl; ?>/images/header/2.jpg"><img src="<?php echo $templateurl; ?>/images/header/3.jpg">'

      + '</div>';

      

   function start() {

      $j('#slideshow').cycle('stop').remove();

        $j('#show').append(markup);

      $j('#effect').html(fx);

      $j('#slideshow').cycle({

         fx: fx,

         timeout: 4000,

         delay:  -1000,

         after: onAfter,

         sync: 1

      });

   }



   function onAfter(curr,next,opts) {

      var msg = 'Slide ' + (opts.currSlide + 1) + ' of ' + opts.slideCount;

      $j('#caption').html(msg);

   };

   

   fx = $j.trim("zoom");

   start();

});

</script>

                     <!-- Header_gallery_end -->

<!--[if IE]>

   <link href="<?php echo $templateurl; ?>/css/ieonly.css" rel="stylesheet" type="text/css" />

<![endif]-->



</head>

<body dir="ltr">

<div id="body">

   <div class="outer">

      <div id="shopcart">

         <jdoc:include type="modules" name="user2" />

      </div>

      <div id="currency"><jdoc:include type="modules" name="user1"  style="top" /></div>

      <div  id="logo">

         <a href="<?php echo $mainframe -> getCfg ( 'live_site' ) ; ?>">

            <img src="<?php echo $templateurl; ?>/images/logo.jpg" alt="<?php echo $mainframe->getCfg('sitename') ; ?>" />

         </a>

      </div>

      <div id="search"><jdoc:include type="modules" name="user4" /></div>

      <div id="topmenu">

         <jdoc:include type="modules" name="user3" />

      </div>

      <div class="clear"></div>

      

      <div id="header" class="outer">

         <div class="inner">

            <div id="shop_now">

               <div id="show">

                  <div style="overflow: hidden; position: relative;" id="slideshow">

                     <img style="position: absolute; top: 0px; left: 0px; display: none; z-index: 9; opacity: 1; width: 991px; height: 334px;" src="<?php echo $templateurl; ?>/images/header/1.jpg">

                     <img style="position: absolute; top: 0px; left: 0px; display: none; z-index: 9; opacity: 1; width: 991px; height: 334px;" src="<?php echo $templateurl; ?>/images/header/2.jpg">

                     <img style="position: absolute; top: 0px; left: 0px; display: none; z-index: 9; opacity: 1; width: 991px; height: 334px;" src="<?php echo $templateurl; ?>/images/header/3.jpg">

                  </div>

Este es el código de toda la parte del head de las imágenes, el problema lo da al validar por los archivos .js
Que podría hacer? y luego otro problema es que si ya estoy trabajando con una librería jquery, al meter un módulo que se llama gttranslate que traduce la página en varios idiomas, no me va a funcionar bien ya que trabaja con otra librería jquery con lo cual tendría que quitar la primera libreria, uff que follon nose que solución sería mejor para tenerlo todo correcto
10  Programación / Desarrollo Web / Re: Problema con codigo al intentar validar en W3C en: 7 Enero 2011, 15:10 pm
Hola, gracias por tu respuesta,

Te explico:

Intento poner 3 imagenes que se cambien automáticamente a una velocidad determinada, esto va en el index.php de la plantilla, te escribo el código del header:

<!-- Header_gallery -->
<script type="text/javascript">
var $j = jQuery.noConflict();
$j('<img />')[0].src = '<?php echo $templateurl; ?>/images/header/1.jpg';
$j('<img />')[0].src = '<?php echo $templateurl; ?>/images/header/2.jpg';
$j('<img />')[0].src = '<?php echo $templateurl; ?>/images/header/3.jpg';

$j(function() {
var fx, cbox = 1;//$('input:checkbox').click(start)[0];
//cbox.checked = true;

var markup = '<div id="slideshow">'
+ '<img src="<?php echo $templateurl; ?>/images/header/1.jpg" alt=""><img src="<?php echo $templateurl; ?>/images/header/2.jpg" alt=""><img src="<?php echo $templateurl; ?>/images/header/3.jpg" alt="">'
+ '</div>';

function start() {
$j('#slideshow').cycle('stop').remove();
$j('#show').append(markup);
$j('#effect').html(fx);
$j('#slideshow').cycle({
fx: fx,
timeout: 5000,
delay: -1000,
after: onAfter,
sync: 1
});
}

function onAfter(curr,next,opts) {
var msg = 'Slide ' + (opts.currSlide + 1) + ' of ' + opts.slideCount;
$j('#caption').html(msg);
};

fx = $j.trim("zoom");
start();
});
</script>
<!-- Header_gallery_end -->
Páginas: [1] 2
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines