|
|
Click for larger image and other views |
var ivStrings = new Object();
var productImageJSdownloaded = 0;
var productImageInlineJS = function() {
initVars(2, 0, '','Click to view larger', 'Click to play video','','Click for larger image and other views', 'toy_display_on_website', '{}', 1);
setIVMouseoverEvent();
registerImage("original_image", "http://ecx.images-amazon.com/images/I/51JRolLYrpL._SL500_AA300_.jpg"," ", "Click for larger image and other views", "http://ecx.images-amazon.com/images/I/81Xqg-xaccL._AA1500_.jpg");
ivStrings['close'] = "Close";
ivStrings['allMedia'] = "All Media";
ivStrings['images'] = "Images";
ivStrings['videos'] = "Videos";
ivMediaUrls['arrow'] = 'http://g-ecx.images-amazon.com/images/G/01/xxjavascripts/lib/popover/images/light/sprite-vertical-popover-arrow._V186877868_.png';
ivMediaUrls['zoomIn'] = 'http://g-ecx.images-amazon.com/images/G/01/detail-page/cursors/zoom-in._V184888790_.bmp';
ivMediaUrls['zoomOut'] = 'http://g-ecx.images-amazon.com/images/G/01/detail-page/cursors/zoom-out._V184888738_.bmp';
ivMediaUrls['spinner'] = 'http://g-ecx.images-amazon.com/images/G/01/ui/loadIndicators/loading-large_labeled._V192238949_.gif';
setIVClickEvent();
triggerInitialDownloads("http://ecx.images-amazon.com/images/I/81Xqg-xaccL._AA1500_.jpg");
}
var spinnerForHZ = 'http://g-ecx.images-amazon.com/images/G/01/ui/loadIndicators/loading-small._V192238939_.gif';
var spinnerDimensions = [23,23];
var hzSpinnerOn = 0, ivSpinnerOn = 0;
var cbEventEnum = {"none" : 0, "changeImage" : 1, "mouseover" : 2, "openIV" : 3};
var cbImageURL,cbHiResUrl, cbEvent, cbImageID, cbImageTagID, cbShowNotesTag, lastEventType = "none";
function showHZSpinner(spinnerForHZ) {
amznJQ.available("jQuery", function(){
if(!hzSpinnerOn) {
var parent = jQuery("#prodImageCell");
var offset = {top: (parent.height() - spinnerDimensions[1]) / 2, left: (parent.width() - spinnerDimensions[0]) / 2 };
parent.css("position", "relative").append(" ");
hzSpinnerOn = 1;
}
});
}
function removeHZSpinner() {
amznJQ.available("jQuery", function(){
if(hzSpinnerOn) {
jQuery("#hoverZoomSpinner").remove();
}
});
}
function showIVSpinner() {
if(ivSpinnerOn) {
return;
}
amznJQ.available("jQuery", function(){
removeHZSpinner();
if(!jQuery.browser.mozilla) {
jQuery(document.body).css("overflow","hidden");
}
jQuery(document.body).css("opacity","0.4");
jQuery('#loadingImage').css({"left": function(){
return ( jQuery(window).width() - jQuery('#loadingImage').width() ) / 2+jQuery(window).scrollLeft() + "px";
},"top" : function(){
return ( jQuery(window).height() - jQuery('#loadingImage').height()) / 2+jQuery(window).scrollTop() + "px";
},"display":"block"});
ivSpinnerOn = 1;
});
}
// The below 4 functions are wrappers to handle async JS.
function async_changeImage(imageURL, hiResUrl, event, spinnerForHZ) {
if(productImageJSdownloaded) {
removeHZSpinner();
changeImage(imageURL, hiResUrl, event, spinnerForHZ);
} else {
lastEventType = cbEventEnum.changeImage;
cbImageURL = imageURL;
cbHiResUrl = hiResUrl;
cbEvent = event;
showHZSpinner(spinnerForHZ);
}
}
function async_[안내]태그제한으로등록되지않습니다-xxonMouseOver(imageID, imageTagID, showNotesTag) {
if(productImageJSdownloaded) {
removeHZSpinner();
displayImage(imageID);
if(showNotesTag) {
ciuAnnotationsMouseover(imageID, imageTagID);
}
} else {
showHZSpinner(spinnerForHZ);
lastEventType = cbEventEnum.mouseover;
cbImageID = imageID;
cbImageTagID = imageTagID;
cbShowNotestag = showNotesTag;
}
}
function async_[안내]태그제한으로등록되지않습니다-xxonMouseOut(imageID, showNotesTag) {
if(productImageJSdownloaded) {
if(showNotesTag) {
ciuAnnotationsMouseout(imageID);
}
resetCaption(imageID);
}
}
function async_openImmersiveView(event) {
if(productImageJSdownloaded) {
openImmersiveView(event);
} else {
showIVSpinner();
lastEventType = cbEventEnum.openIV
cbEvent = event;
}
}
|
amznJQ.available('dpProductImage', function() {
productImageInlineJS();
if(2 && 1 ) {
amznJQ.available('jQuery', function() {
jQuery('#prodImage').css('cursor','pointer');
if(0) {
resetCaption();
} else {
jQuery('#prodImageCaption').text( 'Click for larger image and other views' );
}
jQuery('#prodImage').addClass('prod_image_selector');
jQuery('.selectedArrow').click( function(){
jQuery(this).parent().find('img').click();
});
});
}
addToIVImageSet('http://ecx.images-amazon.com/images/I/51JRolLYrpL._SL75_.jpg', 'http://ecx.images-amazon.com/images/I/81Xqg-xaccL._AA1500_.jpg');
addToIVImageSet('http://ecx.images-amazon.com/images/I/51zzv%2BvXRRL._SL75_.jpg', 'http://ecx.images-amazon.com/images/I/71yZg5bltlL._AA1294_.jpg');
addToIVImageSet('http://ecx.images-amazon.com/images/I/51s%2BldW%2BiGL._SL75_.jpg', 'http://ecx.images-amazon.com/images/I/819FUbfuhgL._AA1500_.jpg');
addToIVImageSet('http://ecx.images-amazon.com/images/I/51pW6ycj60L._SL75_.jpg', 'http://ecx.images-amazon.com/images/I/91RI0%2BNoNyL._AA1500_.jpg');
isIVable(1);
registerImage("alt_image_1", "http://ecx.images-amazon.com/images/I/51zzv%2BvXRRL._AA300_.jpg", " ", "Click for larger image and other views", "");
registerImage("alt_image_2", "http://ecx.images-amazon.com/images/I/51s%2BldW%2BiGL._AA300_.jpg", " ", "Click for larger image and other views", "");
registerImage("alt_image_3", "http://ecx.images-amazon.com/images/I/51pW6ycj60L._AA300_.jpg", " ", "Click for larger image and other views", "");
productImageJSdownloaded = 1;
removeHZSpinner();
triggerCallbackEvent();
});
| |
비밀글 해당 댓글은 작성자와 운영자만 볼 수 있습니다.11.08.08 10:45