Visualizzazione risultati 1 fino 15 di 15

Discussione: Errori nella visualizzazione

  1. #1
    Guest

    Predefinito Errori nella visualizzazione

    ciao gente,
    allora, prima che spacchi tutto dalla rabbia mi sapreste aiutare?

    mi sono fatto n c*l0 come una capanna a creare sto sito, la formattazione, l'imagpinazazione, gli stili...
    in FF si vede da paura, in IE NO!!!

    gurdata già la home page, la differenza, http://lsdblogs.altervista.org

    mi sapete aiutare per favore?

    grazie.

  2. #2
    L'avatar di muse85
    muse85 non è connesso Utente
    Data registrazione
    15-05-2006
    Messaggi
    114

    Predefinito

    Prova a validare il codice css e html con i validatrori della w3c

  3. #3
    Guest

    Predefinito

    e come si fa?

  4. #4
    L'avatar di maurizio
    maurizio non è connesso Altervistiano Junior
    Data registrazione
    26-10-2002
    Messaggi
    617

  5. #5
    Guest

    Predefinito

    ho fatto le due validazioni, ecco il reporto:

    Citazione Originalmente inviato da CSS
    W3C CSS Validator Results for http://lsdblogs.altervista.org/index.php

    To work as intended, your CSS style sheet needs a correct document parse tree. This means you should use valid HTML.
    Errors
    URI : http://lsdblogs.altervista.org/index.php

    * Line: 211

    Invalid number : font-size only 0 can be a length. You must put an unit after your number : -2
    * Line: 213

    Invalid number : font-size only 0 can be a length. You must put an unit after your number : -2
    * Line: 215

    Invalid number : font-size only 0 can be a length. You must put an unit after your number : -2

    Warnings
    URI : http://lsdblogs.altervista.org/index.php

    * Line : 8 (Level : 1) You have no color with your background-color : body
    * Line : 9 font-family: You are encouraged to offer a generic family as a last alternative
    * Line : 9 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : body
    * Line : 15 (Level : 1) You have no background-color with your color : a:link
    * Line : 19 (Level : 1) Same colors for color and background-color in two contexts div.commenti and a:visited
    * Line : 19 (Level : 1) You have no background-color with your color : a:visited
    * Line : 24 (Level : 1) Same colors for color and background-color in two contexts legend and a:hover
    * Line : 24 (Level : 1) You have no background-color with your color : a:hover
    * Line : 29 font-family: You are encouraged to offer a generic family as a last alternative
    * Line : 29 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : h1
    * Line : 59 (Level : 1) Same colors for color and background-color in two contexts div.commenti and input
    * Line : 59 (Level : 1) You have no background-color with your color : input
    * Line : 62 font-family: You are encouraged to offer a generic family as a last alternative
    * Line : 62 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : input
    * Line : 67 (Level : 1) Same colors for color and background-color in two contexts div.commenti and checkbox
    * Line : 67 (Level : 1) You have no background-color with your color : checkbox
    * Line : 70 font-family: You are encouraged to offer a generic family as a last alternative
    * Line : 70 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : checkbox
    * Line : 75 (Level : 1) You have no background-color with your color : select
    * Line : 75 (Level : 1) Same colors for color and background-color in two contexts div.commenti and select
    * Line : 78 font-family: You are encouraged to offer a generic family as a last alternative
    * Line : 78 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : select
    * Line : 83 (Level : 1) Same colors for color and background-color in two contexts div.commenti and textarea
    * Line : 83 (Level : 1) You have no background-color with your color : textarea
    * Line : 86 font-family: You are encouraged to offer a generic family as a last alternative
    * Line : 86 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : textarea
    * Line : 91 (Level : 1) You have no background-color with your color : file
    * Line : 91 (Level : 1) Same colors for color and background-color in two contexts div.commenti and file
    * Line : 94 font-family: You are encouraged to offer a generic family as a last alternative
    * Line : 94 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : file
    * Line : 114 (Level : 1) You have no color with your background-color : div.angolo
    * Line : 116 (Level : 2) Redefinition of margin-left : div.angolo
    * Line : 117 (Level : 2) Redefinition of margin-top : div.angolo
    * Line : 125 (Level : 1) You have no color with your background-color : div.bottom-right-corner
    * Line : 125 (Level : 1) You have no color with your background-color : div.bottom-right-corner
    * Line : 125 (Level : 1) You have no color with your background-color : div.bottom-right-corner
    * Line : 125 (Level : 1) You have no color with your background-color : div.bottom-right-corner
    * Line : 128 font-family: You are encouraged to offer a generic family as a last alternative
    * Line : 128 (Level : 1) Same colors for color and background-color in two contexts div.angolo and div.bottom-right-inside
    * Line : 128 (Level : 1) You have no background-color with your color : div.bottom-right-inside
    * Line : 128 (Level : 1) Same colors for color and background-color in two contexts div.angolo and div.bottom-right-inside
    * Line : 128 (Level : 1) You have no background-color with your color : div.bottom-right-inside
    * Line : 128 (Level : 1) Same colors for color and background-color in two contexts div.angolo and div.bottom-right-inside
    * Line : 128 (Level : 1) You have no background-color with your color : div.bottom-right-inside
    * Line : 128 (Level : 1) You have no background-color with your color : div.bottom-right-inside
    * Line : 128 (Level : 1) Same colors for color and background-color in two contexts div.angolo and div.bottom-right-inside
    * Line : 128 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : div.bottom-right-inside
    * Line : 128 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : div.bottom-right-inside
    * Line : 128 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : div.bottom-right-inside
    * Line : 128 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : div.bottom-right-inside
    * Line : 145 (Level : 1) You have no background-color with your color : div.box-contents
    * Line : 211 font-family: You are encouraged to offer a generic family as a last alternative
    * Line : 211 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : #auto15864611586461
    * Line : 213 font-family: You are encouraged to offer a generic family as a last alternative
    * Line : 213 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : #auto15864621586462
    * Line : 215 font-family: You are encouraged to offer a generic family as a last alternative
    * Line : 215 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : #auto15864631586463

    Valid CSS information


    e pure:

  6. #6
    Guest

    Predefinito

    segue...
    Citazione Originalmente inviato da HTML
    The DOCTYPE Declaration was not recognized or is missing. This probably means that the Formal Public Identifier contains a spelling error, or that the Declaration is not using correct syntax. Validation has been performed using a default "fallback" Document Type Definition that closely resembles "HTML 4.01 Transitional", but the document will not be Valid until you have corrected this problem with the DOCTYPE Declaration.

    Learn how to add a doctype to your document from our FAQ.

    This page is not Valid (no Doctype found)!

    Below are the results of attempting to parse this document with an SGML parser.

    1. Error Line 1 column 0: no document type declaration; implying "<!DOCTYPE HTML SYSTEM>".

    <html>

    The checked page did not contain a document type ("DOCTYPE") declaration. The Validator has tried to validate with a fallback DTD, but this is quite likely to be incorrect and will generate a large number of incorrect error messages. It is highly recommended that you insert the proper DOCTYPE declaration in your document -- instructions for doing this are given above -- and it is necessary to have this declaration before the page can be declared to be valid.


    2. Error Line 161 column 76: required attribute "ALT" not specified.

    ...735" height="47" border="0" usemap="#Map"> <map name="Map">

    The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

    Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.


    3. Error Line 162 column 72: required attribute "ALT" not specified.

    ...ds="10,7,161,44" href="index.php?page=index ">


    4. Error Line 163 column 73: required attribute "ALT" not specified.

    ...="170,7,321,42" href="lista.php?page=lista ">


    5. Error Line 164 column 79: required attribute "ALT" not specified.

    ...45" href="richiedi.php?page=richiedi ">


    6. Error Line 165 column 73: required attribute "ALT" not specified.

    ...="495,10,648,52" href="family.php?page=fam ">


    7. Error Line 166 column 70: required attribute "ALT" not specified.

    ...coords="658,10,729,44" href="faq.php?page=faq ">


    8. Error Line 205 column 27: required attribute "ALT" not specified.

    <img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=2&page=lista> Matteo Mar


    9. Error Line 205 column 50: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=2&page=lista> Matteo Maria Ambrogi

    You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary.


    10. Error Line 205 column 131: required attribute "ALT" not specified.

    ...> (25)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=15&page=lis


    11. Error Line 205 column 154: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=15&page=lista> Antonio Attili </a>


    12. Error Line 205 column 229: required attribute "ALT" not specified.

    ...a> (8)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=5&page=list


    13. Error Line 205 column 252: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=5&page=lista> Valerio Bianconi </a


    14. Error Line 205 column 329: required attribute "ALT" not specified.

    ...> (12)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=8&page=list


    15. Error Line 205 column 352: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=8&page=lista> Antonino Bonanni </a


    16. Error Line 205 column 428: required attribute "ALT" not specified.

    ...a> (5)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=11&page=lis


    17. Error Line 205 column 451: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=11&page=lista> Marco Braghiroli </


    18. Error Line 205 column 528: required attribute "ALT" not specified.

    ...a> (4)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=9&page=list


    19. Error Line 205 column 551: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=9&page=lista> Francesco Di Domenic


    20. Error Line 205 column 633: required attribute "ALT" not specified.

    ...> (12)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=7&page=list


    21. Error Line 205 column 656: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=7&page=lista> Massimiliano Faralli


    22. Error Line 205 column 736: required attribute "ALT" not specified.

    ...a> (9)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=12&page=lis


    23. Error Line 205 column 759: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=12&page=lista> Gabriele Gigli </a>


    24. Error Line 205 column 834: required attribute "ALT" not specified.

    ...a> (9)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=14&page=lis


    25. Error Line 205 column 857: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=14&page=lista> Simone Giovannini <


    26. Error Line 205 column 935: required attribute "ALT" not specified.

    ...a> (9)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=10&page=lis


    27. Error Line 205 column 958: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=10&page=lista> Paolo Ialongo </a>


    28. Error Line 205 column 1033: required attribute "ALT" not specified.

    ...> (24)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=18&page=lis


    29. Error Line 205 column 1056: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=18&page=lista> Paola Lafratta </a>


    30. Error Line 205 column 1131: required attribute "ALT" not specified.

    ...a> (7)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=6&page=list


    31. Error Line 205 column 1154: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=6&page=lista> Angela Liva </a> (26


    32. Error Line 205 column 1226: required attribute "ALT" not specified.

    ...> (26)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=16&page=lis


    33. Error Line 205 column 1249: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=16&page=lista> Federica Lucertini


    34. Error Line 205 column 1328: required attribute "ALT" not specified.

    ...a> (9)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=1&page=list

    continua....

  7. #7
    Guest

    Predefinito

    fine:
    ....

    35. Error Line 205 column 1351: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=1&page=lista> Marco Moroni </a> (3


    36. Error Line 205 column 1424: required attribute "ALT" not specified.

    ...> (33)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=3&page=list


    37. Error Line 205 column 1447: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=3&page=lista> Roberta Napoli </a>


    38. Error Line 205 column 1522: required attribute "ALT" not specified.

    ...> (12)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=17&page=lis


    39. Error Line 205 column 1545: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=17&page=lista> Matteo Sensini </a>


    40. Error Line 205 column 1620: required attribute "ALT" not specified.

    ...a> (4)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=4&page=list


    41. Error Line 205 column 1643: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=4&page=lista> Thomas Settimi </a>


    42. Error Line 205 column 1717: required attribute "ALT" not specified.

    ...a> (5)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=13&page=lis


    43. Error Line 205 column 1740: an attribute value must be a literal unless it contains only name characters.

    ...mg/bullet.jpg'><a href=view_blogs.php?id_b=13&page=lista> Giampiero Sindoni <


    44. Error Line 217 column 81: document type does not allow element "HR" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag.

    ...upero password</a><br><hr width="80%"><br>

    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


    45. Error Line 228 column 58: end tag for "B" omitted, but its declaration does not permit this.

    <tr><td>|| Fatcs totali: </td><td align=right><b>232</td></tr>

    * You forgot to close a tag, or
    * you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed.

    The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.


    46. Info Line 228 column 48: start tag was here.

    <tr><td>|| Fatcs totali: </td><td align=right><b>232</td></tr>

    47. Warning Line 238 column 34: cannot generate system identifier for general entity "page".

    1. <a href='view_blogs.php?id_b=1&page=lista'>Moroni Marco</a>: 33<br>2. <a href

    An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

    Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

    If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

    Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.


    48. Error Line 238 column 34: general entity "page" not defined and no default entity.

    1. <a href='view_blogs.php?id_b=1&page=lista'>Moroni Marco</a>: 33<br>2. <a href

    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.


    49. Error Line 238 column 38: reference to entity "page" for which no system identifier could be generated.

    1. <a href='view_blogs.php?id_b=1&page=lista'>Moroni Marco</a>: 33<br>2. <a href

    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.


    50. Info Line 238 column 33: entity was defined here.

    1. <a href='view_blogs.php?id_b=1&page=lista'>Moroni Marco</a>: 33<br>2. <a href

    51. Error Line 238 column 108: reference to entity "page" for which no system identifier could be generated.

    .... <a href='view_blogs.php?id_b=6&page=lista'>Liva Angela</a>: 26<br>3. <a hre


    52. Info Line 238 column 33: entity was defined here.

    1. <a href='view_blogs.php?id_b=1&page=lista'>Moroni Marco</a>: 33<br>2. <a href

    53. Error Line 238 column 177: reference to entity "page" for which no system identifier could be generated.

    .... <a href='view_blogs.php?id_b=2&page=lista'>Ambrogi Matteo Maria</a>: 25<br>


    54. Info Line 238 column 33: entity was defined here.

    1. <a href='view_blogs.php?id_b=1&page=lista'>Moroni Marco</a>: 33<br>2. <a href

    55. Error Line 238 column 256: reference to entity "page" for which no system identifier could be generated.

    ... <a href='view_blogs.php?id_b=10&page=lista'>Ialongo Paolo</a>: 24<br>5. <a h


    56. Info Line 238 column 33: entity was defined here.

    1. <a href='view_blogs.php?id_b=1&page=lista'>Moroni Marco</a>: 33<br>2. <a href

    57. Error Line 238 column 328: reference to entity "page" for which no system identifier could be generated.

    ... <a href='view_blogs.php?id_b=13&page=lista'>Sindoni Giampiero</a>: 19<br></f


    58. Info Line 238 column 33: entity was defined here.

    1. <a href='view_blogs.php?id_b=1&page=lista'>Moroni Marco</a>: 33<br>2. <a href

  8. #8
    L'avatar di Leo91
    Leo91 non è connesso Altervistiano Junior
    Data registrazione
    28-03-2004
    Residenza
    alle tue spalle
    Messaggi
    728

    Predefinito

    Ti consiglio di fare un foglio di stile per ie e uno per firefox come ho fatto io...
    usi il php (http_user_agent) e risolvi il problema..
    ti resta da fare una skin per IE...

  9. #9
    Guest

    Predefinito

    mi potresti spiegare meglio la procedura?

    grazie.

  10. #10
    L'avatar di Leo91
    Leo91 non è connesso Altervistiano Junior
    Data registrazione
    28-03-2004
    Residenza
    alle tue spalle
    Messaggi
    728

    Predefinito

    ti crei due fogli di stile (stile.css e firefox.css) e poi fai un controllo sul browser usato così:
    Codice PHP:
    <style type="text/css">
    <?$agent = "$_SERVER[HTTP_USER_AGENT]";
    $a = explode(";",$agent);
    if(
    $a[1] == " MSIE 6.0"){
    echo
    "@import url(stile.css);";
    }else{
    echo
    "@import url(firefox.css);";
    }
    ?>
    </style>
    Dopo ti regoli tu come modificare i css!

  11. #11
    Guest

    Predefinito

    grazie,
    ma come mai ho tutti questi problemi di visualizzazione??

  12. #12
    L'avatar di domenicoragusa
    domenicoragusa non è connesso Altervistiano Junior
    Data registrazione
    03-06-2005
    Messaggi
    618

    Predefinito

    anche io utilizzo due fogli di stile differenti, comunque ti consiglio di fare così:
    Codice PHP:
    if(stristr($_SERVER['HTTP_USER_AGENT'], "MSIE")){
    $fstyle="url_foglio_di_stile_explorer.css";
    }

    else{
    $fstyle="url_foglio_di_stile_tutti_altri_browser.css";
    }

    echo
    "<link rel=\"stylesheet\" href=\"$fstyle\" type=\"text/css\">";
    ciao ciao

  13. #13
    Guest

    Predefinito

    una parte del problema l'ho risolta direttamente, c'è però un fatto...

    cosa vedete di sbaglaito in questo codice?
    Codice HTML:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>|| lsdBlogs ||</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    body{
    background: White;
    font-family: Verdana;
    font-size: 8pt;
    }
    
    a:link{
    text-decoration: none;
    color: #929292;
    }
    a:visited{
    text-decoration: none;
    color: #666666;
    }
    
    a:hover{
    text-decoration: underline;
    color: #c2c2c2;
    }
    
    h1{
    text-align: center;
    font-family: Verdana;
    font-size: 10pt;
    font-weight: Bold;
    }
    /************
    GESTIONE FORM
    /************/
    fieldset.moduli{
    border: 1px solid Black;
    width: 60%;
    margin-left: 20%;
    }
    
    fieldset.blog{
    border: 1px solid Black;
    width: 90%;
    }
    
    legend{
    color: #fff;
    background: #c2c2c2;
    border: 1px solid Black;
    padding: 2px 6px;
    }
    
    label{
    padding-left: 1em;
    }
    
    input{
    color: #666666;
    border: 1px solid #C2C2C2;
    padding-left: 5px;
    font-family: Verdana;
    font-size: 10pt;
    }
    
    checkbox{
    color: #666666;
    border: 1px solid #C2C2C2;
    padding-left: 5px;
    font-family: Verdana;
    font-size: 10pt;
    }
    
    select{
    color: #666666;
    border: 1px solid #C2C2C2;
    padding-left: 5px;
    font-family: Verdana;
    font-size: 10pt;
    }
    
    textarea{
    color: #666666;
    border: 1px solid #C2C2C2;
    padding-left: 5px;
    font-family: Verdana;
    font-size: 10pt;
    }
    
    file{
    color: #666666;
    border: 1px solid #C2C2C2;
    padding-left: 5px;
    font-family: Verdana;
    font-size: 10pt;
    }
    
    div.commenti{
    border: 2px dashed White; 
    background: #666666; 
    color: white; 
    width:60%; 
    margin-left: 20px; 
    padding: 10px 10px 10px 10px;
    }
    
    /******************
    FINE GESTIONE FORM
    /*****************/
    
    div.angolo {
        position:relative;
        width: 728px;
        background-color: #E6E6E6;
        margin: 13px;
    /*	margin-left: 256px;
    	margin-top: 90px;
    	padding-top: 50px*/
    }
    
    /*********************
    GLOBAL ATTRIBUTES
    *********************/
    div.top-left-corner, div.bottom-left-corner, div.top-right-corner, div.bottom-right-corner
    {position:absolute; width:20px; height:20px; background-color:#FFF; overflow:hidden;}
    
    div.top-left-inside, div.bottom-left-inside, div.top-right-inside, div.bottom-right-inside {
    position:relative; font-size:150px; font-family:arial; color:#E6E6E6; line-height: 40px;}
    
    /*********************
    SPECIFIC ATTRIBUTES
    *********************/
    
    div.top-left-corner { top:0px; left:0px; }
    div.bottom-left-corner {bottom:0px; left:0px;}
    div.top-right-corner {top:0px; right:0px;}
    div.bottom-right-corner {bottom: 0px; right:0px;}
    
    div.top-left-inside {left:-8px;}
    div.bottom-left-inside {left:-8px; top:-17px;}
    div.top-right-inside {left:-25px;}
    div.bottom-right-inside {left:-25px; top:-17px;}
    
    div.box-contents {
    	position: relative; padding: 15px; color:#000;
    }
    </style>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);
    //-->
    </script>
    </head>
    
    <body>
    <div align="center" style="position:absolute; top: 0; width:734px; height:133px; z-index:4; left: 20%; background-image: url(img/menu.jpg); border: 1px none #000000;"></div>
    <div id="barramenu"  style="position:absolute; top:97px; width:734px; height:45px; z-index:5; border: 1px none #000000; left: 20%;">
    <img src="img/menuHome.jpg" width="735" height="47" border="0" usemap="#Map">   <map name="Map">
    
        <area shape="rect" coords="10,7,161,44" href="index.php?page=index ">
        <area shape="rect" coords="170,7,321,42" href="lista.php?page=lista ">
        <area shape="rect" coords="332,8,484,45" href="richiedi.php?page=richiedi ">
        <area shape="rect" coords="495,10,648,52" href="family.php?page=fam ">
        <area shape="rect" coords="658,10,729,44" href="faq.php?page=faq ">
      </map>
    </div>
    <div id="centratore" style="position: absolute; top:110px; left: 20%; z-index:1">
    
    <div class="angolo"> 
     <div class="top-left-corner">
    
        
      <div class="top-left-inside">&bull;</div>
      </div>
      <div class="bottom-left-corner">
        
      <div class="bottom-left-inside">&bull;</div>
      </div>
    <div class="top-right-corner">
        
      <div class="top-right-inside">&bull;</div>
      </div>
      <div class="bottom-right-corner">
    
        
      <div class="bottom-right-inside">&bull;</div>
      </div>
      <div class="box-contents">
    <br><br><br> 
    
    <b>Benvenuto nel sito dei blogs.</b><br>
    <br>
    <table style="font-size: 10pt" width="110%">
    <tr><td width="73%" valign="top">
    In questo sito potrai lasciare il tuo messaggio su qualcuno che conosci inventando frasi che lo descrivano in modo ironico o grottesco.<br>
    Ogni frase lasciata potrà essere commentata e votata al fine di premiare le migliori.<br>
    Se ti <a href="reg.php">registri</a> avrai modo di sfruttare il servizio di notifica e sarai in gado di lasciare tutti i blog che vorrai.<br>
    
    <b>Sei pregato di non usare parolacce o volgarità</b>, quando scrivi un blog. Il diretto interessato potrebbe offendersi e, non essendo questo lo scopo del sito, sarebbe 
    un fastidioso peccato. <br><font size="-2"><b>I messaggi reputati offensivi verranno eliminati dal blog senza avviso o appellabilità: a discrezione del webmaster</b></font>.<br>
    <br>
    Per qualasiasi dubbio contatta il <a href="mailto:lsdblogs@altervista.org">webmaster</a> dopo aver consultato l'area <a href="faq.php">FAQ</a>.
    
    <br><hr size="1" width="80%" noshade><br><br>
    Soggetti attualmente bloggati:<br><br>
    <img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=2&page=lista> Matteo Maria Ambrogi </a> (41)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=3&page=lista> Nome2 Cognome2 </a> (5)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=4&page=lista> Nome3 Cognome3 </a> (4)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=5&page=lista> Nome5 cognome5 </a> (4)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=6&page=lista> Nome6 Cognome6 </a> (3)<br><img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=1&page=lista> Marco Moroni </a> (29)<br></td>
    
    <td valign="top" width="27%" align="left">
    <fieldset class="blog"><legend>|| lyllo</legend><font size="-2">|| <a href='pannello.php'>Pannello di controllo</a><br>|| <a href='logout.php'>Logout</a></font></fieldset><br><fieldset class="blog"><legend> || Utenti registrati</legend><font size='-2'><a href='mailto: email5'>5</a>,</font> <font size='-2'><a href='mailto: email3'>a</a>,</font> <font size='-2'><a href='mailto: email2'>g</a>,</font> <font size='-2'><a href='mailto: email4'>lyllo</a>,</font> <font size='-2'><a href='mailto: email1'>lyllo2</a>,</font> </fieldset><br><fieldset class="blog"><legend>|| Stats <font size='-3'>30/06/2006</font></legend>
    
    		<table style='font-size: 8pt' width='100%'>
    		<tr><td>|| Totale Bloggati:</td><td align=right> <b>6</b></td></tr>
    		<tr><td>|| Fatcs totali: </td><td align=right><b>81</b></td></tr>
    		<tr><td>|| Commenti totali:</td><td align=right> <b>23</b></td></tr>
    		<tr><td>|| Utenti totali:</td><td align=right> <b>5</b></td></tr>
    
    		<tr><td>|| Visite ricevute:</td><td align=right> <b>26</b></td></tr></table><br><hr width='60%'><br>
    		<font size='-3'>&nbsp;|| Dal 4 Giugno 2006</font></fieldset><br><fieldset class="blog">
    		<legend>|| Top 5</legend>
    		<font size='-2'>1. <a href='view_blogs.php?id_b=2&page=lista'>Ambrogi Matteo Maria</a>: 41<br>2. <a href='view_blogs.php?id_b=1&page=lista'>Moroni Marco</a>: 29<br>3. <a href='view_blogs.php?id_b=3&page=lista'>Cognome2 Nome2</a>: 5<br>4. <a href='view_blogs.php?id_b=5&page=lista'>cognome5 Nome5</a>: 4<br>5. <a href='view_blogs.php?id_b=4&page=lista'>Cognome3 Nome3</a>: 4<br></font></fieldset></td></tr></table><br><br>
    
    <br>
    </div>
      <!-- end div.box-contents -->
    </div>
    <!-- end div.rounded-box -->
    
    
    </div>
    <!--fine centratore-->
    </body>
    </html>
    è l'output finale di una pagina php...

    PERCHE in IEXPLORER NON SI VEDONO GLI "A CAPO" <br>????
    MANNAGGIA A LUIIIIIIIIIII

  14. #14
    L'avatar di muse85
    muse85 non è connesso Utente
    Data registrazione
    15-05-2006
    Messaggi
    114

    Predefinito

    postaci la pagina php e non il css così diamo un'occhiata

  15. #15
    Guest

    Predefinito

    il problem è che con firefox si vede tutto bene...

    mah.. ecco il codice:
    Codice PHP:
    <?
    include_once("script/check_login.php");
    include(
    "header.php");
    include(
    "starter.php");
    include(
    "script/conn.php");

    $file_c = "script/counter.lsd";

    if (
    file_exists($file_c)) {
    $fp = fopen($file_c, "r+");
    flock($fp, 1);
    $conto = fgets($fp, 4096);
    $conto += 1;
    fseek($fp,0);
    fputs($fp, $conto);
    flock($fp, 3);
    fclose($fp);
    }
    ?>

    <b>Benvenuto nel sito dei blogs.</b><br>
    <br>
    <table style="font-size: 10pt" width="100%">
    <tr><td width="73%" valign="top">
    In questo sito potrai lasciare il tuo messaggio su qualcuno che conosci inventando frasi che lo descrivano in modo ironico o grottesco.<br>
    Ogni frase lasciata potrà essere commentata e votata al fine di premiare le migliori.<br>
    Se ti <a href="reg.php">registri</a> avrai modo di sfruttare il servizio di notifica e sarai in gado di lasciare tutti i blog che vorrai.<br>
    <b>Sei pregato di non usare parolacce o volgarità</b>, quando scrivi un blog. Il diretto interessato potrebbe offendersi e, non essendo questo lo scopo del sito, sarebbe
    un fastidioso peccato. <br><font size="-2"><b>I messaggi reputati offensivi verranno eliminati dal blog senza avviso o appellabilità: a discrezione del webmaster</b></font>.<br>
    <br>
    Per qualasiasi dubbio contatta il <a href="mailto:lsdblogs@altervista.org">webmaster</a> dopo aver consultato l'area <a href="faq.php">FAQ</a>.

    <br><hr size="1" width="80%" noshade><br><br>
    Soggetti attualmente bloggati:<br><br>
    <?php
    //conteggio blogs
    $cnt = array();
    $top5 = array();
    //$x = 0;
    $comm = mysql_query("SELECT blogs.id_bloggato, COUNT(id_blog) AS num_blog FROM blogs LEFT JOIN bloggati ON blogs.id_bloggato = blogs.id_blog GROUP BY blogs.id_bloggato")
    or die(
    mysql_error());
    while(
    $riga = mysql_fetch_array($comm)){
    $x = $riga['id_bloggato'];
    $cnt[$x] = array('id' => $riga['id_bloggato'], 'num_c' => $riga['num_blog']);
    $top5[$x] = array('num_c' => $riga['num_blog'], 'id' => $riga['id_bloggato']);
    }
    arsort($top5);
    //print_r($top5);

    //STATISTICHE*****
    $mi = mysql_query("SELECT * FROM blogs");
    $num_blgs = mysql_num_rows($mi);

    $mi2 = mysql_query("SELECT * FROM commenti");
    $num_com = mysql_num_rows($mi2);
    //******

    $blo = array();
    $qy = mysql_query("SELECT * FROM bloggati ORDER BY cognome ") or die(mysql_error());
    $num_blgd = mysql_num_rows($qy);
    while(
    $row = mysql_fetch_array($qy)){
    $indx = $row['id_bloggato'];
    $blo[$indx] = array('id' => $row['id_bloggato'], 'nome' => $row['nome'], 'cognome' => $row['cognome']);
    $ind_c = $row['id_bloggato'];
    if(
    $cnt[$ind_c]['num_c'] ==''){
    $cnt[$ind_c]['num_c'] = 0;
    }
    echo
    "<img src='./img/bullet.jpg'><a href=view_blogs.php?id_b=$row[id_bloggato]&page=lista> $row[nome] $row[cognome] </a> ({$cnt[$ind_c]['num_c']})<br>";
    }


    //print_r($blo);
    //echo"<br>******<br>";

    $usr = mysql_query("SELECT * FROM utenti order by username") or die(mysql_error());
    $num_usr = mysql_num_rows($usr);
    ?>
    </td>
    <td valign="top" width="27%" align="left">
    <?
    if($loggato == 0){
    ?>
    <fieldset class="blog">
    <legend>|| Login</legend>
    <form name="login" id="login" method="post" action="login.php">
    <font size="-2">|| Nome Utente</font><br>
    <input name="username" type="text" style="font-family: Verdana; font-size: -2" size="12"><br><br>
    <font size="-2">|| Password</font><br>
    <input name="password" type="password" style="font-family: Verdana; font-size: -2" size="12"><br><br>
    <font size="-2">|| Ricordami</font> <input type="checkbox" name="auto_log"><br><br>
    <input type="submit" value="|| Login" style="font-family: Verdana; font-size: -2">
    </form><hr width="80%">
    <font size="-2">|| <a href="rec_pw.php">Recupero password</a><br><hr width="80%"><br>
    || <a href="reg.php">Registrati</a></font>
    </fieldset>
    <br>
    <fieldset class="blog">
    <legend>|| Utenti registrati</legend>
    <?
    while($rusr = mysql_fetch_array($usr)){
    echo
    "<font size='-2'><a href='mailto: $rusr[email]'>$rusr[username]</a>,</font> ";
    }
    ?>
    </fieldset>
    <br>
    <fieldset class="blog">
    <?
    echo"<legend>Stats <font size='-3'>".date("d/m/Y")."</font></legend>";

    echo
    "<table style='font-size: 8pt' width='100%'>
    <tr><td>|| Totale Bloggati:</td><td align=right> <b>
    $num_blgd</b></td></tr>
    <tr><td>|| Fatcs totali: </td><td align=right><b>
    $num_blgs</b></td></tr>
    <tr><td>|| Commenti totali:</td><td align=right> <b>
    $num_com</b></td></tr>
    <tr><td>|| Utenti totali:</td><td align=right> <b>
    $num_usr</b></td></tr>
    <tr><td>|| Visite ricevute:</td><td align=right> <b>
    $conto</b></td></tr></table><br><hr width='60%'><br>
    <font size='-3'>&nbsp;|| Dal 4 Giugno 2006</font>"
    ;

    ?>
    </fieldset>

    <br>
    <fieldset class="blog">
    <legend>|| Top 5</legend>
    <font size='-2'>
    <?
    $class
    = array();
    for(
    $n = 1; $n < $num_blgd+1; $n++){
    $id = $top5[$n]['id'];
    $idb = $blo[$id]['id'];
    $num = $top5 [$id]['num_c'];
    $nome = $blo[$id]['nome'];
    $cog = $blo[$id]['cognome'];
    $class[$n] = array('num' => $num, 'nome' => $nome, 'cognome' => $cog, 'idb' => $idb);
    }

    //print_r($class);
    rsort($class);

    for(
    $n = 0; $n<5; $n++){
    $t = $n+1;
    $idb = $class[$n]['idb'];
    echo
    "$t. <a href='view_blogs.php?id_b=$idb&page=lista'>{$class[$n][cognome]} {$class[$n][nome]}</a>: {$class[$n][num]}<br>";
    }

    ?>
    </font>
    </fieldset>
    </td></tr></table><br>

    <?
    }else{
    echo
    "<fieldset class=\"blog\">";
    echo
    "<legend>|| ".$_SESSION['username']."</legend>";
    echo
    "<font size=\"-2\">|| <a href='pannello.php'>Pannello di controllo</a><br>|| <a href='logout.php'>Logout</a></font>";
    echo
    "</fieldset><br><fieldset class=\"blog\"><legend> || Utenti registrati</legend>";
    while(
    $rusr = mysql_fetch_array($usr)){
    echo
    "<font size='-2'><a href='mailto: $rusr[email]'>$rusr[username]</a>,</font> ";
    }
    echo
    "</fieldset><br><fieldset class=\"blog\"><legend>|| Stats <font size='-3'>".date("d/m/Y")."</font></legend>
    <table style='font-size: 8pt' width='100%'>
    <tr><td>|| Totale Bloggati:</td><td align=right> <b>
    $num_blgd</b></td></tr>
    <tr><td>|| Fatcs totali: </td><td align=right><b>
    $num_blgs</b></td></tr>
    <tr><td>|| Commenti totali:</td><td align=right> <b>
    $num_com</b></td></tr>
    <tr><td>|| Utenti totali:</td><td align=right> <b>
    $num_usr</b></td></tr>
    <tr><td>|| Visite ricevute:</td><td align=right> <b>
    $conto</b></td></tr></table><br><hr width='60%'><br>
    <font size='-3'>&nbsp;|| Dal 4 Giugno 2006</font>"
    ;
    echo
    "</fieldset><br><fieldset class=\"blog\">
    <legend>|| Top 5</legend>
    <font size='-2'>"
    ;
    $class = array();
    for(
    $n = 1; $n < $num_blgd+1; $n++){
    $id = $top5[$n]['id'];
    $idb = $blo[$id]['id'];
    $num = $top5 [$id]['num_c'];
    $nome = $blo[$id]['nome'];
    $cog = $blo[$id]['cognome'];
    $class[$n] = array('num' => $num, 'nome' => $nome, 'cognome' => $cog, 'idb' => $idb);
    }

    //print_r($class);
    rsort($class);

    for(
    $n = 0; $n<5; $n++){
    $t = $n+1;
    $idb = $class[$n]['idb'];
    echo
    "$t. <a href='view_blogs.php?id_b=$idb&page=lista'>{$class[$n][cognome]} {$class[$n][nome]}</a>: {$class[$n][num]}<br>";
    }
    echo
    "</font></fieldset></td></tr></table><br>";
    }


    ?>
    <?
    //FOTTER
    include("footer.php");
    ?>

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •