Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

PANEL SNIPPIT:: Affiliates Slider Panel

Affiliates Slider Panel

This is the Affiliates Slider Panel from PHP-Fusion Mods UK.
A jQuery Sliding panel.

Change the links to the image's, alt, title and site url's to your own needs.

Go to Admin >>> System >>> Panels >>> Add a new Center Panel

Paste in the code, save and enable.

CodeDownload  

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2014 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Name: Affiliates Slider Panel
| Version: 1.00
| Filename:  affiliates_slider_panel.php
| Author: PHP-Fusion Mods UK
| Deelopers: Craig
| Site: http://www.phpfusionmods.co.uk
+--------------------------------------------------------+
| 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 www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/

add_to_head("<style type='text/css' media='screen'>
#affiliates {
margin: 0px auto 20px auto;
position: relative;
width: 468px;
height: 60px;
padding: 10px 15px 15px 10px;
}
#affiliates ul {
display: none;
}
#affiliates  li {
position: absolute;
}
#affiliates  img {
border: 3px solid #ccc;
border-radius: 4px 4px 4px 4px;
-moz-border-radius: 4px 4px 4px 4px;
-webkit-border-radius: 4px 4px 4px 4px;
}
</style>");

echo"<ul id='affiliates'>\n
<li><a href='http://www.php-fusion.se/' target='_blank'><img class='active' src='".BASEDIR."images/affs/phpfusion_se_468x60.png' alt='PHP-Fusion Sverige' title=' PHP-Fusion Sverige' /></a></li>\n      
<li><a href='http://www.phpfusion-tips.dk/' target='_blank'><img src='".BASEDIR."images/affs/phpf_tips_logo.jpg' alt='PHPFusion-Tips.dk' title='PHPFusion-Tips.dk'   /></a></li>\n      
<li><a href='http://cvision.eu/' target='_blank'><img src='".BASEDIR."images/affs/banner-cvision-468-60.jpg' alt='cVision.eu' title='cVision.eu'  /></a></li>\n      
<li><a href='http://www.assensvej.dk/' target='_blank'><img src='".BASEDIR."images/affs/assens6.png' alt='assensvej.dk' title='assensvej.dk' /></a></li>\n      
<li><a href='http://www.rusfusion.ru/' target='_blank'><img src='".BASEDIR."images/affs/rusfusion-468-60.png' alt='PHP-Fusion Russia' title='PHP-Fusion Russia'  /></a></li>\n      
<li><a href='http://www.dark-fusion.se/' target='_blank'><img src='".BASEDIR."images/affs/df_468_60.png' alt='Dark Fusion' title='Dark Fusion'  /></a></li>\n         
<li><a href='http://www.krismods-fusion.pl' target='_blank'><img src='".BASEDIR."images/affs/banner-468x60km.jpg' alt='Kris Mods Fusion' title='Kris mods Fusion'/></a></li>\n         
<li><a href='http://www.explosivradio.com' target='_blank'><img src='".BASEDIR."images/affs/er_banner.png' alt='Explosivradio' title='Explosivradio' /></a></li>\n         
<li><a href='http://www.php-fusion.at' target='_blank'><img src='".BASEDIR."images/affs/banner10austra.jpg' alt='PHP-Fusion Austria' title='PHP-Fusion Austria'  /></a></li>\n   
</ul>\n";

add_to_footer("<script type='text/javascript'>
$('#affiliates > li:gt(0)').hide();
setInterval(function() {
$('#affiliates > li:first')
.fadeOut(2000)
.next()
.fadeIn(1000)
.end()
.appendTo('#affiliates');
}, 7000);
</script>");


Thread Information
Author
Replies
1 post
Views
1,813 times
Last Post
Last updated on 6 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Craig