PDA

View Full Version : استفاده از کد جی کوئری در وردپرس



raha1234567
جمعه 22 مرداد 1395, 19:02 عصر
سلام دوستان من یک کد چی کوئری دارم میخوام توی وردپرس استفاده کنم ولی نمی دونم چطور میشه کمکم کنید




<div class="lined" style="width:95%">
<h2 id="vidname">Rejuvenescimento Vaginal com Monalisa Touch - Dra Elaine Mallmann</h2> <h5>&nbsp;</h5> <span class="bolded-line"></span>
</div>
<div style="width:480px;margin-left:auto;margin-right:auto;"> <video style="width: 100%" id="VidP" poster="http://artiman.co/faadmin/appimg/2ede1a49-4671-49e6-9427-bb6198de8044.jpg" controls=""> <source id="srcs" src="http://artiman.co/faadmin/appimg/Media/b8795d3b-ba33-4e7a-81a5-053227fd45b7.mp4" type="video/mp4"> Your browser does not support the video tag. </video>


<table style="width: 100%"> <tbody><tr> <td style="width: 16.6666%"> <img onclick="SetVid('#','x')" src="#" style="width: 78px;height:44px; cursor: pointer"></td> </tr>
</tbody></table>
</div>





من این کد رو میذارم توب بلاک متنم ولی قسمت




onclick="SetVid('#','x')"


خود به خود میپره



<script type="text/javascript">
jQuery(function () {






jQuery.fn.getTitle = function () {
var arr = jQuery("a.fancybox");
jQuery.each(arr, function () {
var title = jQuery(this).children("img").attr("title");
jQuery(this).attr('title', title);
})
}
var thumbnails = jQuery("a:has(img)").not(".nolightbox").filter(function () {
return /\.(jpe?g|png|gif|bmp)$/i.test(jQuery(this).attr('href'))
});
thumbnails.addClass("fancybox").attr("rel", "fancybox").getTitle();
jQuery("a.fancybox").fancybox({
'cyclic': false,
'autoScale': true,
'padding': 10,
'opacity': true,
'speedIn': 500,
'speedOut': 500,
'changeSpeed': 300,
'overlayShow': true,
'overlayOpacity': "0.3",
'overlayColor': "#666666",
'titleShow': true,
'titlePosition': 'inside',
'enableEscapeButton': true,
'showCloseButton': true,
'showNavArrows': true,
'hideOnOverlayClick': true,
'hideOnContentClick': false,
'width': 560,
'height': 340,
'transitionIn': "fade",
'transitionOut': "fade",
'centerOnScroll': true
});
})
</script>
<script type="text/javascript">
function SetVid(file, name) {


var player = document.getElementById('VidP');


var mp4Vid = document.getElementById('srcs');


document.getElementById("vidname").innerHTML = name;




player.pause();


// Now simply set the 'src' attribute of the mp4Vid variable!!!!
// (...using the jQuery library in this case)


jQuery(mp4Vid).attr('src', file);


player.load();
player.play();


}
</script>




اینم کد جاوا اسکریپتم هست

احساس میکنم وردپرس اصلا جی کوئری ها رو نمیفهمه
برای جاوا اسکریپتام پلاگین نصب کردم
لطفااااا کمک کنید