Domandina CSS
Moderatori: Supervisor, Moderatori Software e Programmazione
-
pincopallino
- Dio maturo

- Messaggi: 3396
- Iscritto il: 05 mag 2002 07:05
Domandina CSS
Qui probabilmente ci vuole SverX, a cui devo già una confezione di caffè (diventeranno due?)<br>
Supponi di avere una barra menù (orizzontale o verticale, "fa-i-stes") fatta "a mano" (un link per ogni paginetta), e ripetuto in ogni pagina. Poi ti capita d'aver bisogno d'aggiungere una paginetta. Devi aggiornare la barra menù ovunque. Non proprio comodissimo.<br>
Conosci qualche trucchetto CSS (od altro, non mi formalizzao) che consenta di creare il menù a parte e poi includerlo in ciacuna pagina? Sarebbe molto più pratico modificare un solo file, invece di N.<br>
GIA
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Welcome to the kingdom of high-tech absurdities for people with more money than sense</em><!--EZCODE ITALIC END--></span><!--EZCODE FONT END--></p><i></i>
Supponi di avere una barra menù (orizzontale o verticale, "fa-i-stes") fatta "a mano" (un link per ogni paginetta), e ripetuto in ogni pagina. Poi ti capita d'aver bisogno d'aggiungere una paginetta. Devi aggiornare la barra menù ovunque. Non proprio comodissimo.<br>
Conosci qualche trucchetto CSS (od altro, non mi formalizzao) che consenta di creare il menù a parte e poi includerlo in ciacuna pagina? Sarebbe molto più pratico modificare un solo file, invece di N.<br>
GIA
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Welcome to the kingdom of high-tech absurdities for people with more money than sense</em><!--EZCODE ITALIC END--></span><!--EZCODE FONT END--></p><i></i>
-
SverX
- Supervisor Macchinisti

- Messaggi: 11949
- Iscritto il: 25 mar 2002 10:16
Re: Domandina CSS
possibli soluzioni:<br>
<br>
1-un frame. Non sarà bellissimo (ci si può discutere per ore su questo argomento...) ma hai una pagina sola da manutenere.<br>
<br>
2- *se* puoi usare dei SSI (Server-side include) allora crei un solo file html dove hai l'indice e lo includi (appunto) nelle pagine dove ti serve. Hai solo una pagina da manutenere e non hai frame tra i .... sai <!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END--> <br>
<br>
ci sono altre soluzioni... ma i CSS non li conosco molto, personalmente. E un'altra soluzione che mi viene in mente richiede l'uso di JS...<br>
<p></p><i></i>
<br>
1-un frame. Non sarà bellissimo (ci si può discutere per ore su questo argomento...) ma hai una pagina sola da manutenere.<br>
<br>
2- *se* puoi usare dei SSI (Server-side include) allora crei un solo file html dove hai l'indice e lo includi (appunto) nelle pagine dove ti serve. Hai solo una pagina da manutenere e non hai frame tra i .... sai <!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END--> <br>
<br>
ci sono altre soluzioni... ma i CSS non li conosco molto, personalmente. E un'altra soluzione che mi viene in mente richiede l'uso di JS...<br>
<p></p><i></i>
-
rebelia
- Dio maturo

- Messaggi: 7989
- Iscritto il: 17 lug 2003 07:22
Re: Domandina CSS
vai a vedere il menu della piazzetta, quello con le fotine: si tratta di un file js esterno importato<br>
<!--EZCODE CODE START--><pre> <td class="menu">
<script language="JavaScript1.2" src="script_menu.js"></script>
</td></pre><!--EZCODE CODE END-->Style tags are not allowed
<p><!--EZCODE HR START--><hr /><!--EZCODE HR END--><!--EZCODE ITALIC START--><em><!--EZCODE FONT START--><span style="font-size:x-small;">... e dio disse "pkunzip universo" (anonimo)</span><!--EZCODE FONT END--></em><!--EZCODE ITALIC END--></p><i></i>
<!--EZCODE CODE START--><pre> <td class="menu">
<script language="JavaScript1.2" src="script_menu.js"></script>
</td></pre><!--EZCODE CODE END-->Style tags are not allowed
<p><!--EZCODE HR START--><hr /><!--EZCODE HR END--><!--EZCODE ITALIC START--><em><!--EZCODE FONT START--><span style="font-size:x-small;">... e dio disse "pkunzip universo" (anonimo)</span><!--EZCODE FONT END--></em><!--EZCODE ITALIC END--></p><i></i>
-
rebelia
- Dio maturo

