[Solved]: Text pop up difference between FF and IE [Solved]: Text pop up difference between FF and IE
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: Text pop up difference between FF and IE

Started by hlabout, September 02, 2009, 11:42:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hlabout

I have a small problem on my intermediate picture page when using firefox 3.5.
Hovering over the intermediate picture should show a text item that informs the website visitor that clicking on the picture will show the NEXT picture in the album. (installed mod to prefenct full size image pop-up)
This all works fin using IE but when using my preferred browser firefox no text is shown when hovering over the intermediate picture.
I know the code below, and especially the "view_fs" part is used to show the text pop-up.

if ($mime_content['content']=='image') {
       if (isset($image_size['reduced'])) {
           $winsizeX = $CURRENT_PIC_DATA['pwidth']+5;  //the +'s are the mysterious FF and IE paddings
           $winsizeY = $CURRENT_PIC_DATA['pheight']+3; //the +'s are the mysterious FF and IE paddings
           $pic_html = "<a href='?album=$album$cat_link&amp;pos=$nextimg'>";
         $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
           $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
           $pic_html .= "</a>\n";
       } else {

So the question is: why the text pop-up does not work in firefox?
Is there a special setting in firefox that can be changed to deal with this kind of problems? (I have observed more differences between FF and IE)

I hope someone can answer my questions.

Harald

www.haraldlabout.nl/fotografie

phill104

Unfortunately, you are running behind on upgrading your site and are at risk.

Currently you are running <!--Coppermine Photo Gallery 1.4.19 (stable)-->, you should upgrade immediately. The latest stable release is 1.4.25.
It is a mistake to think you can solve any major problems just with potatoes.

hlabout

Thanx for the reply, will update soon.
Will it fix my problem?

Harald

Nibbler

If you want the image to have a title you need to set that.


$pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" title=\"{$lang_display_image_php['view_fs']}\" /><br />";

hlabout

Thanks Nibbler.

Superb advice, added the extra information to the code, working fine now.

Harald