-
ale87440
Con PHP non puoi, però potresti farlo mediante i CSS:
.linkcomeonmouseout {
background:url(immagine.jpg);
}.linkcomeonmouseout:hover {
background:url(immagine-evidenziata.jpg);
}grazie ci proverò magari dove devo inserire il class="link" su a href o su cos'altro?
<a class="xxx" href="vostro link">esempio 3</a>
perfetto è come dicevo io... poi ci provo e ti so dire
-
-
-
-
-
-
-
-
Controlla bene il tuo include, come ti avevo detto non puoi fare
include 'nomesito.it/menu/menu.html';
ma devi inserire solo il percorso relativo:
include 'menu/menu.html';
Capito?
-
ale87440
Controlla bene il tuo include, come ti avevo detto non puoi fare
include 'nomesito.it/menu/menu.html';
ma devi inserire solo il percorso relativo:
include 'menu/menu.html';
Capito?
si ho capito ma il tutto funziona solo se la cartella menù è contenuta nella stessa cartella del file che ha l'inclusione sennò non funziona ed è questo il problema

-
Non è vero, per risalire di una cartella ti basta aggiungere ../ al percorso relativo... Cioè:
(è solo un esempio di come potrebbe essere strutturato il tuo sito)
root
|+menu
| |----menu.html
|
|+css
|+js
|
|----index.html
|----contatti.html
|----ecc.htmlAllora, se nella tua index vuoi includere il menu devi scrivere 'menu/menu.html', ma se nella pagina menu.html volessi includere l'index (è una stupidata lo so, ma serve solo per farti capire il funzionamento) devi fare '../index.html', ok? In pratica ../ vuol dire "torna indietro di una cartella e ricomincia da quel punto"...
-
ale87440
Non è vero, per risalire di una cartella ti basta aggiungere ../ al percorso relativo... Cioè:
(è solo un esempio di come potrebbe essere strutturato il tuo sito)
root
|+menu
| |----menu.html
|
|+css
|+js
|
|----index.html
|----contatti.html
|----ecc.htmlAllora, se nella tua index vuoi includere il menu devi scrivere 'menu/menu.html', ma se nella pagina menu.html volessi includere l'index (è una stupidata lo so, ma serve solo per farti capire il funzionamento) devi fare '../index.html', ok? In pratica ../ vuol dire "torna indietro di una cartella e ricomincia da quel punto"...
sei un mito hai ragione, era proprio quello che volevo e hai centrato in pieno, avanzi un caffè virtuale eccolo

-
-
-
ciao il problema adesso è dalla validazione della pagina che mi da due errori cioè includendo le due pagine il w3c mi trova due html di troppo come posso risolvere? se elimino html e head dalle pagine non funzionano più le funzionalità interne delle due paginette che includo come posso fare?
gli errori
Line 71, Column 7: document type does not allow element "HTML" here
<html>
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).
Line 199, Column 6: document type does not allow element "HTML" here
<html>Line 199, Column 6: document type does not allow element "HTML" here
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).
-
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi


