English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi,

Please can you have a look at this URL:

http://www.dealzilla.co.uk/products/db000e6g9riz-sennheiser-cx300-ear-canal-headphones-black/

What I am wanting is that when the user clicks "View Offers" above the Buy new or Buy used section, i want it to expand the offers.

It works in Firefox but not IE7 and I dont have IE6 so if anyone with IE6 could test it that would be great.

When you click on the "View Offers" it calls a javascript function, where the passed parameter (div) is a string which represents the id of the div that contains the data to be expanded:

function show(div)
{
var element = document.getElementById(div);
element.style.display = "block";
document.location = '#'+div;
}

Can anyone suggest any reason why this isnt working in IE7 but it is in Firefox?

Thanks!

2007-05-02 23:09:23 · 3 answers · asked by dp 1 in Computers & Internet Programming & Design

3 answers

you're doing a show and go, the show works, but it doesn't go. Right?

document.location is cool for taking a look, but for setting the hash part you should use

document.location.hash = "#"+div

2007-05-03 06:48:47 · answer #1 · answered by jake cigar™ is retired 7 · 2 0

you may attempt utilising relational positioning as antagonistic to absolute. which ability you employ possibilities fairly of fastened sizes. you additionally can use an undemanding Javascript snippet to locate the internet browser while the consumer a lot the positioning. Then have it incorporate one css report for IE and yet another whether that's Firefox, and yet another for Safari, etc. Code: html physique