Ignore:
Timestamp:
02/13/07 21:35:02 (5 years ago)
Author:
takanori
Message:

highslide 2.2.8 から 2.2.9 にアップグレード

File:
1 edited

Legend:

Unmodified
Added
Removed
  • PloneHighslideJS/trunk/skins/plone_highslide_js/highslide.js.dtml

    r125 r127  
    1 // <dtml-with base_properties> (do not remove this) 
    21// <dtml-call "REQUEST.set('portal_url', portal_url())"> (not this either) 
    32/****************************************************************************** 
    4 Version 2.2.8 (January 10 2007) 
     3Version 2.2.9 (February 12 2007) 
    54 
    65Author:  Torstein Hønsi 
     
    3433// Apply your own settings here, or override them in the html file.   
    3534graphicsDir : '&dtml-portal_url;/graphics/', 
    36 restoreCursor : "zoomout.ico", // necessary for preload 
     35restoreCursor : "zoomout.cur", // necessary for preload 
    3736fullExpandIcon : 'fullexpand.gif', 
    3837expandSteps : 10, // number of steps in zoom. Each step lasts for duration/step milliseconds. 
     
    568567                 
    569568                if (this.isImage) this.imageCreate(); 
     569                else { 
     570                        this.htmlCreate(); 
     571                         
     572                } 
    570573         
    571574                return false; 
     
    637640HsExpander.prototype.onLoad = function() {       
    638641        try {  
    639          
     642                 
    640643                if (!this.content) return; 
    641644                // prevent looping on certain Gecko engines: 
     
    679682                this.wrapper.style.top = this.thumbTop +'px'; 
    680683                hs.container.appendChild(this.wrapper); 
    681                 if (this.swfObject) this.swfObject.write(this.flashContainerId); 
    682684                 
    683685                // correct for borders 
     
    703705                 
    704706                client = new hs.clientInfo(); 
    705                  
    706707                 
    707708                // justify 
     
    719720                var oldRight = this.x.min + parseInt(this.thumbWidth); 
    720721                this.x = this.justify(this.x); 
    721  
     722                 
    722723                this.y = {  
    723724                        min: parseInt(this.thumbTop) - this.offsetBorderH + this.thumbOffsetBorderH, 
     
    735736 
    736737                if (this.isHtml) this.htmlSizeOperations(); 
    737  
    738  
     738                 
    739739                // correct ratio 
    740740                if (this.isImage) this.correctRatio(ratio); 
     
    753753                 
    754754                // Apply size change 
    755                  
    756755                this.changeSize( 
    757756                        this.thumbLeft + this.thumbOffsetBorderW - this.offsetBorderW, 
     
    824823        this.isExpanded = true; 
    825824        this.focus(); 
     825        if (this.isHtml && this.objectLoadTime == 'after') this.writeExtendedContent(); 
    826826        this.createCustomOverlays(); 
    827827        if (hs.showCredits) this.writeCredits(); 
     
    849849                var hasMovedMin = false; 
    850850                var allowReduce = true; 
     851                 
    851852                // calculate p.min 
    852853                if (p.justify == 'center') p.min = Math.round(p.scroll + (p.clientSpan - p.span - p.marginMax) / 2); 
    853854                else p.min = Math.round(p.min - ((p.span - p.thumbSpan) / 2)); // auto 
     855                 
    854856                if (p.min < p.scroll + p.marginMin) { 
    855857                        p.min = p.scroll + p.marginMin; 
     
    10501052         
    10511053        if (hs.safari) { 
    1052                 this.outline[i].style.left = '10px'; 
    1053                 this.outline[i].style.top = '10px'; 
     1054                hs.setStyles(this.outline[i], { left: '10px', top: '10px', visibility: 'hidden' }); 
    10541055                hs.container.appendChild(img); 
    10551056        } 
     
    10611062        for (i = 1; i <= 8; i++) { 
    10621063                this.wrapper.appendChild(this.outline[i]); 
     1064                if (hs.safari) this.outline[i].style.visibility = 'visible'; 
    10631065        } 
    10641066        this.hasOutline = true; 
     
    11951197                } 
    11961198                 
     1199                if (this.objectLoadTime == 'after') this.destroyObject(); 
    11971200                if (this.scrollerDiv && this.scrollerDiv != 'scrollingContent') exp[this.scrollerDiv].style.overflow = 'hidden'; 
    11981201 
     
    12481251                { 
    12491252                        'position' : 'absolute', 
    1250                         'zIndex' : 3, 
    1251                         'visibility': 'hidden' 
     1253                        'zIndex' : 3 
    12521254                }, 
    12531255                this.wrapper 
     
    12741276        overlay.style.top = top +'px'; 
    12751277         
    1276         if (this.mouseIsOver || !hideOnMouseOut) overlay.style.visibility = 'visible'; 
    12771278        if (hideOnMouseOut) overlay.setAttribute('hideOnMouseOut', true); 
    12781279         
     
    12901291 
    12911292HsExpander.prototype.onMouseOver = function () { 
    1292         this.mouseIsOver = true; 
    12931293        for (i = 0; i < this.overlays.length; i++) { 
    12941294                this.overlays[i].style.visibility = 'visible'; 
     
    12971297 
    12981298HsExpander.prototype.onMouseOut = function(rel) { 
    1299         this.mouseIsOver = false; 
    13001299        var hideThese = new Array(); 
    13011300        for (i = 0; i < this.overlays.length; i++) { 
     
    13841383hs.addEventListener(document, 'mousedown', hs.mouseDownHandler); 
    13851384hs.addEventListener(document, 'mouseup', hs.mouseUpHandler); 
    1386  
    1387 // </dtml-with> 
    1388  
Note: See TracChangeset for help on using the changeset viewer.