1
Joomla! 1.6/1.7/2.5 / Re:Script jquery funziona su jsfiddle ma dentro a un modulo joomla no
« il: 20 Mar 2014, 18:33:05 »
Risolto con getProperty
grazie comunque
ciao!
grazie comunque
ciao!
Questa sezione ti permette di visualizzare tutti i post inviati da questo utente. N.B: puoi vedere solo i post relativi alle aree dove hai l'accesso.
<div class="wrapplayer">
<ul>
<li class="video1" data-link="URL_DEL_FILE"><input type="button" value="load video" />
</li>
</ul>
<>
jQuery('li[class="video1"]').click(function() {
// alert("click!");
//alert($(this).outerHTML);
alert($(this).data('link')); // questo alert non funziona sulla piattaforma joomla ma su jsfiddle sì!
return;
var $target = $(this).attr("rel");
var $vid_obj = _V_("div_video");
$vid_obj.ready(function() {
// hide the video UI
$("#div_video_html5_api").hide();
// and stop it from playing
$vid_obj.pause();
// assign the targeted videos to the source nodes
$("video:nth-child(1)").attr("src",$target);
// reset the UI states
$("#div_video").removeClass("vjs-playing").addClass("vjs-paused");
// load the new sources
$vid_obj.load();
$("#div_video_html5_api").show();
});
});
![]() |
|