[GER]Loading... Posted November 20, 2016 Author Share Posted November 20, 2016 @Spirit_Wolf Thanks for your trying to help me ! I'll watch out for an JS code for it. Link to comment Share on other sites More sharing options...
Guest Posted November 20, 2016 Share Posted November 20, 2016 Some quick googling yielded this stackoverflow question, have you tried this approach? If that doesn't work, you can always attack it with Javascript, eg. $.parent() Link to comment Share on other sites More sharing options...
[GER]Loading... Posted November 21, 2016 Author Share Posted November 21, 2016 ^ @Tuxy Fluffyclaws This looks close to mine but this is not 100% what i mean I'm learning to use js/jquery :x Link to comment Share on other sites More sharing options...
TheUnknownNO Posted December 6, 2016 Share Posted December 6, 2016 (edited) Its hard to understand excatly what you want, but is it something like this?https://jsfiddle.net/TheUnknownNO/fjoqaooh/142/ GIF: https://gyazo.com/77e8c96341af557e8031dcb5a9c6be5c I wrote some js quickly to manage the colours of the navbar background, aswell as rewriting the entire thing cause it was just confusing the way it was. So like, in this one, the rest of the buttons change to a lighter colour than the one currently being hovered over. Like this: Note: it does require jquery Edited December 6, 2016 by TheUnknownNO Link to comment Share on other sites More sharing options...
[GER]Loading... Posted December 7, 2016 Author Share Posted December 7, 2016 @TheUnknownNO This looks close what I want but just missing is, that should change WITH the background color while I'm mouse over Link to comment Share on other sites More sharing options...
TheUnknownNO Posted December 7, 2016 Share Posted December 7, 2016 (edited) @[GER]Loading... I think you are going to have to explain it a bit better. Do you want the background colour of the entire website to change aswell? Do you want the navbar to act like it does im my jsFiddle? The way it changes the rest of their backgrounds. Edited December 7, 2016 by TheUnknownNO Link to comment Share on other sites More sharing options...
[GER]Loading... Posted December 7, 2016 Author Share Posted December 7, 2016 @TheUnknownNO Sry... I have connection problems :/ I want have like this while mouseover an button : Link to comment Share on other sites More sharing options...
TheUnknownNO Posted December 7, 2016 Share Posted December 7, 2016 @[GER]Loading... Do you want something like this? https://jsfiddle.net/fjoqaooh/153/ GIF: https://gyazo.com/58c1dd48f0bccf1b6574680da75bf50a 2 Link to comment Share on other sites More sharing options...
[GER]Loading... Posted December 7, 2016 Author Share Posted December 7, 2016 @TheUnknownNO wow awesome I thinking it's impossible Thank you very much Link to comment Share on other sites More sharing options...
TheUnknownNO Posted December 7, 2016 Share Posted December 7, 2016 (edited) @[GER]Loading... Everything is possible with a little bit of jQuery magic If you got any questions about how the code works, let me know and I'll gladly help out. Tbh, if I were to use it production I would have rewritten it so you would only need one hover event, and make just one CSS class to do the hover colours of the background and non-hovered buttons, but hey, that code works, is easy to understand, and allows for easy customization and its easy to add more colours to it. Edited December 7, 2016 by TheUnknownNO Link to comment Share on other sites More sharing options...
Recommended Posts