Quantcast
Channel: Tópicos
Viewing all articles
Browse latest Browse all 14700

Script para equilibrar colunas

$
0
0
Olá

tenho um script nest página

http://pintotours.ne...ublic/Turq.html

que entre outras coisas faz com que as colunas laterais fiquem com a mesma altura da parte central.
Código :
(function() {'use strict';
function init(){var outside=document.getElementById('outside');var
outside2=document.getElementById('outside2');var
inside=document.getElementById('inside');
var
hgt=[outside.offsetHeight,outside2.offsetHeight,inside.offsetHeight];hgt=(Math.max(hgt[0],hgt[1],hgt[2]));
outside.style.height=outside2.style.height=inside.style.height=hgt+'px';
if(window.name=='newwindow')
{if(document.getElementById('name')){document.getElementById('name').style.display='';}outside.style.display='none';outside2.style.display='none';inside.style.width='820px';document.getElementById('popup-test').innerHTML='<h3><a
href="#">Close<\/a><\/h3>'+'<h4><\/h4>'+'<h3><a
href="PuntaCana.html" target="top"><\/a><\/h3>';var
anc=document.getElementById('popup-test').getElementsByTagName('a');for(var
c=0;c<anc.length;c++) {anc[c].onclick=function()
{window.close();return false;}}}}
window.addEventListener?window.addEventListener('load',init,false):window.attachEvent('onload',init);
})();
Gostaria de aplicar esse script (modificado) para conseguir o mesmo nesta página

http://pintotours.ne...k/BALI/bali.php

Agradeço a vossa ajuda pois os meus conhecimentos javescript são praticamente nulos!


MAIS TARDE...

esqueci-me de acrescentar que o porblema só surge com a entrada das media queries entre 800px e 550px

Viewing all articles
Browse latest Browse all 14700