Attenzione! Tra qualche giorno l'url di GeekSquare diventerà www.geeksquare.it
Clicca qui per aggiungere il nuovo indirizzo ai tuoi preferiti ed essere sicuro di trovarci!!
Il mistero della pagina web da 0 byte…
Date un’occhiata a questa pagina.
Niente di particolare, vero? Anche un po’ bruttina, diciamocelo.
Va bene, ora andate a vedere il sorgente.
Come? Nel sorgente non è presente nemmeno una riga di codice HTML?
Come? Il file sorgente è di 0 byte (escluso il commento che vi trovate)?
Come è possibile che un file di 0 byte mostri sul vostro navigatore una pagina web con tanto di immagine, HTML, CSS e JavaScript?
E non usate Google per scoprire la risposta all’indovinello!
da admin
Ultimo commento:
di Elisa il 01/1/70
header("Link: REL=\"stylesheet\"; MEDIA=\"screen\" href=\"stile.css\"");
e...
Visualizza / Lascia un commento








ottobre 23rd, 2005 at 15:46
devo dire che è un uso molto interessante dei css …
peccato che su IE non funzioni
questo e il codice css della pagina ma non ho ancora capito come fa ad inserirlo nella pagina …
body { background: #9EAEB3 url(grad.jpg) repeat-x top; font-size: 20px; text-decoration: blink; font-weight: bold; }
body:after { content: “This page contains 0 bytes of HTML (excluding comments). View the source code, no CSS! Move your mouse here…” }
body:hover { text-decoration: none; color: green; }
body:hover:after { content: “Look, no Javascript, ma! View source… ” url(http://cow.neondragon.net/ui/cow/images/comments.gif) ” cow.neondragon.net”; color: white; background-color: blue; font-size: 24px; line-height: 36px; }
ottobre 23rd, 2005 at 16:08
Ahem…
messaggio subliminale…
usa la testa…
ottobre 23rd, 2005 at 16:09
Resolving cow.neondragon.net… done.
Connecting to cow.neondragon.net[83.142.229.198]:80… connected.
HTTP request sent, awaiting response…
1 HTTP/1.1 200 OK
2 Date: Sun, 23 Oct 2005 14:03:14 GMT
3 Server: Apache
4 X-Powered-By: PHP/4.4.0
5 Link: ; REL=”stylesheet”; MEDIA=”screen”
6 Content-Length: 17
7 Keep-Alive: timeout=15, max=100
8 Connection: Keep-Alive
9 Content-Type: text/html; charset=ISO-8859-1
ho vinto qualche cosa ?
ottobre 23rd, 2005 at 16:28
No, non ci sei ancora…
ottobre 23rd, 2005 at 18:42
cookie?
ottobre 23rd, 2005 at 18:47
No, Maurizio c’è andato molto vicino, manca solo un riferimento.
Da notare che nella pagina html non c’è una sola riga di codice.
Niente cookie o altro.
ottobre 23rd, 2005 at 21:19
non l’ho ancora provato ma sono quasi sicuro che è una questione di header
ottobre 23rd, 2005 at 21:20
non l’ho ancora provato ma sono quasi sicuro che è una questione di header
<?php
header(’Link: ; REL=”stylesheet”; MEDIA=”screen”‘);
?>
in php il codice dovrebbe essere questo …
ottobre 23rd, 2005 at 21:21
scusate …
ottobre 28th, 2005 at 14:49
E’ proprio un header:
header(”Link: REL=\”stylesheet\”; MEDIA=\”screen\” href=\”stile.css\”");
ed il css utilizza :after, non supportato da Esplorer.