Tuesday, January 11, 2011

implementing audio and video and url to div

· click( handler(eventObject) )

· .css()

Categories: CSS | Manipulation > Style Properties

Contents:

· css( propertyName )

o .css( propertyName )

· css( propertyName, value )

o .css( propertyName, value )

o .css( propertyName, function(index, value) )

    • .css( map )
·         For showind url : 
 

· Html5 audio tag J not work with many browsers J

http://www.w3schools.com/html5/html5_audio.asp

·         Flash Player jquery plugin 
http://jquery.lukelutman.com/plugins/
Going by example is good .
 
$(document).ready(function(){
    $('a[@href$="mp3"]').flash( // this was difficult to understand J
        { src: 'singlemp3player.swf', height: 20, width: 100 },
        { version: 7 },
        function(htmlOptions) {
            $this = $(this);
            htmlOptions.flashvars.file = $this.attr('href');
            $this.before($.fn.flash.transform(htmlOptions));                                   
        }
    );
});

Before:

  • sound.mp3
  • After:

  •     
        sound.mp3
      

    http://jquery.lukelutman.com/plugins/flash/example-mp3.html

    No comments:

    Post a Comment