Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Błąd przy validacji W3C, 1 błąd przy validacji W3C
wicher111
post
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 13.02.2013

Ostrzeżenie: (0%)
-----


Witam, chodzi o to, że walidując stronę mam jeden błąd nie wiem jak sobie z nim poradzić
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; ?>
                &amp;width=188
                &amp;colorscheme=light
                &amp;connections=9
                &amp;stream=false
                &amp;header=true
                &amp;height=382"
        scrolling="no"
        frameborder="0"
        style="float: right; border:none; overflow:hidden; width:188px; height:352px;">
    </iframe>
    </div>
</div>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 20:15