Announcement
Collapse
No announcement yet.
X
-
No, that's not modifying core JS, that's using the skinning APIs as covered in the Skinning Guide.
-
Thank You, but that's like modifying the core js. Rather am just trying to change the src location to look for the images in a different location. I have done a similar one to change the tab's theme. Like,
tab.setAttribute("src", "custumTab/tab.png")
where customTab folder will be located out of Skins directory structure. Under customTab I will have all the custom colored images(tab_end.png, tab_stretch.png, etc.,)
In short, am just trying change the src location to be different for a particular section without changing the core.
Thanks.
Leave a comment:
-
Hi,
I've spend a last few hours with this problem and finally found a solution.
Not the best one but still.
I've created new SectionHeader class with custom background and new SectionStack class that uses SectionHeader by default.
In "load_skin.js" (probably this code also can be run with simple JSNI:
Code:isc.defineClass("MySectionHeader", "ImgSectionHeader"); isc.MySectionHeader.changeDefaults("backgroundDefaults", { src:"[SKIN]SectionHeader/header2.png", }) isc.defineClass("MySectionStack", "SectionStack"); isc.MySectionStack.addProperties({ sectionHeaderClass:"MySectionHeader" })
Code:SectionStack stack = new SectionStack(); stack.setScClassName("MySectionStack");
Best regards
Leave a comment:
-
How to change the src for SectionStackSection ?
Hi,
Am trying to change the theme for a sectionstacksection, as i wanted to show a particular section in a different color. But it looks like the setAttribute("src", <customlocation>) on sectionstacksection doesnt pickup the custom images from that custom location.
Is that the right place am setting the image path ?Last edited by sthirunav; 16 Nov 2011, 14:05.Tags: None
Leave a comment: