MyBB Community Forums
Forum Affiliates Scrolling Images - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Support (https://community.mybb.com/forum-72.html)
+---- Thread: Forum Affiliates Scrolling Images (/thread-102728.html)



Forum Affiliates Scrolling Images - Jihad - 2011-08-29

Link to plugin: http://mods.mybb.com/view/forum-affiliate-manager

I would like to have images scroll from left to right. I searched the forums and found that someone use a marquee to move the images, but it seems from user response that it causes some issues in browsers.

Could someone perhaps point me in the right direction?

The current code is below:

<span style="width:{$maxwidth}px;height:{$maxheight}px;float:left;margin-right:5px;margin-bottom: 2px;text-align:left;"><a href="{$mybb->settings['bburl']}/index.php?action=visit&amp;id={$affiliate['id']}&amp;key={$mybb->post_code}" target="_blank"><img src="{$mybb->settings['uploadspath']}/affiliates/{$affiliate['image']}" alt="" width="auto" height="auto" title="{$affiliate['name']}"></a></span> 



RE: Forum Affiliates Scrolling Images - leroymcqy - 2013-12-14

<marquee direction="right" behavior="scroll" onmouseover="this.setAttribute('scrollamount', 0, 0);" onmouseout="this.setAttribute('scrollamount', 6, 0);"><span style="width:{$maxwidth}px;height:{$maxheight}px;float:left;margin-right:5px;margin-bottom: 2px;text-align:left;"><a href="{$mybb->settings['bburl']}/index.php?action=visit&amp;id={$affiliate['id']}&amp;key={$mybb->post_code}"><img src="{$mybb->settings['uploadspath']}/affiliates/{$affiliate['image']}" alt="" width="auto" height="auto" title="{$affiliate['name']}"></a></span></marquee>

this is how you get it to scroll