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.

Sound Script Needed

View previous topic View next topic Go down

Solved Sound Script Needed

Post by StoneRaven on July 24th 2010, 12:14 am

Can anyone please give me a script code to make a link banner play a sound when you hover over the image and stop when you move your mouse off the image? I have looked all over the place and all I can find is for flash, and I really don't want to use flash for this one. Thanks in advance.


Last edited by StoneRaven on August 8th 2010, 1:55 pm; edited 1 time in total

StoneRaven
Forumember

Male Posts : 142
Reputation : 0
Language : English

Back to top Go down

Solved Re: Sound Script Needed

Post by Guest on July 24th 2010, 12:26 am

As i know, that works only in IE, here a tutorial i used. http://www.javascriptkit.com/script/script2/soundlink.shtml

Guest
Guest


Back to top Go down

Solved Re: Sound Script Needed

Post by StoneRaven on July 24th 2010, 12:31 am

If it only works in IE will it cause any issues with the other browsers? As in image and actual link issues, or will it be as if it's just a normal link banner and just not play a sound? And thanks for the fast reply.

StoneRaven
Forumember

Male Posts : 142
Reputation : 0
Language : English

Back to top Go down

Solved Re: Sound Script Needed

Post by Guest on July 24th 2010, 12:36 am

Ya it will be normal but without sound Smile

Guest
Guest


Back to top Go down

Solved Re: Sound Script Needed

Post by StoneRaven on July 24th 2010, 1:01 am

Ok as where I am really new to this script thing is there any way you can place this together for me? I know it's sad, sorry. I did try this and I couldnt get it to work. I'm kind of lost where step 3 was. I do not know where to put the event handlers.

This is the on click sound:
Code:
http://www.OnClick.MP3

This is the hover over sound:
Code:
 http://www.OnHover.MP3

And this is the link banner:

Code:
<A Href="http://www.myspace.com/blacksynapse"><img src="http://i38.tinypic.com/p2244.jpg" border="0"></a>

Thanks for all your help!


Last edited by StoneRaven on August 8th 2010, 3:25 am; edited 1 time in total

StoneRaven
Forumember

Male Posts : 142
Reputation : 0
Language : English

Back to top Go down

Solved Re: Sound Script Needed

Post by StoneRaven on July 26th 2010, 11:04 pm

BUMP

Can anyone help with this or is it a lost cause for me?

StoneRaven
Forumember

Male Posts : 142
Reputation : 0
Language : English

Back to top Go down

Solved Re: Sound Script Needed

Post by StoneRaven on July 27th 2010, 7:35 pm

Since there is no help on this just lock it. It's not solved by any means but apparently a lost cause.

StoneRaven
Forumember

Male Posts : 142
Reputation : 0
Language : English

Back to top Go down

Solved Re: Sound Script Needed

Post by Yakko! on July 28th 2010, 1:51 pm

It's difficult!

Do you find some music-banner?
in some forum?

Yakko!
Forumember

Male Posts : 661
Reputation : -5
Language : Italian, english, Français

Back to top Go down

Solved Re: Sound Script Needed

Post by Guest on July 28th 2010, 2:06 pm

I will try to do, but only with hover, so give me a sound for it, and what do you mean with that "http://www.OnHover.MP3" ?

Guest
Guest


Back to top Go down

Solved Re: Sound Script Needed

Post by mollu on July 28th 2010, 5:24 pm

Take a look at this: http://tinyurl.com/23v53dp


Maybe also this helps: LINK

mollu
New Member

Posts : 5
Reputation : 0
Language : En/Ger/Et

Back to top Go down

Solved Re: Sound Script Needed

Post by StoneRaven on August 8th 2010, 2:38 am

@Gangstar15 wrote:I will try to do, but only with hover, so give me a sound for it, and what do you mean with that "http://www.OnHover.MP3" ?

It was meant as a holder that I could replace with my mp3 file. But basicly all I need is a working link banner that has a hover over sound. I can replace the used files with mine. But here is one that you can use to see if you can get it to work.
Code:
http://www.fileden.com/files/2008/12/9/2217610/OnHover.MP3

Spacca wrote:It's difficult!

Do you find some music-banner?
in some forum?

No I didn't find one on a forum. I just thought it would be a nice addition to a few link banners that already have.

@mollu wrote:Take a look at this: http://tinyurl.com/23v53dp


Maybe also this helps: LINK

Those would be helpful if I wanted to use just a link or just a image but I need a link banner with this option.


Last edited by StoneRaven on August 8th 2010, 3:03 am; edited 1 time in total

StoneRaven
Forumember

Male Posts : 142
Reputation : 0
Language : English

Back to top Go down

Solved Re: Sound Script Needed

Post by kirk on August 8th 2010, 3:07 am

@mollu wrote:Take a look at this: http://tinyurl.com/23v53dp


Maybe also this helps: LINK

hahaha that tiny url is priceless i like that Smile

Anyway i am on my old computer right now so i cant relay try to look at the coding and test a few things to see if it works etc.. but as soon as i am back on my normal computer i will have a look if it is not yet solved by them.

i am just wating for a dvd to burn so when that's finished i will check it out.

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: Sound Script Needed

Post by StoneRaven on August 8th 2010, 4:05 am

All I need is for this link banner to work
Code:
<A HREF="http://www.myspace.com/blacksynapse"><img alt="Synapse" src="http://i38.tinypic.com/p2244.jpg" border="0"></A>

With this mp3 when the link banner is hovered on
Code:
http://www.fileden.com/files/2008/12/9/2217610/OnHover.MP3

All help is appreciated. But 1 quick question before anyone wastes anymore time on this request. Does the announcements area not work with these scripts? Have to ask because I used an unedited script that I knew would work for just a text link with hover as a test and it removed the script parts after it saved. All that was left was the text link but no script.

StoneRaven
Forumember

Male Posts : 142
Reputation : 0
Language : English

Back to top Go down

Solved Re: Sound Script Needed

Post by kirk on August 8th 2010, 7:50 am

scripts codes should work in the announcements.
do you mean the announcements at the top of the forum.

or announcement option when creating a post,sticky or announcement.

@Gangstar15 wrote:As i know, that works only in IE, here a tutorial i used. http://www.javascriptkit.com/script/script2/soundlink.shtml

well that script calls for haveing it in a template because it has to be in the head area of the page which is either located in the over all header template or footer template.. i think it is in the footer because i had to do something that required this in the past.

then you have to have the mp3 converted or uploaded as a wav file.
so i am sure there is a better script or code then that one.. the best bet is to google it.. i mean there are probably a zillion different ways for this.

but i am still testing something too. so i will let yous know how i make out with it..

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: Sound Script Needed

Post by StoneRaven on August 8th 2010, 10:11 am

Yes I meant to say announcements at the top of the forum sorry. I have googled out today LOL. I have spent the entire day looking for alt. scripts for this and they all are basicly the same with maybe 1 or 2 exceptions, but none that I have ran into seems to work for me. But if what you are working on dosent pan out it's cool and I thank you for you time. I will just have to live without that until I end up just doing it in flash. I would have done it already but I so hate messing with flash. But it's looking like the best option at this point.

StoneRaven
Forumember

Male Posts : 142
Reputation : 0
Language : English

Back to top Go down

Solved Re: Sound Script Needed

Post by RoNo on August 8th 2010, 10:17 am

JavaScript works good in the homepage message content field.
The mouseover sound code I have isn't displaying properly when
posted here. Get the source code from →this page and add it to:
Admin Panel»Display»Homepage»Generalities»Message content

RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

Solved Re: Sound Script Needed

Post by StoneRaven on August 8th 2010, 11:39 am

Ok that code works in the announcements over the forum and in IE and Firefox both. Is their a setting somewhere in the admin panel that I can change to make this work in the portal widgets as this will not work in those and that's where I really needed it? And thank you for all the time you have spent on trying to help me.

StoneRaven
Forumember

Male Posts : 142
Reputation : 0
Language : English

Back to top Go down

Solved Re: Sound Script Needed

Post by blindbat1457 on August 8th 2010, 12:37 pm

Flash Wink
Works on every browser and can do some amazing stuff.

blindbat1457
Forumember

Male Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA

Back to top Go down

Solved Re: Sound Script Needed

Post by RoNo on August 8th 2010, 1:04 pm

Link the mouseover script in your widget...

Create an Html page titled sound1_js with the script
portion of the code. Leave out the <script></script> tags.
Admin Panel view (click)



Add the url of your new page to this
Code:
<script type="text/javascript" src="http://YOURS.forumotion.com/sound1_js-h1.htm"></script>

Place the script in your widget so it looks like this
Code:
<script type="text/javascript" src="http://YOURS.forumotion.com/sound1_js-h1.htm"></script>

<div id="sound1"></div>

<center><a href="http://www.myspace.com/blacksynapse" onmouseover="playSound('http://www.fileden.com/files/2008/12/9/2217610/OnHover.MP3');"><img alt="Synapse" src="http://i38.tinypic.com/p2244.jpg" border="0" width="130" height="66"></a></center>

Example: Mouseover/test the Big R Radio widget on Zone3

RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

Solved Re: Sound Script Needed

Post by StoneRaven on August 8th 2010, 1:54 pm

Now that did the trick in IE and fox. Thank you!!!!

And by the way that test menu and the things just under the welcome on your site is cool.

StoneRaven
Forumember

Male Posts : 142
Reputation : 0
Language : English

Back to top Go down

Solved Re: Sound Script Needed

Post by RoNo on August 8th 2010, 2:07 pm


RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

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