- Timestamp:
- 02/13/07 21:35:02 (5 years ago)
- 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)2 1 // <dtml-call "REQUEST.set('portal_url', portal_url())"> (not this either) 3 2 /****************************************************************************** 4 Version 2.2. 8 (January 102007)3 Version 2.2.9 (February 12 2007) 5 4 6 5 Author: Torstein Hønsi … … 34 33 // Apply your own settings here, or override them in the html file. 35 34 graphicsDir : '&dtml-portal_url;/graphics/', 36 restoreCursor : "zoomout. ico", // necessary for preload35 restoreCursor : "zoomout.cur", // necessary for preload 37 36 fullExpandIcon : 'fullexpand.gif', 38 37 expandSteps : 10, // number of steps in zoom. Each step lasts for duration/step milliseconds. … … 568 567 569 568 if (this.isImage) this.imageCreate(); 569 else { 570 this.htmlCreate(); 571 572 } 570 573 571 574 return false; … … 637 640 HsExpander.prototype.onLoad = function() { 638 641 try { 639 642 640 643 if (!this.content) return; 641 644 // prevent looping on certain Gecko engines: … … 679 682 this.wrapper.style.top = this.thumbTop +'px'; 680 683 hs.container.appendChild(this.wrapper); 681 if (this.swfObject) this.swfObject.write(this.flashContainerId);682 684 683 685 // correct for borders … … 703 705 704 706 client = new hs.clientInfo(); 705 706 707 707 708 // justify … … 719 720 var oldRight = this.x.min + parseInt(this.thumbWidth); 720 721 this.x = this.justify(this.x); 721 722 722 723 this.y = { 723 724 min: parseInt(this.thumbTop) - this.offsetBorderH + this.thumbOffsetBorderH, … … 735 736 736 737 if (this.isHtml) this.htmlSizeOperations(); 737 738 738 739 739 // correct ratio 740 740 if (this.isImage) this.correctRatio(ratio); … … 753 753 754 754 // Apply size change 755 756 755 this.changeSize( 757 756 this.thumbLeft + this.thumbOffsetBorderW - this.offsetBorderW, … … 824 823 this.isExpanded = true; 825 824 this.focus(); 825 if (this.isHtml && this.objectLoadTime == 'after') this.writeExtendedContent(); 826 826 this.createCustomOverlays(); 827 827 if (hs.showCredits) this.writeCredits(); … … 849 849 var hasMovedMin = false; 850 850 var allowReduce = true; 851 851 852 // calculate p.min 852 853 if (p.justify == 'center') p.min = Math.round(p.scroll + (p.clientSpan - p.span - p.marginMax) / 2); 853 854 else p.min = Math.round(p.min - ((p.span - p.thumbSpan) / 2)); // auto 855 854 856 if (p.min < p.scroll + p.marginMin) { 855 857 p.min = p.scroll + p.marginMin; … … 1050 1052 1051 1053 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' }); 1054 1055 hs.container.appendChild(img); 1055 1056 } … … 1061 1062 for (i = 1; i <= 8; i++) { 1062 1063 this.wrapper.appendChild(this.outline[i]); 1064 if (hs.safari) this.outline[i].style.visibility = 'visible'; 1063 1065 } 1064 1066 this.hasOutline = true; … … 1195 1197 } 1196 1198 1199 if (this.objectLoadTime == 'after') this.destroyObject(); 1197 1200 if (this.scrollerDiv && this.scrollerDiv != 'scrollingContent') exp[this.scrollerDiv].style.overflow = 'hidden'; 1198 1201 … … 1248 1251 { 1249 1252 'position' : 'absolute', 1250 'zIndex' : 3, 1251 'visibility': 'hidden' 1253 'zIndex' : 3 1252 1254 }, 1253 1255 this.wrapper … … 1274 1276 overlay.style.top = top +'px'; 1275 1277 1276 if (this.mouseIsOver || !hideOnMouseOut) overlay.style.visibility = 'visible';1277 1278 if (hideOnMouseOut) overlay.setAttribute('hideOnMouseOut', true); 1278 1279 … … 1290 1291 1291 1292 HsExpander.prototype.onMouseOver = function () { 1292 this.mouseIsOver = true;1293 1293 for (i = 0; i < this.overlays.length; i++) { 1294 1294 this.overlays[i].style.visibility = 'visible'; … … 1297 1297 1298 1298 HsExpander.prototype.onMouseOut = function(rel) { 1299 this.mouseIsOver = false;1300 1299 var hideThese = new Array(); 1301 1300 for (i = 0; i < this.overlays.length; i++) { … … 1384 1383 hs.addEventListener(document, 'mousedown', hs.mouseDownHandler); 1385 1384 hs.addEventListener(document, 'mouseup', hs.mouseUpHandler); 1386 1387 // </dtml-with>1388
Note: See TracChangeset
for help on using the changeset viewer.