- Messaggi: 7989
- Iscritto il: 17 lug 2003 07:22
Re: Domandina CSS
no, lascia perdere i frames, se puoi: tendono a complicarti la vita con i motori di ricerca, perche' magari viene indicizzata una pagina interna e l'utonto non sa come tornare in home e cmq sn in disuso (usabilita')
<p><!--EZCODE HR START--><hr /><!--EZCODE HR END--><!--EZCODE ITALIC START--><em><!--EZCODE FONT START--><span style="font-size:x-small;">... e dio disse "pkunzip universo" (anonimo)</span><!--EZCODE FONT END--></em><!--EZCODE ITALIC END--></p><i></i>
<p><!--EZCODE HR START--><hr /><!--EZCODE HR END--><!--EZCODE ITALIC START--><em><!--EZCODE FONT START--><span style="font-size:x-small;">... e dio disse "pkunzip universo" (anonimo)</span><!--EZCODE FONT END--></em><!--EZCODE ITALIC END--></p><i></i>
-
niklair
- Dio maturo

- Messaggi: 2289
- Iscritto il: 31 ott 2003 09:38
Re: Domandina CSS
.... esistono delle bellissime ****** molto facili da configurare; il problema è che poi, se non hai dei link nelle pagine gli spider non ti vedono ... prova qui .... io ne uso uno che si chiama "navprone" (mi sembra) e lo gestisco da un file .txt; comodo quando non vuoi romperti troppo .....<!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END-->
<p>________<br>
"Analizzando e valutando ogni giorno tutte le idee, ho capito che spesso tutti sono convinti che una cosa sia impossibile, finché arriva uno sprovveduto che non lo sa e la realizza."<br>
Albert Einstein</p><i></i>
<p>________<br>
"Analizzando e valutando ogni giorno tutte le idee, ho capito che spesso tutti sono convinti che una cosa sia impossibile, finché arriva uno sprovveduto che non lo sa e la realizza."<br>
Albert Einstein</p><i></i>
-
rebelia
- Dio maturo

- Messaggi: 7989
- Iscritto il: 17 lug 2003 07:22
Re: Domandina CSS
opporc!<br>
<!--EZCODE CODE START--><pre>
<style type="text/css">
@import url(style.css);
</style>
</pre><!--EZCODE CODE END--><br>
gliel'avevo messo, il tag code <!--EZCODE EMOTICON START :( --><img src=http://www.ezboard.com/images/emoticons/frown.gif ALT=":("><!--EZCODE EMOTICON END--> <br>
pinco, se mi lasci un attimo per far due prove, vedo se con i css ti puoi tirar dentro ad esempio un div: quanta fretta hai?
<p><!--EZCODE HR START--><hr /><!--EZCODE HR END--><!--EZCODE ITALIC START--><em><!--EZCODE FONT START--><span style="font-size:x-small;">... e dio disse "pkunzip universo" (anonimo)</span><!--EZCODE FONT END--></em><!--EZCODE ITALIC END--></p><i></i>
<!--EZCODE CODE START--><pre>
<style type="text/css">
@import url(style.css);
</style>
</pre><!--EZCODE CODE END--><br>
gliel'avevo messo, il tag code <!--EZCODE EMOTICON START :( --><img src=http://www.ezboard.com/images/emoticons/frown.gif ALT=":("><!--EZCODE EMOTICON END--> <br>
pinco, se mi lasci un attimo per far due prove, vedo se con i css ti puoi tirar dentro ad esempio un div: quanta fretta hai?
<p><!--EZCODE HR START--><hr /><!--EZCODE HR END--><!--EZCODE ITALIC START--><em><!--EZCODE FONT START--><span style="font-size:x-small;">... e dio disse "pkunzip universo" (anonimo)</span><!--EZCODE FONT END--></em><!--EZCODE ITALIC END--></p><i></i>
-
pincopallino
- Dio maturo

- Messaggi: 3396
- Iscritto il: 05 mag 2002 07:05
Re: Domandina CSS
<!--EZCODE QUOTE START--><blockquote><strong><em>Quote:</em></strong><hr>quanta fretta hai?<hr></blockquote><!--EZCODE QUOTE END--><br>
Mi chiamano Giobbe <!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END-->
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Welcome to the kingdom of high-tech absurdities for people with more money than sense</em><!--EZCODE ITALIC END--></span><!--EZCODE FONT END--></p><i></i>
Mi chiamano Giobbe <!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END-->
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Welcome to the kingdom of high-tech absurdities for people with more money than sense</em><!--EZCODE ITALIC END--></span><!--EZCODE FONT END--></p><i></i>
-
rebelia
- Dio maturo

- Messaggi: 7989
- Iscritto il: 17 lug 2003 07:22
eccomi, puntuale come sempre...
... a chiedere aiuto <!--EZCODE EMOTICON START :lol --><img src=http://www.ezboard.com/images/emoticons/laugh.gif ALT=":lol"><!--EZCODE EMOTICON END--> <br>
<br>
<!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END--> <br>
<br>
[serious mode on]<br>
nel file esterno chiamato new.js ho scritto:<br>
<!--EZCODE CODE START--><pre>
function scrivi(){
document.getElementById=('menu').write=('<table><tr><td style="width: 100px; background: yellow;"><a href="javascript:void(0)">uno</a></td></tr></table>');
}</pre><!--EZCODE CODE END-->Scripts are not allowed
<p></p><i></i>
<br>
<!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END--> <br>
<br>
[serious mode on]<br>
nel file esterno chiamato new.js ho scritto:<br>
<!--EZCODE CODE START--><pre>
function scrivi(){
document.getElementById=('menu').write=('<table><tr><td style="width: 100px; background: yellow;"><a href="javascript:void(0)">uno</a></td></tr></table>');
}</pre><!--EZCODE CODE END-->Scripts are not allowed
<p></p><i></i>
-
rebelia
- Dio maturo

- Messaggi: 7989
- Iscritto il: 17 lug 2003 07:22
mi frega sempre, grrr!
il resto era:<br>
<!--EZCODE CODE START--><pre>
<html>
<head>
<script src="new.js" type="text/javascript" language="javascript"></script></head>
<body onload="scrivi();">
<table><tr><td id="menu"></td></tr>        </table>
</body>
</html>
</pre><!--EZCODE CODE END--><br>
<p></p><i></i>
<!--EZCODE CODE START--><pre>
<html>
<head>
<script src="new.js" type="text/javascript" language="javascript"></script></head>
<body onload="scrivi();">
<table><tr><td id="menu"></td></tr>        </table>
</body>
</html>
</pre><!--EZCODE CODE END--><br>
<p></p><i></i>
-
pincopallino
- Dio maturo

- Messaggi: 3396
- Iscritto il: 05 mag 2002 07:05
Re: Oh!
Grassie, "micicimento" nel w-e <!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END-->
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Welcome to the kingdom of high-tech absurdities for people with more money than sense</em><!--EZCODE ITALIC END--></span><!--EZCODE FONT END--></p><i></i>
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Welcome to the kingdom of high-tech absurdities for people with more money than sense</em><!--EZCODE ITALIC END--></span><!--EZCODE FONT END--></p><i></i>
-
rebelia
- Dio maturo

- Messaggi: 7989
- Iscritto il: 17 lug 2003 07:22
si, ma...
... nel frattempo io imparo <!--EZCODE EMOTICON START :b --><img src=http://www.ezboard.com/images/emoticons/tongue.gif ALT=":b"><!--EZCODE EMOTICON END--> <br>
<!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END-->
<p></p><i></i>
<!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END-->
<p></p><i></i>
-
pincopallino
- Dio maturo

- Messaggi: 3396
- Iscritto il: 05 mag 2002 07:05
Re: si, ma...
<!--EZCODE QUOTE START--><blockquote><strong><em>Quote:</em></strong><hr>nel frattempo io imparo<hr></blockquote><!--EZCODE QUOTE END--><br>
Che vuoi farci, è una lotta impari! <!--EZCODE EMOTICON START :rollin --><img src=http://www.ezboard.com/images/emoticons/roll.gif ALT=":rollin"><!--EZCODE EMOTICON END--> <br>
(venerdì pomeriggio, pota pasiensa... )
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Welcome to the kingdom of high-tech absurdities for people with more money than sense</em><!--EZCODE ITALIC END--></span><!--EZCODE FONT END--></p><i></i>
Che vuoi farci, è una lotta impari! <!--EZCODE EMOTICON START :rollin --><img src=http://www.ezboard.com/images/emoticons/roll.gif ALT=":rollin"><!--EZCODE EMOTICON END--> <br>
(venerdì pomeriggio, pota pasiensa... )
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Welcome to the kingdom of high-tech absurdities for people with more money than sense</em><!--EZCODE ITALIC END--></span><!--EZCODE FONT END--></p><i></i>
-
pincopallino
- Dio maturo

- Messaggi: 3396
- Iscritto il: 05 mag 2002 07:05
Non ci siamo...
Dunque allora, ecco qiui sotto quello che ho provato a fare. Metto una GIF perché eZboard al solito non mi permette di usare "parole chiave".<br>
<br>
Il menu non si vede punto. Cosa ho dimenticato?<br>
GIA<br>
<!--EZCODE HR START--><hr /><!--EZCODE HR END--><br>
<!--EZCODE IMAGE START--><img src="http://www.lcm3b.uhp-nancy.fr/images/prova.gif" style="border:0;"/><!--EZCODE IMAGE END-->
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Welcome to the kingdom of high-tech absurdities for people with more money than sense</em><!--EZCODE ITALIC END--></span><!--EZCODE FONT END--></p><i></i>
<br>
Il menu non si vede punto. Cosa ho dimenticato?<br>
GIA<br>
<!--EZCODE HR START--><hr /><!--EZCODE HR END--><br>
<!--EZCODE IMAGE START--><img src="http://www.lcm3b.uhp-nancy.fr/images/prova.gif" style="border:0;"/><!--EZCODE IMAGE END-->
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Welcome to the kingdom of high-tech absurdities for people with more money than sense</em><!--EZCODE ITALIC END--></span><!--EZCODE FONT END--></p><i></i>
-
rebelia
- Dio maturo

- Messaggi: 7989
- Iscritto il: 17 lug 2003 07:22
che e' esattamente...
... quel che ho fatto io e con lo stesso risultato <!--EZCODE EMOTICON START :( --><img src=http://www.ezboard.com/images/emoticons/frown.gif ALT=":("><!--EZCODE EMOTICON END--> <br>
sn curiosa di sapere perche' non funziona almeno quanto te, a questo punto <!--EZCODE EMOTICON START :rolleyes --><img src=http://www.ezboard.com/images/emoticons/eyes.gif ALT=":rolleyes"><!--EZCODE EMOTICON END-->
<p></p><i></i>
sn curiosa di sapere perche' non funziona almeno quanto te, a questo punto <!--EZCODE EMOTICON START :rolleyes --><img src=http://www.ezboard.com/images/emoticons/eyes.gif ALT=":rolleyes"><!--EZCODE EMOTICON END-->
<p></p><i></i>
-
SverX
- Supervisor Macchinisti

- Messaggi: 11949
- Iscritto il: 25 mar 2002 10:16
Re: che e' esattamente...
forse se il riferimento allo script fosse nel body...<br>
... e poi perchè fare una funzione? Butta dentro il JS e fine <!--EZCODE EMOTICON START :) --><img src=http://www.ezboard.com/images/emoticons/smile.gif ALT=":)"><!--EZCODE EMOTICON END--> <br>
<p></p><i></i>
... e poi perchè fare una funzione? Butta dentro il JS e fine <!--EZCODE EMOTICON START :) --><img src=http://www.ezboard.com/images/emoticons/smile.gif ALT=":)"><!--EZCODE EMOTICON END--> <br>
<p></p><i></i>
-
rebelia
- Dio maturo

- Messaggi: 7989
- Iscritto il: 17 lug 2003 07:22
Re: che e' esattamente...
<!--EZCODE QUOTE START--><blockquote><strong><em>Quote:</em></strong><hr>... e poi perchè fare una funzione? Butta dentro il JS e fine <hr></blockquote><!--EZCODE QUOTE END--><br>
translescion plz <!--EZCODE EMOTICON START :( --><img src=http://www.ezboard.com/images/emoticons/frown.gif ALT=":("><!--EZCODE EMOTICON END--> <br>
vuoi dire che posso mettere una roba tipo<br>
<!--EZCODE CODE START--><pre>
<table><tr><td>
<script src="xyz.js"></script>
</td></tr></table>
</pre><!--EZCODE CODE END--><br>
e bon? <!--EZCODE EMOTICON START :eek --><img src=http://www.ezboard.com/images/emoticons/eek.gif ALT=":eek"><!--EZCODE EMOTICON END--> <br>
<p><!--EZCODE HR START--><hr /><!--EZCODE HR END--><!--EZCODE ITALIC START--><em><!--EZCODE FONT START--><span style="font-size:x-small;">... e dio disse "pkunzip universo" (anonimo)</span><!--EZCODE FONT END--></em><!--EZCODE ITALIC END--></p><i></i>
translescion plz <!--EZCODE EMOTICON START :( --><img src=http://www.ezboard.com/images/emoticons/frown.gif ALT=":("><!--EZCODE EMOTICON END--> <br>
vuoi dire che posso mettere una roba tipo<br>
<!--EZCODE CODE START--><pre>
<table><tr><td>
<script src="xyz.js"></script>
</td></tr></table>
</pre><!--EZCODE CODE END--><br>
e bon? <!--EZCODE EMOTICON START :eek --><img src=http://www.ezboard.com/images/emoticons/eek.gif ALT=":eek"><!--EZCODE EMOTICON END--> <br>
<p><!--EZCODE HR START--><hr /><!--EZCODE HR END--><!--EZCODE ITALIC START--><em><!--EZCODE FONT START--><span style="font-size:x-small;">... e dio disse "pkunzip universo" (anonimo)</span><!--EZCODE FONT END--></em><!--EZCODE ITALIC END--></p><i></i>
-
SverX
- Supervisor Macchinisti

- Messaggi: 11949
- Iscritto il: 25 mar 2002 10:16
Re: che e' esattamente...
e bon <!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END--> <br>
<br>
certo! Ma nel JS non mettere una funzione, solo istruzioni e stop <!--EZCODE EMOTICON START :) --><img src=http://www.ezboard.com/images/emoticons/smile.gif ALT=":)"><!--EZCODE EMOTICON END--> <br>
<p></p><i></i>
<br>
certo! Ma nel JS non mettere una funzione, solo istruzioni e stop <!--EZCODE EMOTICON START :) --><img src=http://www.ezboard.com/images/emoticons/smile.gif ALT=":)"><!--EZCODE EMOTICON END--> <br>
<p></p><i></i>
-
rebelia
- Dio maturo

