Requesting Navbar On Hover Script

Go down

Requesting Navbar On Hover Script

Post by Guest on November 25th 2014, 10:43 am

Hello! Smile

As part of my earlier request @ https://help.forumotion.com/t136942-request-animated-navigation-bar-buttons-nintendo-s-mario-coin-box-style I'm requesting a script to toggle this picture:



on hover in the navbar links (centered in each of them) of my forum. I want a second script which shows how to toggle sound as well for that.

Thanks! Hello

Guest
Guest


Back to top Go down

Re: Requesting Navbar On Hover Script

Post by _Twisted_Mods_ on November 25th 2014, 11:41 am

Code:
$(document).ready(function() {
    var audioElement = document.createElement('audio');
    audioElement.setAttribute('src', 'http://soundfxcenter.com/video-games/super-mario-bros/f8b973_Super_Mario_Bros_Coin_Sound_Effect.mp3');
    audioElement.setAttribute('autoplay', 'autoplay');
    $.get();
    audioElement.addEventListener("load", function() {
    audioElement.play();
    }, true);




    $('.navlinks .mainmenu').on('hover',function(event) {
      audioElement.play();
    });

    $('.navlinks .mainmenu').unbind("mouseleave");
 });


replace

Code:
http://soundfxcenter.com/video-games/super-mario-bros/f8b973_Super_Mario_Bros_Coin_Sound_Effect.mp3


Code:
with your url if you dont want that 1
avatar
_Twisted_Mods_
Helper
Helper

Male Posts : 2064
Reputation : 314
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: Requesting Navbar On Hover Script

Post by Guest on November 25th 2014, 2:00 pm

I've made u admin on my website. Please, DO take your time, dude! I appreciate your help VERY much. Smile 

Thank you!
Hello
Samantha.

Guest
Guest


Back to top Go down

Re: Requesting Navbar On Hover Script

Post by _Twisted_Mods_ on November 25th 2014, 6:46 pm

;ll;
avatar
_Twisted_Mods_
Helper
Helper

Male Posts : 2064
Reputation : 314
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: Requesting Navbar On Hover Script

Post by SLGray on November 25th 2014, 10:31 pm

@_Twisted_Mods_ wrote:;ll;
Please do not post just a smiley (?).


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 43504
Reputation : 3094
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Re: Requesting Navbar On Hover Script

Post by _Twisted_Mods_ on November 25th 2014, 10:35 pm

i didnt my kids was in here pushing buttons ..lol give them the warning i dont want it
avatar
_Twisted_Mods_
Helper
Helper

Male Posts : 2064
Reputation : 314
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: Requesting Navbar On Hover Script

Post by Guest on November 25th 2014, 11:06 pm

@_Twisted_Mods_ wrote:i didnt my kids was in here pushing buttons ..lol give them the warning i dont want it
loul

Come on, SLGray. Give him a break will ya? Wink   I'm sure he didn't do this on purpose!

I fear the day I'm logged in and away and my kids accidentally destroy my website ...

Guest
Guest


Back to top Go down

Re: Requesting Navbar On Hover Script

Post by SLGray on November 25th 2014, 11:14 pm

I did not give an official warning.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 43504
Reputation : 3094
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum