|
Post by pm on Sept 6, 2009 3:52:35 GMT -8
Hey Wormo, is it possible to have 2 onClicks in the same href?
<a href="javascript: void(0)" onClick="show_hide(this, 'my_div');" onMouseover="playSound('http://h1.ripway.com/poorman3333/advance_or_proceed_sound_ideal_for_software_systems_etc_ver_7.wav');">Open Links</a>
I have mouseOver in there right now and that works but would sure like to have 2 onClicks if possible.
Its for a hide/show thing you helped me with a while back.
Thanks man.
|
|
|
Post by Wormopolis on Sept 6, 2009 3:58:28 GMT -8
this didn't work?
<a href="javascript: void(0)" onClick="show_hide(this, 'my_div'); playSound('http://h1.ripway.com/poorman3333/advance_or_proceed_sound_ideal_for_software_systems_etc_ver_7.w av');">Open Links</a>
|
|
|
Post by pm on Sept 6, 2009 4:08:18 GMT -8
Nope. It wanted me to download the plugin. ;D
Maybe your close?
I hear the sound fine when I use mouseover.
|
|
|
Post by Wormopolis on Sept 6, 2009 4:21:32 GMT -8
I cant test it without the function definition for playSound...
|
|
|
Post by pm on Sept 6, 2009 4:28:51 GMT -8
;D Sorry.
Code removed by me!
|
|
|
Post by Wormopolis on Sept 6, 2009 13:00:59 GMT -8
it doesnt even play a sound for me when I use it on mouseover.. I have never really done anything with sounds before so this might take some time to research.
|
|
|
Post by pm on Sept 6, 2009 13:28:42 GMT -8
Does the sound work for you here? Removed!
I know it takes a couple seconds for it to work but it works for me at that link. I copy & pasted what I posted above and got the download plugin at another test site. Weird!
I'm just playing around with this so there is no hurry.
|
|
|
Post by Wormopolis on Sept 6, 2009 14:31:11 GMT -8
what happens when you mouseover on the link above this board?
|
|
|
Post by Wormopolis on Sept 6, 2009 14:35:08 GMT -8
click that link above the boards now.
|
|
|
Post by pm on Sept 6, 2009 14:52:57 GMT -8
I see! Put the show_hide(this, 'my_div'); after the sound.
Thanks man!
|
|
|
Post by Wormopolis on Sept 6, 2009 15:00:05 GMT -8
well that and make sure the URL for the sound file is valid.
|
|
|
Post by pm on Sept 6, 2009 18:05:28 GMT -8
Hmm, I thought the sound file was valid. Well, it works for me.
Thanks again Wormo!
|
|
|
Post by Wormopolis on Sept 6, 2009 20:02:50 GMT -8
when I copied it from here to test, there was a space in the .w av at the end of the file and it wasnt working for me and kept asking to load the plugin.
|
|
|
Post by pm on Sept 6, 2009 21:21:32 GMT -8
Oh, I don't know how that happen. Note: I rehosted the wav file at ripway so if you or anyone else clicks the link at the top there will be no sound. (unless you host a sound of your own) I got that sound file from here. www.freesfx.co.uk/You have to be a member to download.
|
|
|
Post by Wormopolis on Sept 6, 2009 21:32:40 GMT -8
noted. Im not going to worry about it unless it causes a problem. That link will only show up in this thread.
|
|