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 #216

Can the link on the full size image in Slide Show Magic (SSM) be set to open the link in the same window rather than in a new window?

The Answer

Prepared Aug. 2007 by Gerry Jacobsen, PVII

You can change the full size Image Link in Slide Show Magic (SSM) to load the linked page into the same window by applying this simple code tweak:

1. Open p7SSMscripts.js file and locate this function, it starts at line 1063:

function P7_imgClick(a){
 if(a.href && a.href.indexOf(".")>-1){
  P7_SSMpause();
  document.p7NW=window.open(a.href,'ImageLink');
  document.p7NW.focus();
 }
 return false;
}

2. Make an new line after the P7_SSMpause(); line and copy & paste this into the new line:

 return true;

so that the function now looks like this:

function P7_imgClick(a){
 if(a.href && a.href.indexOf(".")>-1){
  P7_SSMpause();
  return true;
  document.p7NW=window.open(a.href,'ImageLink');
  document.p7NW.focus();
 }
 return false;
}

3. Save the file.

That's it, the link will now load into the same window.

Back to the questions list