Quantcast
Viewing latest article 3
Browse Latest Browse All 20

Re: Position of popup

Hi Thanks

"Load page, press F12, goto emulation, choose 10 in the first dropdown and 10 in the third dropdown."

I did as above but nothing happened. What am I supposed to do? Hitting return does nothing...

I see. I drag down the page to see the my page beneath, refresh and what comes out should be the page in IE10, etc.

What i see is the full page, rather than the popup, Is that what you mean?

EDIT

Well, I have problems!

if you try to see the Sydney page with the old popups in Ie8, IE9, IE10 the popup comes up normally; but not the new pages like Punta.

Now, why is that?

The scripts are slightly different and the css very different. Who's the culprit?

LATER

I just tried IE8 in a real computer and yes it opens as full page, but works fine in the old code.

Can you help me try to find out why, please?

I suspect the reason is somewhere in the javascripts popup-control.js (for the old code : Sydney) and popup-control2.js (for the new code : Punta Cana)

This is popup-control.js . The other is in the opening post of the thread.

(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);

})();


Viewing latest article 3
Browse Latest Browse All 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>