Forums / General Questions / Why does this show in Firefox but not IE?

Why does this show in Firefox but not IE?

Locked

Views: 1,060

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
30 Jun 2009, 8:50 PM
#1
plymgary1 avatar

plymgary1

Zen Follower

Join Date:
Feb 2009
Posts:
121
Plugin Contributions:
0

Why does this show in Firefox but not IE?

Hi,

I am trying to add a 'live chat' button to my site. It looks okay so far in FF but, in IE it doesn't show. Does anyone have any idea why? The code I have in tpl_header.php is:

<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div> <div id="logo2"><?php echo zen_image($template->get_template_dir(ADDRESS_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . ADDRESS_LOGO_IMAGE, ADDRESS_ALT_TEXT) ; ?></div> <div id="logo2"> <a href="livezilla/livezilla.php" onclick="return popitup('livezilla/livezilla.php')"<img src="http://www.handcrafteduk.com/livezilla/image.php?id=01" width="160" height="40" border="0" alt="LiveZilla Live Help"></a> </div>

Many thanks,

Gary :smile:

30 Jun 2009, 9:03 PM
#2
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Why does this show in Firefox but not IE?

you have Two divs with same ID logo2 .. you can only have one unique Div ID per document.

30 Jun 2009, 9:12 PM
#3
plymgary1 avatar

plymgary1

Zen Follower

Join Date:
Feb 2009
Posts:
121
Plugin Contributions:
0

Re: Why does this show in Firefox but not IE?

Thanks. If I change the div to a new ID it still doesn't appear in IE. :dontgetit

30 Jun 2009, 10:10 PM
#4
plymgary1 avatar

plymgary1

Zen Follower

Join Date:
Feb 2009
Posts:
121
Plugin Contributions:
0

Re: Why does this show in Firefox but not IE?

Sorted it. :smile:

Just in case this code helps someone in future this is what I added:

<div id="logo2"> <a href="livezilla/livezilla.php" onclick="return popitup('livezilla/livezilla.php') "><img src="http://www.handcrafteduk.com/livezilla/image.php?id=01" width="160" height="40" border="0" alt="LiveZilla Live Help"></a></div>