Current location: Hot Scripts Forums » Programming Languages » PHP » Joomla Javascript Header Image Problem in FireFox 3


Joomla Javascript Header Image Problem in FireFox 3

Reply
  #1 (permalink)  
Old 03-03-09, 01:54 PM
Andy-G Andy-G is offline
New Member
 
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Joomla Javascript Header Image Problem in FireFox 3

Hi, I'm having a problem with the header on my website in firefox 3 and chrome.

I'm using the header image module for Joomla

extensions.joomla.org/extensions/156/details

This randomly generates images from a folder on the server using javascript. My logo is sitting on top of the 'changing' header image on the left, using CSS to positition it and the search box has been allocated a module position and sits on the right hand side, again over the 'changing' header image.

This is working perfectly in ie6, ie7 and firefox 2 but for some reason in firefox 3 and chrome, the 'changing' header image appears to be sitting on top of my logo an search box, when the page firsts loads I can see the logo for a second and then it dissapears behind the image!

This is the code out of the index file for the template
Code:
<div id="masthead">
									  <?php mosLoadModules ( 'header', -2 ); ?>
									  <div id="logoposition"><a href="<?php echo $mosConfig_live_site;?>" class="nounder"></a>
									    <table width="222" border="0">
                                          <tr>
                                            <td><a href="<?php echo $mosConfig_live_site;?>" class="nounder"><img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/blank.gif" style="border:0;" alt="" id="logo" /></a>                                              <?php mosLoadModules('banner', -1); ?></td>
                                          </tr>
                                        </table>
									  </div>
										<div id="mod-top">
											<div class="top-padding">
												<?php mosLoadModules('top', -1); ?>
											</div>
										</div>
								  </div>
This is from the CSS file

Code:
}

#masthead {
	height: 111px;
	position: relative;
	
}


#logo {
	width: 222px;
	height: 61px;
	margin-top: 22px;
	margin-left: 18px;

}


div#logoposition {
	top: 2px;
	right: 440px;
	position: absolute;
	width: 468px;
	height: 60px;
	
}

div#mod-top {
	top: 10px;
	right: 10px;
	width: 160px;
	height: 90px;
	overflow: hidden;
	position: absolute;
}
Server info:

Operating system: Linux
PHP Version: 5.2.4
Web Server: Apache
Joomla! Version: Joomla! 1.0.15 Stable


I would really appreciate it if someone could tell me what I've done wrong or point me in the right direction?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-04-09, 04:48 AM
dgreenhouse's Avatar
dgreenhouse dgreenhouse is offline
Aspiring Coder
 
Join Date: Mar 2009
Location: San Francisco
Posts: 457
Thanks: 0
Thanked 3 Times in 3 Posts
I don't know that module, but it sounds like a z-index issue.
FF3 has had z-index issues that show up in weird ways just like this.

Have you attempted using firebug to triangulate onto the problem?

I assume the "nounder" class selector is an "Always on top" idiom.
(Probably via z-index somewhere in a mass of css)

Joomla and others are notorious for really, really convoluted code.

Although I actually do like Joomla's architectural design, it drives me crazy!

Just looking at the code you posted drives me nuts.

It should be really simple - even though it's getting emitted using MVC.

div over div and no more - KISS...

plus the indenting is a nightmare! (although that's really a php emitting issue and tabs most of the time)

I know it's not your fault, I'm just venting over buggy & ugly code we all have to contend with!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 03-04-09, 08:50 AM
Andy-G Andy-G is offline
New Member
 
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for your reply!

After you mentioned z-index, I hunted around google and found some answers.

Putting "z-index: 999;" in the CSS file seems to have done the trick! I can now see the logo and search box sitting on top of the header image!

Code:
}

div#logoposition {
	top: 2px;
	right: 440px;
	position: absolute;
	z-index: 999;
	width: 468px;
	height: 60px;
	
}

div#mod-top {
	top: 10px;
	right: 10px;
	width: 160px;
	height: 90px;
	overflow: hidden;
	position: absolute;
	z-index: 999;
}
Thanks for your help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 03-04-09, 09:08 AM
dgreenhouse's Avatar
dgreenhouse dgreenhouse is offline
Aspiring Coder
 
Join Date: Mar 2009
Location: San Francisco
Posts: 457
Thanks: 0
Thanked 3 Times in 3 Posts
Glad you got it going!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
The Following User Says Thank You to dgreenhouse For This Useful Post:
joosen (05-02-10)
  #5 (permalink)  
Old 05-02-10, 12:33 PM
joosen joosen is offline
New Member
 
Join Date: May 2010
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Thumbs up Ty!!

Normally i dont go trough the registry process just to post a reply.

But that 'z-index: 999;' made my day

Many thanks dgreenhouse!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS layout in Firefox problem macu CSS 1 08-22-07 09:30 AM
HTML table = Background Image versus Image problem Mickoes HTML/XHTML/XML 2 02-27-06 02:43 PM
CSS border problem in firefox, looks good in IE vertigoflow CSS 1 02-18-06 11:30 AM
using javascript in php for image changing with drop down menu developer_x PHP 0 02-13-05 09:26 AM
javascript, displays in firefox right but not IE eGGy JavaScript 1 08-09-04 07:05 AM


All times are GMT -5. The time now is 10:28 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.