Skip to content

Instantly share code, notes, and snippets.

@kcarriedo
Created July 21, 2010 05:35
Show Gist options
  • Select an option

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

Select an option

Save kcarriedo/484121 to your computer and use it in GitHub Desktop.
SC.ImageView.design({
classNames: ["images"],
layout: { top: 30,centerX : 0, rotate: 90, height: 250, width: 200 },
value: static_url('resources/Apple.png'),
localize: NO,
useImageCache: NO, // this loads the image with out clicking the mouse.
mouseDown: function(evt) {
// This will hide the current image when clicked
//this.set('isVisible', NO) ;
this.set('value',sc_static('resources/aly.jpg'));
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment