Jump to content
php.lv forumi

JWPlayer + Fancybox .mp3 hrefs


vautinsh

Recommended Posts

$(document).ready(function() {
	$("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox({
                'transitionIn'	  : 'elastic',
	 'transitionOut'  : 'elastic'
                   });
	$("a[href$=.mp3]").fancybox({
	 'width'          : 360,
                'height'         : 22,
	 'type'           : 'swf',
	 'padding'        : 0,
	 'href'           : 'player.swf?file=test.mp3&autostart=true',
	 'transitionIn'	  : 'elastic',
	 'titleShow'	  : 'true',
	 'titlePosition'  : 'outside',
	 'title'	  : 'Downloads',
	 'transitionOut'  : 'elastic'
   	   }); 
	   });

 

 

Hi! Vaig palīdzību, cenšos uztaisīt lai lapā nospiežot uz jebkura linka kurš ved uz .mp3 failu, atver to ar jwplayer iekš Fancybox! Ar bildēm sanāca lai atver!

Koda pie 'href' kur ir 'player.swf?file=test.mp3' vaidzētu uztaisīt lai tas test.mp3 ir tas nospiestais fails!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...