Błąd:
Line 712, Column 38: document type does not allow element "style" here
<style type="text/css" media="screen">
oto kod pliku xxx.php
Kod
<?php
/**
* @version $Id: default.php 2011-08-04 14:10:00Z florek $
* @package zacnystuff
* @copyright Copyright (C) 2011 Lazy Gamer. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
//jesli w templatce strony jest juz zainkludowany jQuery to wykomentuj te dwie linijki.
//jesli chcesz uzywac tego modulu na stronach nie-joomlowych to musisz zainkludowac ten pliczek recznie
//<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
$doc =& JFactory::getDocument();
if($js) $doc->addScript("/modules/mod_lazyfacebook/js/jquery-1.4.4.min.js");
//ponizej kod do animowania boxa
//na stronach nie-joomlowych tez trzeba do dorzucic recznie
$js = "jQuery.noConflict();
jQuery(document).ready(function($)
{
$('div#fb_container').hover(function()
{
$(this).stop(true, false).animate({right:0}, 'fast');
},
function()
{
$(this).stop(true, false).animate({right:'-206'}, 'slow');
}
,500);
});
";
$doc->addScriptDeclaration($js);
?>
<style type="text/css" media="screen">
.moduletable-fb
{
position: absolute;
top: 100px;
right: 0;
z-index: 99999;
}
div#fb_wrapper
{
position: absolute;
top: 100px;
right: 0;
z-index: 99999;
}
div#fb_container
{
position: fixed;
top: 100px;
right: -206px;
width: 244px;
height: 372px;
z-index: 99999;
cursor: pointer;
}
img.fb_bg
{
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
div#fb_container iframe
{
position: absolute;
top: 10px;
left: 49px;
z-index: 2;
}
</style>
<div id="fb_wrapper">
<div id="fb_container">
<img src="/modules/mod_lazyfacebook/images/fb.png" alt="Facebook"class="fb_bg" />
<iframe
src="http://www.facebook.com/plugins/likebox.php?href=<?php echo $url; ?>
&width=188
&colorscheme=light
&connections=9
&stream=false
&header=true
&height=382"
scrolling="no"
frameborder="0"
style="float: right; border:none; overflow:hidden; width:188px; height:352px;">
</iframe>
</div>
</div>
/**
* @version $Id: default.php 2011-08-04 14:10:00Z florek $
* @package zacnystuff
* @copyright Copyright (C) 2011 Lazy Gamer. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
//jesli w templatce strony jest juz zainkludowany jQuery to wykomentuj te dwie linijki.
//jesli chcesz uzywac tego modulu na stronach nie-joomlowych to musisz zainkludowac ten pliczek recznie
//<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
$doc =& JFactory::getDocument();
if($js) $doc->addScript("/modules/mod_lazyfacebook/js/jquery-1.4.4.min.js");
//ponizej kod do animowania boxa
//na stronach nie-joomlowych tez trzeba do dorzucic recznie
$js = "jQuery.noConflict();
jQuery(document).ready(function($)
{
$('div#fb_container').hover(function()
{
$(this).stop(true, false).animate({right:0}, 'fast');
},
function()
{
$(this).stop(true, false).animate({right:'-206'}, 'slow');
}
,500);
});
";
$doc->addScriptDeclaration($js);
?>
<style type="text/css" media="screen">
.moduletable-fb
{
position: absolute;
top: 100px;
right: 0;
z-index: 99999;
}
div#fb_wrapper
{
position: absolute;
top: 100px;
right: 0;
z-index: 99999;
}
div#fb_container
{
position: fixed;
top: 100px;
right: -206px;
width: 244px;
height: 372px;
z-index: 99999;
cursor: pointer;
}
img.fb_bg
{
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
div#fb_container iframe
{
position: absolute;
top: 10px;
left: 49px;
z-index: 2;
}
</style>
<div id="fb_wrapper">
<div id="fb_container">
<img src="/modules/mod_lazyfacebook/images/fb.png" alt="Facebook"class="fb_bg" />
<iframe
src="http://www.facebook.com/plugins/likebox.php?href=<?php echo $url; ?>
&width=188
&colorscheme=light
&connections=9
&stream=false
&header=true
&height=382"
scrolling="no"
frameborder="0"
style="float: right; border:none; overflow:hidden; width:188px; height:352px;">
</iframe>
</div>
</div>