You can set the base target on the page to _new but, then you need to set the target on any other links on the page that you wish to have open in the same window as _self, ex:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<base target="_new">
You could instead set the target="_new" in the thumbnailviewer2.js script (addition red):
Code:
imageHTML='<a target="_new" href="'+dest+'">'+imageHTML+'</a>'
You can use a link in the title attribute:
Code:
title="This is an <a href='http://www.dynamicdrive.com' target='_new'>example</a>"
To get rid of the tool tip, put this code as the last thing on your page right before the </body> tag:
Code:
<script type="text/javascript">
(function(){
if(document.body.getAttribute)
for (var i = 0, l=document.links; i < l.length; i++)
if(/enlargeimage/.test(l[i].getAttribute('rel'))){
l[i].caption=l[i].getAttribute('title');
l[i].removeAttribute('title');
}
})();
</script>
And, change this line in thumbnailviewer2.js:
Code:
var description=(thumbnailviewer2.enableTitle && linkobj.getAttribute("title"))? linkobj.getAttribute("title") : "" //Get title attr
to:
Code:
var description=(thumbnailviewer2.enableTitle && linkobj.caption)? linkobj.caption : "" //Get title attr
Bookmarks