Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Web Design (WordPress, Joomla, etc.) pop up windows and XP SP2

  • pop up windows and XP SP2

    Posted by Mgondek on April 23, 2005 at 3:50 am

    I have website with small icons of product shots, and when the user clicks on the small icons I need a bigger image at 370 pixels to come up in a window which uses only 370 pixels.

    No problem with the basic javascript, except SP2 blocks the windows adn even turned off the pop up blocker is going nuts.

    Below is the code I am using

    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }

    ====================or===========================

    function dpSmartLink(u,n,w,h,p) { // v1.4 by David Powers
    var a,j,k,x,y,f=”;if(!n){n=”;}if(w){f+=’width=’+w+’,’;}if(h){f+=’height=’+h+’,’;}
    if(p){p=p.split(‘:’);if(p[0]!=’z’){p[0]==’c’?(x=(screen.width-w)/2):x=p[0];f+=’left=’+x+’,’;}
    if(p[1]!=’z’){if(p[0]==’c’){y=(screen.height-h-p[1])/2;if(navigator.appName.indexOf(‘Op’)!=-1){
    y-=96;y=y<0?0:y;}}else{y=p[1];}f+='top='+y+',';}}a=arguments.length;if(a>5){for (k=5;k

    Mgondek replied 18 years, 7 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy