Jump to content

Lightsoff problem


selenin

Recommended Posts

Hello, I have a problem with the lightsoff function with novamov, with the other players I tested it works so far, here my javascript:

 

function lightsoff() {

 

$("#lightsoff").click(

 

function() {

 

$('#Playerholder, #Player, embed, object')

 

.css({ 'visibility' : 'visible' });

 

$('body')

 

.append('<div id="lightsoff-background"></div>');

 

 

 

var page_size = getPageSize();

 

 

 

$('#lightsoff-background')

 

.css({

 

backgroundColor: "#000",

 

opacity: 0.9,

 

width: page_size[2],

 

height: page_size[1]

 

}).show();

 

 

 

$('#lightsoff-background').click(function() {

 

$('#lightsoff-background')

 

.fadeOut(function() {

 

$('#lightsoff-background').remove();

 

});

 

return false;

 

});

 

return false;

 

});

 

}

 

And this is my template code:

 

<div id="Playerholder">

 

<div align="center">

<iframe style="overflow: hidden; border: 0; width: 475px; height: 450px"" src="http://embed.novamov.com/embed.php?width=475&height=500&v=dfre8qs9n4yas"scrolling="no"></iframe> </div></div>

 

Some how it doesn't make the append, I think

Link to comment
https://forums.phpfreaks.com/topic/206000-lightsoff-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.