TinyPortal

Development => Support => Topic started by: Gargoyle on June 27, 2006, 04:45:05 AM

Title: onhover coding help needed....
Post by: Gargoyle on June 27, 2006, 04:45:05 AM
How would I add the onhover command to play a sound to this ??

echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Also is it possible to add onhover and onclick to the same snip of code ??

Thanks for any suggestions  ;D
Title: Re: onhover coding help needed....
Post by: IchBin on June 27, 2006, 02:17:52 PM
You would probably have to try something like this. A bit difficult if you don't know coding I suppose.
http://www.practicalpc.co.uk/webbuilding/scripts/mouseover_sound_effects.htm