Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using AppleInfoButton.js for custom buttons



From AppleInfoButton.js:

AppleInfoButton.prototype.setStyle = function(foregroundStyle, backgroundStyle)
{
this._flipLabel.src = "file:///System/Library/WidgetResources/ ibutton/" + foregroundStyle + "_i.png";
this._flipCircle.style.background = "url(file:///System/Library/ WidgetResources/ibutton/" + backgroundStyle + "_rollie.png) no-repeat top left";
}


So it only works with the images shipped with OS X.

Julian



On 24 Nov 2005, at 21:18, Frank Aune wrote:

Hello,

Is it possible to use AppleInfoButton.js for custom buttons? Ive looked at the implementation, and it looks like this is not possible. I though something like the above might be possible, but I havent found a way to combine SetStyle with background-image - so Im beginning to think its not possible?

arrow = new AppleInfoButton(document.getElementById('arrow'), document.getElementById('front'), "background-image:url('Images/ exp_arrow.png')", "black", slider);

I could always bundle my own derivate of AppleInfoButton, if this is not possible.

Thanks for any input.

-Frank

_______________________________________________ Do not post admin requests to the list. They will be ignored. Dashboard-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden
References: 
 >Using AppleInfoButton.js for custom buttons (From: Frank Aune <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.