视频全屏:allowFullScreen="true"

eg: <iframe src="" allowFullScreen="true" width="1024" height="768"></iframe>

 

取消视频全屏:document.webkitCancelFullScreen();

 

获取iframe中页面的元素:

var parentWin = parent.document.getElementById("ID").contentWindow;
var video = parentWin.document.getElementsByTagName("video");

 

swf背景透明:wmode=transparent

eg: <embed src="demo.swf" width="1024" height="768" wmode=transparent type="" >

 

使用FancyBox:

function loadSyFancybox () {
  var settings = {
    'transitionIn': 'fade',
    'transitionOut': 'fade',
    'titlePosition': 'over',
    'cyclic': false,
    'titleFormat': function(title) {
    return '<span ).fancybox(settings);

  //鼠标移开自动关闭

  $("a[rel=syImg]").fancybox(settings).hover(function() {

    });
  });

}

 

相关文章:

  • 2021-12-13
  • 2022-12-23
  • 2021-07-16
  • 2021-09-22
  • 2021-05-30
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-06
  • 2022-12-23
  • 2022-12-23
  • 2021-05-11
  • 2022-12-23
  • 2021-06-17
相关资源
相似解决方案