Help - Search - Members - Calendar
Full Version: Set background image
xFX JumpStart Public Forums > DHTML Menu Builder > <developers' edition>
vdhant
I need a way to be able to set the background images of groups and commands. Is there anyway to do this within the API. If not has anyone come up with a script to be able to do this or will i have to do this the very hard way and take apart 2500 lines of code to figure out how to do this because there must be a way. If there is not a way within the api all need to know is the convention that it uses to name the name and id each of the groups and commands.

Please let me know
ant
vdhant
Just wondering if anyone has any ideas on this or is it in an upcoming version. As I need to be able to have this feature.
ant
ernie
This is for changing images of the toolbar items (top level menu) on the fly.. i don't know if you can apply the same with groups and commands..


var tblItemId = dmbAPI_getItemByCaption("ITEM LABEL");
var o = GetObj("N"+tblItemId);
o.style.background = "url($imageMidNormal)";



QUOTE (vdhant @ May 8 2005, 08:11 AM) *
I need a way to be able to set the background images of groups and commands. Is there anyway to do this within the API. If not has anyone come up with a script to be able to do this or will i have to do this the very hard way and take apart 2500 lines of code to figure out how to do this because there must be a way. If there is not a way within the api all need to know is the convention that it uses to name the name and id each of the groups and commands.

Please let me know
ant
Paul
That's cool. Now, what about the image displayed when the mouse is over the item? I'll start going through the alphabet and let you all know - unless one of you has any ideas...?

OK - answered my own question. Just shange the "N" in the GetObj call to an "O". Simple and effective. I'm starting to really like this!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.