Jump to content

[SOLVED] IE Nightmares....!


ionik

Recommended Posts

OK I'm quite new to the javascript world...even though Im a expert php programmer...o well anyways...what this does is just switches out which div tags are visible and hidden.

 

This has been tested and works in FF but IE is junk as we know and doesnt like it.... is there something wrong with this? This is a simple crude way of doing it :)

 

<script type="text/javascript">
						/*
							This will simply show and hide the boxes for upcoming recent and match stats
						*/
						function matchi9panel(id)
						{
							document.getElementById(id).style.display = 'block';

							document.getElementById('link1').className = 'left_content_chooser_button_down';
							document.getElementById('link2').className = 'left_content_chooser_button_down';
							document.getElementById('link3').className = 'left_content_chooser_button_down';

							if(document.getElementById('1').style.display = 'block' && id != '1')
							{
								document.getElementById('1').style.display = 'none';
							}

							if(document.getElementById('2').style.display = 'block' && id != '2')
							{
								document.getElementById('2').style.display = 'none';
							}

							if(document.getElementById('3').style.display = 'block' && id != '3')
							{
								document.getElementById('3').style.display = 'none';
							}

							document.getElementById('link' + id).className = 'left_content_chooser_button';
						}
						</script>

 

the error i get is could not get the display property....

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.