Skip to content

Instantly share code, notes, and snippets.

@kcarriedo
Created July 20, 2010 15:15
Show Gist options
  • Select an option

  • Save kcarriedo/483081 to your computer and use it in GitHub Desktop.

Select an option

Save kcarriedo/483081 to your computer and use it in GitHub Desktop.
//How Can I access the other large image within my thumbnail image?
//What I would like to do is click on thumbnail image and make that image not visible and the large image visible. Is this possible.
SC.ImageView.design({
layout: { top: 100, left: 840, rotate: 90, height: 150, width: 130 },
value: static_url('resources/aly.JPG'),
localize: NO,
mouseDown: function(evt) {
// This will hide the current image when clicked
this.set('isVisible', NO) ;
},
useImageCache: NO // this loads the image with out clicking the mouse.
}),
//This is a large View
SC.ImageView.design({
layout: { top: 100, left: 100, rotate: 90, height: 650, width: 530 },
value: static_url('resources/aly.JPG'),
localize: NO,
mouseDown: function(evt) {
// This will hide the current image when clicked
this.set('isVisible', NO) ;
},
useImageCache: NO // this loads the image with out clicking the mouse.
}),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment