MyBB Community Forums

Full Version: Forum Affiliates Scrolling Images
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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> 
<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