The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Requesting Navbar On Hover Script

View previous topic View next topic 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 @ http://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

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
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;

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
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.


SLGray
Administrator
Administrator

Male Posts : 35661
Reputation : 2375
Language : English
Location : United States

http://fmthemes.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

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
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.


SLGray
Administrator
Administrator

Male Posts : 35661
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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