Looking at this more closely, I think you were right at first in your choice of scripts. Sorry to put you through all that.
The thumbBox (as it is called by id in the script) can be positioned anywhere you like using overriding style in the thumbnailviewer.css file, ex:
Code:
#thumbBox{ /*Outermost DIV for thumbnail viewer*/
position: absolute;
left: 25px!important;
top: 20px!important;
width: auto;
padding: 10px;
padding-bottom: 0;
background: #313131;
visibility: hidden;
z-index: 10;
cursor: hand;
cursor: pointer;
}
Notice the use of the !important keyword, this tells the browser to ignore what the script is telling it about centering the box on the page. If the rest of your layout is fixed enough, this will be all you need. However, for example if the layout is centered, the left dimension would vary depending upon how wide the browser window is. If that's the case, we would need to have the script append the the thumbBox division to a division in your layout that is in the right spot and which has position:relative set for it. Then the top and left properties of the thumbBox would be in reference to it. Even if you think your layout is fixed enough to skip this step, it may be a good idea anyway. To have this happen add this code as shown to the thumbnailviewer.js file:
Code:
init:function(){ //Initialize thumbnail viewer script by scanning page and attaching appropriate function to links with rel="thumbnail"
document.getElementById('thumbBoxContainer').appendChild(document.body.removeChild(document.getElementById('thumbBox')));
if (!this.enableAnimation)
this.opacitystring=""
var pagelinks=document.getElementsByTagName("a")
for (var i=0; i<pagelinks.length; i++){ //BEGIN FOR LOOP
if (pagelinks[i].getAttribute("rel") && pagelinks[i].getAttribute("rel")=="thumbnail"){ //Begin if statement
pagelinks[i].onclick=function(){
thumbnai . . .
This will allow you to place a division:
HTML Code:
<div id="thumbBoxContainer" style="position: relative;"></div>
anywhere on the page that you like in order to position the thumbBox in relation to it.
Bookmarks