Author Topic: Ajax Scroller- Navigation Button Size  (Read 2493 times)

bkem

  • Newbie
  • *
  • Posts: 2
    • View Profile
Ajax Scroller- Navigation Button Size
« on: 27 July 2009, 04:55 »
Hi!  I want to use bigger navigation buttons for Ajax Scroller but the module seems to be hardcoded to size them to 16px by 16px.  So even if I upload larger images, they still get sized down.  Where can I change this?  It's not in the CSS. 

This seems like a pretty major flaw to me, considering that the documentation implies that you can completely change the buttons just by changing the images, and makes me a bit annoyed that I paid for this module and went through the hassle of adding Ioncube to my site.

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,495
    • View Profile
    • Sakic.Net
Re: Ajax Scroller- Navigation Button Size
« Reply #1 on: 27 July 2009, 18:21 »
Hello,

I will make a fix for this, will be ready in 24 hours.

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,495
    • View Profile
    • Sakic.Net
Re: Ajax Scroller- Navigation Button Size
« Reply #2 on: 30 July 2009, 00:19 »
Still working on it...

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,495
    • View Profile
    • Sakic.Net
Re: Ajax Scroller- Navigation Button Size
« Reply #3 on: 01 August 2009, 11:10 »
Hello,

Sorry for delay in replying this, I am on vacation with limited time for work right now.

I had a look on this and to solve it I would need to use GD library which not all users have installed or let users enter the image dimensions in settings. Neither solutions are very practical.

Instead, it's best for you to modify the image width and height directly in the source code. Here is how to do it.

Open the file mod_ajaxscroller/script.js and search for code:
Code: [Select]
E=\'16\' and
Code: [Select]
H=\'16\'There are 2 instances of each. The first is for play button width/height and the second is for navigation buttons width/height.

Just change the values to whatever your image size is. If your image is 32x32 change it to:
Code: [Select]
E=\'32\' and
Code: [Select]
H=\'32\'
Note that the images must be png because gif does not offer proper transparency for different backgrounds.
« Last Edit: 01 August 2009, 11:12 by Saka »

bkem

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Ajax Scroller- Navigation Button Size
« Reply #4 on: 02 August 2009, 00:29 »
That worked.  Thanks.