Witam mam pytanie jak zmodyfikować Panel ostatnio dodanych gier tak by screeny nie przesuwały sie tylko stały w miejscu jak na gry.pl bo gdy osunę linijki z marque to pojawia sie o dziwo w tym miejscu panel najczęściej granych tak z nikąd
oto mój kod
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
opentable("Najnowsze Gry Online");
//settings
//0 = no, 1= yes
//show author?
$ticker_author = "0";
//show date?
$ticker_date = "0";
//show commentcount?
$ticker_comments = "0";
//show readcounts?
$ticker_reads = "0";
//the higher the value the slower, default is 100
$ticker_speed = "100";
//ticker width? (use either % or px values)
$ticker_width = "100%";
$tickerquery = dbquery("SELECT tn.*, tu.user_id,user_name ,COUNT(comment_item_id) AS game_comments
FROM ".$db_prefix."game tn
LEFT JOIN ".$db_prefix."users tu ON tn.game_name=tu.user_id
LEFT JOIN ".$db_prefix."comments ON game_id=comment_item_id AND comment_type='K'
GROUP BY game_id
ORDER BY game_datestamp DESC LIMIT 0,5");
$ticker_content = "<marquee Behavior='scroll' Direction='down' ScrollDelay='".$ticker_speed."' align='right' width='".$ticker_width."' onmouseover='this.stop()' onmouseout='this.start()'>";
while($data = dbarray($tickerquery)) {
$ticker_content .= "<center><span style='font-weight:bold;'><a href=\"".BASEDIR."games.php?game_id=".$data['game_id']."\"><img src='".BASEDIR."images/flashe/".$data['game_subject'].".gif' style='border: 1px solid #000; width: 70px; height: 59px; alt='".$data['game_subject']."' border='0'></a></span><br></center> ";
if($ticker_author+$ticker_date+$ticker_comments+$ticker_reads != "0" ) {
$ticker_content .= "[";
if($ticker_author == "1") {
$ticker_content .= $locale['040'].$data[user_name];
if($ticker_date+$ticker_comments+$ticker_reads != "0"){
$ticker_content .= " | ";
}
}
if($ticker_date == "1") {
$ticker_content .= showdate("shortdate", $data['game_datestamp']);
if($ticker_comments+$ticker_reads != "0"){
$ticker_content .= " | ";
}
}
if($ticker_comments == "1") {
$ticker_content .= $data['game_comments'] .$locale['043'];
if($ticker_reads != "0"){
$ticker_content .= " | ";
}
}
if($ticker_reads == "1") {
$ticker_content .= $locale['413'] .$data['game_reads'] .$locale['412'];
}
$ticker_content .= "]";
}
$ticker_content .= " ";
}
$ticker_content .= "</marquee>";
echo $ticker_content;
closetable();
?>
|