A czy jest możliwość przerobienia tej wtyczki by np. z prawej do lewej bądź z lewej do prawej przemieszczał się obraz reklamy?
Jeśli tak to prosiłbym o jakieś wskazówki.
edit:
Udało się, zrobiłem sam.
button_panel.php 130x wysokość obrazków wstawiać.
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Button Panel Infusion
| Original author: cmike
| Email:
| Continued starting v2.00: muscapaul
| Email:
| Web: http://www.muscapaul.com
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
include INFUSIONS."button_panel/infusion_db.php";
if (file_exists(INFUSIONS."button_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."button_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."button_panel/locale/English.php";
}
openside($locale['BLAN_001']);
if (dbrows(dbquery("SELECT * FROM ".DB_BUTTONS."")) > 0) {
echo "<script type='text/javascript'>
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
if (object != '[object]'){ //do this so I can take a string too
setTimeout('nereidFade('+object+','+destOp+','+rate+','+delta+')',1);
return;
}
clearTimeout(nereidFadeTimers[object.sourceIndex]);
diff = destOp-object.filters.alpha.opacity;
direction = 1;
if (object.filters.alpha.opacity > destOp){
direction = -1;
}
delta=Math.min(direction*diff,delta);
object.filters.alpha.opacity+=direction*delta;
if (object.filters.alpha.opacity != destOp){
nereidFadeObjects[object.sourceIndex]=object;
nereidFadeTimers[object.sourceIndex]=setTimeout('nereidFade(nereidFadeObjects['+object.sourceIndex+'],'+destOp+','+rate+','+delta+')',rate);
}
}
</script>";
//$szer = $theme_width_r-10;
$result = dbquery("SELECT * FROM ".DB_BUTTONS."");
echo "<table cellpadding='4' cellspacing='0' border='0' width='100%' align='center'><tr><td align='center'>\n";
echo "<marquee behavior='scroll' align='center' valign='bottom' direction='left' width='100%' height='130' scrollamount='3' scrolldelay='1' onmouseover='this.stop()' onmouseout='this.start()'>\n";
while ($data=dbarray($result)) {
echo "<a href='".INFUSIONS."button_panel/button.php?button_id=".$data['button_id']."' target='_blank'><img src='".$data['button_pic']."' border='0' style='filter:alpha(opacity=30)' onMouseOver='nereidFade(this,100,10,30)' onMouseOut='nereidFade(this,30,10,5)' title='".$data['button_name']."' alt='".$data['button_name']."' /></a> \n";
}
echo "</marquee>\n</td></tr></table>\n";
echo "<center><a href='".INFUSIONS."button_panel/button_client.php'>".$locale['BLAN_003']."</a></center>";
} else {
echo "<center>".$locale['BLAN_102']."</center>";
}
closeside();
?>
Edytowane przez p47ryk dnia 29.02.2012 13:02:45
|