Scroll To Top

Enter a query to search our site. Note that you can use "*" and "?" as wildcards. Enclosing more than one word in double quotes ("CSS Layout") will search for the exact phrase.

PVII Knowledge Base

1. Select a product ...
2. Select category ...
3. Search the Knowledge Base...

Question #254

When clicking on a link assigned to the full-size image in Lightshow Magic is there a way to have the linked page open in a new window?

The Answer

Prepared Nov. 2008 by Gery Jacobsen

You can have the Lightshow Magic system open a new window when the full-size image link is clicked by applying this simple code tweak:

1. Open the p7LSMscripts.js file and locate this block of code, at around line 1745:

  el=document.createElement('a');
  el.setAttribute("id","p7LSMfslink");
  ob=document.createElement('img');

2. Add a new line after the second line and paste this into the new line:

el.setAttribute("target","_blank");

so it now looks like this:

  el=document.createElement('a');
  el.setAttribute("id","p7LSMfslink");
  el.setAttribute("target","_blank");
  ob=document.createElement('img');

3. Save the file.

The browser will open the linked page in a new window when the full-size image is clicked.

Back to the questions list