Preview (demo) Link Use Sound:
[accordion] [item icon="eye" title="DEMO"]1. Hover Link SoundHOVER LINK WITH SOUND
2. Click Link Sound
CLICK LINK WITH SOUND
3. Hover and Click Link Sound
CLICK & HOVER LINK WITH SOUND If anyone is interested below is a copy of Javascript, for javascript it can be pasted directly on the blog or also uploaded on web hosting [/item] [/accordion]
Source Code
[lock] <script>function createsoundbiteundefinede){var t=document.createElementundefined"audio");ifundefinedt.canPlayType){forundefinedvar n=0;n<arguments.length;n++){var r=document.createElementundefined"source");r.setAttributeundefined"src",arguments[n]);ifundefinedarguments[n].matchundefined/\.undefined\w+)$/i))r.setAttributeundefined"type",html5_audiotypes[RegExp.$1]);t.appendChildundefinedr)}t.loadundefined);t.playclip=functionundefined){t.pauseundefined);t.currentTime=0;t.playundefined)};return t}else{return{playclip:functionundefined){throw new Errorundefined"Your browser doesn't support HTML5 audio unfortunately")}}}}var html5_audiotypes={mp3:"audio/mpeg",mp4:"audio/mp4",ogg:"audio/ogg",wav:"audio/wav"};var mouseoversound=createsoundbiteundefined"https://sites.google.com/site/binkbenk77/hoversound.ogg");var clicksound=createsoundbiteundefined"https://sites.google.com/site/binkbenk77/clicksound.ogg");</script>
1. Hover Link With Sound
<a href="URL" onmouseover="mouseoversound.playclipundefined)">HOVER LINK WITH SOUND</a>
2. Click Link With Sound
<a href="URL" onclick="clicksound.playclipundefined)">CLICK LINK WITH SOUND</a>
[/lock]
[info title="Info" icon="info-circle"] You Can Chane sound url File In JS [/info] Okay, that's all. Tips / How to make Link Alert With Sound, and that can be useful
Any type of information please Contact us.
Post a Comment