I have 2 buttons, one for YouTube, those buttons left movement for a video To toggle 2 videos with the rights of
YouTube video is shown when I want to highlight the Youtube button (change the margin: '0'), and the vimeo button
I have an if else statement Tried to use but nothing worked instead.
Thanks for the help. Click here to open the file (function () {$ ('# vimeo_player_button') <$ ('# vimeo_player_button');
P> JQuery:
$ (document) Youtube_player '). ({Margin lift:' 0 '});}); = YouTube ($ #' Youtube_player ', 0, 250)')} and {$ ('# vimeo_player_button'). CSS ('background-color': 'RGB (0, 0, 250)')}}});
My suggestion is a class active
to your CSS: < / P>
. Active {background color: RGB (0, 0, 250); }
Then add the active
class in the clicked button as well as remove this square from the other buttons:
$ ('$' ('Active'); Click $ (this) (function () {$ ('# youtube_player'). Amify ({margin lift: '-1000 px'}); $ ('active') $ ('# Youtube_player'). $ ('$'); $ ('Margin lift:' ')); $ (' activated '); $ (' active ');); $ (' (# youtube_player_button ') 'RemoveClass' ('active'); $ (this) .addClass ('active');});
Comments
Post a Comment