Topic: Firefix 1.5 version acting wierd with the new changes...

First look at this in IE

http://www.knguyentu.com/main.php?url=I … lash=false

and then look at it in Firefire 1.5.02 and above..

http://www.knguyentu.com/main.php?url=I … lash=false

Any idea why?

This one is still on the old flash method
http://www.knguyentu.com/main.php?url=I … ges=lv2004

and it worked fine in firefox. The new one seems to act wierd.

[url]http://www.photographybykevin.net[/url]

Simple Viewer FAQ By Kevin
[url]http://knguyentu.com/wordpress/photography-by-kevin/simpleviewer-flash-photo-gallery/[/url]

Re: Firefix 1.5 version acting wierd with the new changes...

I'm running into the same issue, but I thought it was due to using the ASP.NET build code.

www.cardenphotography.com/gallery/test
www.mackenziecarden.com/gallery/200605misc

Both of these show the same issue. The main image is not sized right and the placement on the page is out of whack.

Re: Firefix 1.5 version acting wierd with the new changes...

Hi Smilepak,

it looks like you have an issue with your CSS. Firefox is not recoginzing the correct size for the SWF and/or the DIV that contains it.

2 things to try:

- Use absolute pixel dimensions in the flashObject tag instead of percentages.
- In your CSS set the #flashcontent DIV to have an absolute pixel height and width.
[/list]

Felix Turner
SimpleViewer Support Team.

Re: Firefix 1.5 version acting wierd with the new changes...

2 things to try:

- Use absolute pixel dimensions in the flashObject tag instead of percentages.
- In your CSS set the #flashcontent DIV to have an absolute pixel height and width.
[/list]

yet another solution:

- stop using firefox!  lol

Re: Firefix 1.5 version acting wierd with the new changes...

I was having this same problem and because I was hiding any overflow instead of having scroll bars, it rendered the gallery kinda useless. In the end I wrote a simple script to check what browser the user had and what screen size they were using then just set height and width variables accordingly.

In index.html:

<head>...<script type="text/javascript" src="browserDetect.js"></script>...</head>

and

            <div id="flashcontent">
                SimpleViewer requires Macromedia Flash. <a href="http&#58;//www.macromedia.com/go/getflashplayer/">Get Macromedia Flash.</a> If you have Flash installed, <a href="green.html?detectflash=false">click to view gallery</a>
            <script type="text/javascript">
                var width, height;
                if&#40;browser == "NS"&#41;&#123; 
                    //1024x768+
                    if&#40;screen.width>=1024&#41;&#123;width="900"; height="450"; &#125;
                    //800x600
                    else&#123; width = "700"; height = "200"; &#125;
                &#125;
                else &#123; width="100%"; height="75%"; &#125;
                var fo = new FlashObject&#40;"viewer.swf","viewer",width,height,"6","#ffffff"&#41;;
                fo.addParam&#40;"quality", "best"&#41;;
                fo.write&#40;"flashcontent"&#41;;    
            </script>
            </div>

In browserDetect.js I had:

var detect = navigator.userAgent.toLowerCase&#40;&#41;;
var OS,browser,version,total,thestring;

if &#40;checkIt&#40;'konqueror'&#41;&#41; &#123;    browser = "Konqueror"; &#125;
else if &#40;checkIt&#40;'safari'&#41;&#41; browser = "Safari"
else if &#40;checkIt&#40;'omniweb'&#41;&#41; browser = "OmniWeb"
else if &#40;checkIt&#40;'opera'&#41;&#41; browser = "Opera"
else if &#40;checkIt&#40;'webtv'&#41;&#41; browser = "WebTV";
else if &#40;checkIt&#40;'icab'&#41;&#41; browser = "iCab"
else if &#40;checkIt&#40;'msie'&#41;&#41; browser = "IE"
else if &#40;!checkIt&#40;'compatible'&#41;&#41;
&#123;
    browser = "NS"
    version = detect.charAt&#40;8&#41;;
&#125;
else browser = "An unknown browser";

if &#40;!version&#41; version = detect.charAt&#40;place + thestring.length&#41;;
    

function checkIt&#40;string&#41;
&#123;
    var detect = navigator.userAgent.toLowerCase&#40;&#41;;
    var thestring;
    place = detect.indexOf&#40;string&#41; + 1;
    thestring = string;
    return place;
&#125;

Javascript's not really my thing so it might be a little hacked together but it did the trick. The only thing I couldn't get around was the number of thumbnail columns/rows.. If you have too many they might get cut off, 3x3 seemed to fit most resolutions alright.

Oh, and remember that the user's browser window on a Mac at 1024x768 will probably be smaller than a windows user's browser window at the same resolution.

Hope this all helps!

Re: Firefix 1.5 version acting wierd with the new changes...

2 things to try:

- Use absolute pixel dimensions in the flashObject tag instead of percentages.
- In your CSS set the #flashcontent DIV to have an absolute pixel height and width.
[/list]

yet another solution:

- stop using firefox!  lol

Removed the % and replaced with absolute seems to resolve the problem...

[url]http://www.photographybykevin.net[/url]

Simple Viewer FAQ By Kevin
[url]http://knguyentu.com/wordpress/photography-by-kevin/simpleviewer-flash-photo-gallery/[/url]