码迷,mamicode.com
首页 > 其他好文 > 详细

个人笔记

时间:2016-07-25 16:03:35      阅读:98      评论:0      收藏:0      [点我收藏+]

标签:

 

视频全屏: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 id="fancybox-title-over">‘ + title + ‘</span>‘;
    }
  }
  $("a[rel=syImg]").fancybox(settings);

  //鼠标移开自动关闭

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

    $(this).click();
    $("#fancybox-overlay").hover(function() {
    $("#fancybox-close").click();
    });
  });

}

 

个人笔记

标签:

原文地址:http://www.cnblogs.com/huliang56/p/5703662.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!