External link open new windows dont work

Discussions about the phpBB3 Forum. How to get the best from this powerful script.
Note that there is no official support for phpBB3 here, a place to share more than to ask for.

Moderator: Moderators

External link open new windows dont work

Postby PDD_20 » Fri Jan 01, 2010 3:12 pm

Hi, External link open new windows dont work, i put the new code in prosilve and dont work :S

Thanks
phpbb SEO URL Premod -- Spanish
http://www.elgrupoinformatico.com
PDD_20
PR1
PR1
 
Posts: 136
Joined: Fri May 23, 2008 4:42 pm
Location: Spain

Advertisement

Re: External link open new windows dont work

Postby PDD_20 » Fri Jan 01, 2010 3:15 pm

The problem is in this code :S

Code: Select all
//Redimensionar imagenes
window.onload = resizeimg;
function resizeimg()
{
   var y = document.getElementsByTagName('img');
   if (y)
   {
      for (i=0; i<y.length; i++)
      {
         im = y[i];
        if (im.getAttribute('alt') != 'Imagen')
      {
         continue;
      }
         if (im.width > 550)
         {
            im.style.width = '550px';
            eval("pop" + String(i) + " = new Function(\"pop = window.open('" + im.src + " ','fullscale','width=640,height=480,scrollbars=1,resizable=1'); pop.focus();\")");
            eval("im.onclick = pop" + String(i) + ";");
            if (document.all) im.style.cursor = 'hand';
            if (!document.all) im.style.cursor = 'pointer';
            im.title = 'Pulsa la imagen para verlo a tamaño completo';
         }
      }
   }
}
phpbb SEO URL Premod -- Spanish
http://www.elgrupoinformatico.com
PDD_20
PR1
PR1
 
Posts: 136
Joined: Fri May 23, 2008 4:42 pm
Location: Spain

Re: External link open new windows dont work

Postby PDD_20 » Fri Jan 01, 2010 4:09 pm

I modify the code and now it works!

Happy new year!!
phpbb SEO URL Premod -- Spanish
http://www.elgrupoinformatico.com
PDD_20
PR1
PR1
 
Posts: 136
Joined: Fri May 23, 2008 4:42 pm
Location: Spain


Return to phpBB Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 77 guests