- Messaggi: 7989
- Iscritto il: 17 lug 2003 07:22
Re: che e' esattamente...
ok, grasssie... forte 'sta cosa, ho giusto giusto un lavoretto su cui applicare <!--EZCODE EMOTICON START 8) --><img src=http://www.ezboard.com/images/emoticons/glasses.gif ALT="8)"><!--EZCODE EMOTICON END-->
<p><!--EZCODE HR START--><hr /><!--EZCODE HR END--><!--EZCODE ITALIC START--><em><!--EZCODE FONT START--><span style="font-size:x-small;">... e dio disse "pkunzip universo" (anonimo)</span><!--EZCODE FONT END--></em><!--EZCODE ITALIC END--></p><i></i>
<p><!--EZCODE HR START--><hr /><!--EZCODE HR END--><!--EZCODE ITALIC START--><em><!--EZCODE FONT START--><span style="font-size:x-small;">... e dio disse "pkunzip universo" (anonimo)</span><!--EZCODE FONT END--></em><!--EZCODE ITALIC END--></p><i></i>
-
pincopallino
- Dio maturo

- Messaggi: 3396
- Iscritto il: 05 mag 2002 07:05
Ossia?
E quindi, il JS come dovrebbe essere?
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Welcome to the kingdom of high-tech absurdities for people with more money than sense</em><!--EZCODE ITALIC END--></span><!--EZCODE FONT END--></p><i></i>
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Welcome to the kingdom of high-tech absurdities for people with more money than sense</em><!--EZCODE ITALIC END--></span><!--EZCODE FONT END--></p><i></i>
-
SverX
- Supervisor Macchinisti

- Messaggi: 11949
- Iscritto il: 25 mar 2002 10:16
Re: Ossia?
il js? normale, tipo:<br>
<br>
<!--EZCODE CODE START--><pre> document.write ('<tr><td>Ciao</td></tr>');
document.write ('<tr><td>a</td></tr>');
document.write ('<tr><td>tutti</td></tr>');
</pre><!--EZCODE CODE END--><br>
<br>
no?<br>
<p></p><i></i>
<br>
<!--EZCODE CODE START--><pre> document.write ('<tr><td>Ciao</td></tr>');
document.write ('<tr><td>a</td></tr>');
document.write ('<tr><td>tutti</td></tr>');
</pre><!--EZCODE CODE END--><br>
<br>
no?<br>
<p></p><i></i>





