jSound - jQuery plugin
06.Oct.2012 | Posted by admin | Filed under JQuery Plugins
JSound 1.0.1 is jQuery plugin for playing sounds on any html tag element
JSound works only on modern browser with html5. We always need 2 files as *.mp3 and *.ogg
We implement the jQuery framework and jsound plugin in the head part of our site as follow:
<script language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script language="javascript" src="jsound.js"></script>
First we open jsound.js and declare which tag elements should be used to play audio:
// here i'll use <a>, <p> and <input> tags var soundElem = 'a, p, input';
Now we can use the jsound attributes in the defined tags:
<p startSound="country_day"></p> <a href="#" hoverSound="beep">let the mouse path over me</a> <input type="text" name="inputfield" focusInSound="space" focusOutSound="journey" /> // to stop all running sounds use the function stopSounds() <a href="#" onClick="stopSounds();">Stop all sounds</a>
Here are all attributes
- startSound // starts sound when page is complete loaded
- loopSound // additional to startSound
- hoverSound
- leaveSound
- clickSound
- moveSound
- focusInSound
- focusOutSound
If you like to use the sound effect to a specified tag without typing the attributes every time, than you can change the allElems variable to TRUE in jsound.js
var soundElem = 'a'; var allElems = true; var aHover = 'myHoverSound'; var aLeave = 'myLeaveSound'; var aClick = 'myClickSound';
See Demo Download: jsound.zip
0 Comments
Write a Comment
Development
Latest Posts
- Dynamic CSS via PHP
- CLEditor Plugin: MyStyles Plugin
- Creating a simple Tooltip in jQuery
- RegExp in SqLite using Php
- jSound - jQuery plugin
- jmotion - jQuery plugin
- Play audio onHover with jQuery
- Black Search plugin
- Japng Image animator
- Themes for Havalite
- mb.mediaEmbedder
- Replace2Anchor
- Plugins and Widgets for Havalite
- iFrame plugin
- Google Fonts Plugin
- Hierarchical Category
- Creating Widgets for Havalite CMS
- Tag Cloud Viewer
- jWise plugin for Havalite
- Print this page 1.0
- Banner us
- Export Manager 1.0
- Developing Themes for Havalite
- Visitor Counter
- Adding Sidebar widgets
- Video Tutorials
- JDaedalum - A Gif like animation
- Plugins and Widgets Development
- Sortable2php
- timeSpam
- TipTip
- UItoTop
- HavaToDo
- Upgrading to Havalite 1.1.1.
- code embedder
- Havalite Interface Translation
- Upgrading to Havalite 1.0.9
- Error Pages
Categories
Support Styleshout
If you are interested in supporting our work and would like to contribute, you are welcome to make a small donation through the donate button down here- it will be a great help and will surely be appreciated.
Reached: 155 € goes to charity
gif javascript counter filter templates source api widgets code images effect open fonts hover, effects cms text upgrade download content design htaccess stylesheet html5, form layouts havalite demo iframe mp3 php jquery mp3, google free themes jquery, blog plugins, update css install image management javascript, plugin ui audio, css, flash plugins swf ckeditor widget variables editor banner sqlite3 html database generator system youtube spam sqlite html5
Counting since 08.08.2012




















