For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 3 replies, 3 voices, and was last updated 13 years, 2 months ago by
Brandon.
-
AuthorPosts
-
barabasvasileflorinMemberi have this code until now:
/*
$(‘#m1-Codul_Rutier-setariBaraDeJos’).click(function(){
$(‘#m1-Codul_Rutier-meniuBaraDeJos’).css(‘webkit-border-image’,’url(images/meniu_galben.png) 1 1 1 1 stretch stretch’);
$(‘#m1-Codul_Rutier-despreBaraDeJos’).css(‘webkit-border-image’,’url(images/despre_galben.png) 1 1 1 1 stretch stretch’);
$(‘#m1-Codul_Rutier-contactBaraDeJos’).css(‘webkit-border-image’,’url(images/contact_galben.png) 1 1 1 1 stretch stretch’);
$(‘#m1-Codul_Rutier-setariBaraDeJos’).css(‘webkit-border-image’,’url(images/setari_alb.png) 1 1 1 1 stretch stretch’);
});$(‘#m1-Codul_Rutier-contactBaraDeJos’).click(function(){
$(‘#m1-Codul_Rutier-meniuBaraDeJos’).css(‘webkit-border-image’,’url(images/meniu_galben.png) 1 1 1 1 stretch stretch’);
$(‘#m1-Codul_Rutier-despreBaraDeJos’).css(‘webkit-border-image’,’url(images/despre_galben.png) 1 1 1 1 stretch stretch’);
$(‘#m1-Codul_Rutier-contactBaraDeJos’).css(‘webkit-border-image’,’url(images/contact_alb.png) 1 1 1 1 stretch stretch’);
$(‘#m1-Codul_Rutier-setariBaraDeJos’).css(‘webkit-border-image’,’url(images/setari_galben.png) 1 1 1 1 stretch stretch’);
});$(‘#m1-Codul_Rutier-despreBaraDeJos’).click(function(){
$(‘#m1-Codul_Rutier-meniuBaraDeJos’).css(‘webkit-border-image’,’url(images/meniu_galben.png) 1 1 1 1 stretch stretch’);
$(‘#m1-Codul_Rutier-despreBaraDeJos’).css(‘webkit-border-image’,’url(images/despre_alb.png) 1 1 1 1 stretch stretch’);
$(‘#m1-Codul_Rutier-contactBaraDeJos’).css(‘webkit-border-image’,’url(images/contact_galben.png) 1 1 1 1 stretch stretch’);
$(‘#m1-Codul_Rutier-setariBaraDeJos’).css(‘webkit-border-image’,’url(images/setari_galben.png) 1 1 1 1 stretch stretch’);
});$(‘#m1-Codul_Rutier-meniuBaraDeJos’).click(function(){
$(‘#m1-Codul_Rutier-meniuBaraDeJos’).css(‘webkit-border-image’,’url(images/meniu_alb.png) 1 1 1 1 stretch stretch’);
$(‘#m1-Codul_Rutier-despreBaraDeJos’).css(‘webkit-border-image’,’url(images/despre_galben.png) 1 1 1 1 stretch stretch’);
$(‘#m1-Codul_Rutier-contactBaraDeJos’).css(‘webkit-border-image’,’url(images/contact_galben.png) 1 1 1 1 stretch stretch’);
$(‘#m1-Codul_Rutier-setariBaraDeJos’).css(‘webkit-border-image’,’url(images/setari_galben.png) 1 1 1 1 stretch stretch’);
});
*/should i use the if statement, if yes then how should it be?
hope to get some help cuz im a beginer i this 🙂 and thx for the time.May 22, 2013 at 9:49 am #339329
Stu WadeMemberI found that changing the colours of buttons as you have done gave a rather poor result visually. My approach was to have two buttons in the same location (with differing colours) and to switch the visibility between the two as required. That is one was ‘hidden’ and the other was visible ‘inherit’.
May 22, 2013 at 10:17 am #339333
barabasvasileflorinMemberhello and thank you for your replay but i think you didnt understand me.
I have a MultiPage Widget with 20 pages and a ToolBar with 4 buttons (image button), for each button i have 2 images and a im trying to change the imagine of the button with “.css” in order to fake a TabBar.
This is how i can change the imagine:
$(‘#myButton).css(‘webkit-border-image’,’url(images/IMAGE ID.png) 1 1 1 1 stretch stretch’);May 22, 2013 at 2:43 pm #339340
BrandonMemberTry this:
newUrl = “images/meniu_galben.png”; //make sure this is the correct page to your image file
$(‘#m1-Codul_Rutier-meniuBaraDeJos’).css(‘-webkit-border-image’, ‘url(‘ + newUrl + ‘) 1 1 1 1 stretch stretch’ ); -
AuthorPosts
