Back to top

Autore Topic: RISOLTO----aggiungere posizioni"templateDetails.xml" senza position  (Letto 1172 volte)

Offline lukealfonso

  • Esploratore
  • **
  • Post: 98
    • Mostra profilo
ciao sono alle prese con un template di nome wave, ho la necessità di aggiungere un modulo per le ultime notizie, nel div centrale della primapagina, con altri template l'ho fatto modificando il file templateDetails.xml e aggiungendo nell'index mosloadmodules....  il problema è che nel templateDetails.xml  di questo tmpl non c'è nessun riferimento al tag position..

nell'index all'inizio c'è uno script java

----------------------
script type="text/javascript">
function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function overlay(curobj, subobjstr, opt_position){
if (document.getElementById){
var subobj=document.getElementById(subobjstr)
subobj.style.display=(subobj.style.display!="block")? "block" : "none"
var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : 0)
var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : 0)
subobj.style.left=xpos+"px"
subobj.style.top=ypos+"px"
return false
}
else
return true
}

function overlayclose(subobj){
document.getElementById(subobj).style.display="none"
}
</script>



---------------------


come faccio ad aggiungere la posizione centrale-top?????

grazie
« Ultima modifica: 31 Ago 2009, 16:44:49 da lukealfonso »

Offline assicomputer

  • Appassionato
  • ***
  • Post: 304
  • Sesso: Maschio
    • Mostra profilo

Offline lukealfonso

  • Esploratore
  • **
  • Post: 98
    • Mostra profilo
no il template si chiama solo Wave ed è sviluppato da pctema

 



Web Design Bolzano Kreatif