Visualizzazione risultati 1 fino 13 di 13

Discussione: frames

  1. #1
    Guest

    Predefinito

    ho fatto la home del mio sito tutta a frames , ma quando la apro appare prima l' indirizzo che scrivo all' inizio del documento ( !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//IT" http://www.w3.org/TR/html4 ecc. ) però solo da IT in poi . dopo poco appare la pagina , ma quella scritta da fastidio...

  2. #2
    aeclanum non è connesso Utente
    Data registrazione
    25-03-2003
    Messaggi
    210

    Predefinito

    hai messo un > di troppo :

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//IT">
    "http://www.w3.org/TR/html4/frameset.dtd">
    <html>
    <head>
    <title>Pokemon Square</title></head>
    <frameset cols="20%,*">
    <frame src="http://www.pokemonsquare.altervista.org/frames/menu.htm">
    <frame src="http://www.pokemonsquare.altervista.org/frames/1page.htm">

    </frameset>
    </html>

    quello giusto è:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//IT"
    "http://www.w3.org/TR/html4/frameset.dtd">
    <html>
    <head>
    <title>Pokemon Square</title></head>
    <frameset cols="20%,*">
    <frame src="http://www.pokemonsquare.altervista.org/frames/menu.htm">
    <frame src="http://www.pokemonsquare.altervista.org/frames/1page.htm">

    </frameset>
    </html>

  3. #3
    Guest

    Predefinito

    [code:1:9fdc28a0a3]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//IT" "http://www.w3.org/TR/html4/frameset.dtd">
    <html>
    <head>
    <title>Pokemon Square</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <frameset cols="20%,*">
    <frame src="http://www.pokemonsquare.altervista.org/frames/menu.htm">
    <frame src="http://www.pokemonsquare.altervista.org/frames/1page.htm">
    </frameset>
    <noframes><body>
    </body></noframes>
    </html>
    [/code:1:9fdc28a0a3]

  4. #4
    aeclanum non è connesso Utente
    Data registrazione
    25-03-2003
    Messaggi
    210

    Predefinito

    Stavolta non capisco io

  5. #5
    Guest

    Predefinito

    Questo è più corretto, compatibile con gli standard w3 per l'html 4.01

  6. #6
    aeclanum non è connesso Utente
    Data registrazione
    25-03-2003
    Messaggi
    210

    Predefinito

    ah!
    la terza che hai detto!

  7. #7
    Guest

    Predefinito

    scusate se riprendo questo topic che ormai non veniva più visto da un po , ma non ho più avuto tempo di connettermi qua .

    ora il problema ( non sono del tutto sicuro che c' entri coi frames ) é un ' altro
    per evitare che dal menu a sinistra i link si aprano in quello stesso frame e non nella intera pagina , creando un casino allucinante , ho messo nel frame "menu.htm" (nella head )<base target="1page.htm"> , ma il link me lo apre in un' altra finestra , in tutta la pagina ma in altra finestra :?
    rimedi?

  8. #8
    aeclanum non è connesso Utente
    Data registrazione
    25-03-2003
    Messaggi
    210

    Predefinito

    <a href=”paginaDaLinkare.html” target=”nomeDelFrame”>

    nomeDelFrame non è il nome della pagina html, ma il name="xyz" che hai dato al frame quando lo hai definito!

  9. #9
    Guest

    Predefinito

    <frameset>
    <frame name="xyz">
    <frame name="abc">
    </frameset>

  10. #10
    Guest

    Predefinito

    Citazione Originalmente inviato da aeclanum
    <a href=”paginaDaLinkare.html” target=”nomeDelFrame”>

    nomeDelFrame non è il nome della pagina html, ma il name="xyz" che hai dato al frame quando lo hai definito!
    lo stesso vale per il <base target=nomeframe> che e' piu' comodo, al posto di nomeframe devi mettere il nome che hai messo dopo <frame name=

  11. #11
    Guest

    Predefinito

    non capisco...io HO messo come target il frame , ma non cambia...

    forse non mi sono spiegato bene.

    nel frame "menu.htm" ho messo <base target="1page.htm"> ( che è il frame che mi fa da home per gli aggiornamenti ) , in modo che cliccando sui link del menu la pagina si apra su tutta la finestra e non all' interno del frame . ma per aprire la pagina mi apre un 'altra finestra . Per comodità di navigazione ( poichè avere ottocento finestre fra le balle non è il massimo ) vorrei evitare questo , far sì che la pagina si apra all' interno di QUELLA finestra.

    rimedi?

  12. #12
    L'avatar di gve
    gve
    gve non è connesso Utente storico
    Data registrazione
    26-01-2003
    Residenza
    Brescia
    Messaggi
    2,964

    Predefinito

    Non ci siamo ... come detto da numerone:
    [code:1:8e282b7d25]<frameset>
    <frame name="xyz" src="http://...">
    <frame name="abc" src="http://...">
    </frameset>[/code:1:8e282b7d25]
    Ovvero, per fare ciò che vuoi fare devi assegnare un nome al frame, e poi riferirti a quel nome (e non al nome della pagina), quindi, ad esempio:
    [code:1:8e282b7d25]<base target="xyz">[/code:1:8e282b7d25]
    | Regolamento del Forum | Regolamento di AlterVista | FAQ di AlterVista | Netiquette |

    GVE = GVE Virtual Extension
    AVCM #: 6637

  13. #13
    Guest

    Predefinito

    appunto...
    il nome che dai a un frame e' diverso dalla pagina che vi carichi
    sono due attributi diversi, il primo e' name, il secondo src

Regole di scrittura

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