Promo block javascript problem

Hiya everyone, I hope you are all doing okay.

I need to ask for some advice again please.

The images I am using in the promo block are 800px by 270px, they are sitting on a background image which has the effect of looking like a border. The way the site should look is for the promo images to take up 800px by 270px exactly, but they are being made smaller by the javascript!

.

This is how I had hoped they would end up looking:

http://i530.photobucket.com/albums/dd348/RevKirkFitzgerald/back.jpg

.

This is how they have actually ended up looking:

http://i530.photobucket.com/albums/dd348/RevKirkFitzgerald/backasis.jpg

.

How do I make them stay at their 'actual' size?

I've done the search bit here to find the answer and the best I found was someone saying the ratio needs changing in design.inc.php.

What ratio exactly, there's a lot of stuff in that file and I have no idea what I'm looking at, can someone please tell me what bit of code I need to change and what to change it to so my promo images stay at 800px by 270px.

Peace be yours sisters and brothers,

RevKF

Quote · 27 Sep 2008

Try follow this:

var fRatio = fRatio || 0.28125; //main div size proportion (height/width)
this is from
jquery.dolPromo.js



and seems during all resides - used same variable.

Quote · 29 Sep 2008

Hiya Andrey, thank you very much for your help, that was still in that file as is mate, what I did wrong was to upload the promo banners directly via FTP. I deleted the promo banners via FTP then re-uploaded them via ACP basic settings, they look great now:

http://i530.photobucket.com/albums/dd348/RevKirkFitzgerald/endresult.gif

.

I'm close to being able to release my first template for folk here, I'm still trying to get the template to be completely stand alone, sadly there are a lot of border and background colour calls in .php files sitewide, which is really weird, that stuff should all be handled in the .css files. I've met a few obstacles that I'm going to have to make work around's against as editing core files should not play a role in s template design, I'll let you all know more when I know more.

Peace be yours sisters and brothers,

RevKF.

Quote · 29 Sep 2008

Hello Andrey, I am using Dolphin 6.1.4. What number do I need to put here for a pixel height of 145 px re the promo box?

Thanks,

Stuart

Try follow this:

var fRatio = fRatio || 0.28125; //main div size proportion (height/width)
this is from
jquery.dolPromo.js



and seems during all resides - used same variable.

There are none so blind as those that will not see.
Quote · 17 Nov 2008
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.