Risposte nei forum create
-
AutorePost
-
jangoPartecipante
Hai provato cambiando tema? hai toccato qualcosa nei template?
jangoPartecipantemi sono spiegato male, chiedo scusa…il javascript funziona bene anche con explorer(che litiga con il css e con i .png con trasparenze) , ma il primo passo per rendere il tema crossbrowser è la validazione del codice… il javascript è il seguente:
var prev= null;
window.onload=function(){
if(document.getElementsByTagName && document.getElementById){
document.getElementById("javamenu").className="jsenable";
BuildList();
}
}
function BuildList(){
var hs=document.getElementById("javamenu").getElementsByTagName("h3");
for(var i=0;i<hs.length;i++){
hs.onclick=function(){
if(this.parentNode.className!="show"){
this.parentNode.className="show";
if(prev && prev!=this.parentNode) prev.className="hide";
prev=this.parentNode;
}
else this.parentNode.className="hide";
}
}
}
thenks
jangoPartecipanteMi accodo in questo post onde evitare di tiratrne fuori uno nuovo!
Sto ultimando un tema che vorrei rendere pubblico in un secondo momento (per ora funziona solo con firefox…maledetto I.E. ) e vorrei che il codice fosse pulito.
Ho tuttavia un problema (una semplice stringa javascript che causa 3 errori) che non riesco a “validare”:
for(var i=0;i<hs.length;i++){
a quanto pare il problema sta nel ; tra lenght e i, ma non so che pesci pigliare per sistemarlo. Avete qualche idea a riguardo?
Ho provato a seguire i casi proposti dal w3c, tuttavia questo non era contemplato, e le modifiche che ho provato ad apportare io sono risultate vane in quanto annullavano l’effetto del javascript…
Grazie.
Fra
jangoPartecipanteTrovato…per qualche motivo non prendeva lo script con il riferimento esterno…forse avrei dovuto mettere il percorso completo dall’esterno del template…comunque una volta inserito lo script nella pagina tutto è andato a posto…grazie e a presto! ciao a tutti!
jangoPartecipanteOk, l’importante è avere la certezza di questo…grazie
jangoPartecipanteHai perfettamente ragione, ora ho finalmente trovato. Di lଠc’ero passato, ma evidentemente non avevo capito fosse quello! Ti ringrazio e ti chiedo scusa per la perdita di tempo!
jangoPartecipanteOk, ho letto per ore la documentazione, ma non ho trovato quello che cercavo.
Molte cose utilissime, credevo anche di aver risolto con la funzione “include”, ma ho scoperto che non fa al caso mio, in quanto mi da solo errori.
dunque, probabilmente, mi sono spiegato male. se andate sul mio blog, troverete in alto varie voci: home, gallery, links, about me e contact. clikkando su links e about me, vorrei che comparissero delle pagine “speciali”, con il tema e le caratteristiche di una pagina interna al blog (tipo sidebar) ma esterne alle normali pagine del blog. ho quindi creato due template, uno per i links ed uno per la mia pagina personale (about me) ed ora vorrei farli vizualizzare come un link diretto.
pensate sia possibile implementare qualcosa del genere, o mi conviene creare delle pagine statiche xhtml rinunciando a sidebar e & co.?
alternativamente è possibile creare delle pagine normali senza farle comparire nella sidebar?
spero di essermi spiegato meglio e di non aver postato baggianate per il non aver capito le istruzioni sul wiki…
jangoPartecipanteOk, ci guarderò, evidentemente ho usato criteri di ricerca sbagliati :)grazie!
jangoPartecipanteLa seconda domanda è perchè ho creato un paio di template che vorrei usare pensando di “aggirare” il problema visto sopra, ma non riesco a capire come dovrei richiamarli da un “pulsante “per vizualizzarli.
Scusate le eventuali amenità scritte
-
AutorePost