Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Position divs onclick not working in IE

Status
Not open for further replies.

travisbrown

Technical User
Dec 31, 2001
1,016
Anyone have an idea why the two buttons on this page work in FF and Safari, but not IE/PC? (The VIP and Guest List buttons). I'm stymied. Thought it might be a z-index thing, but everything looks proper.


Thanks.
 
If you give the image a "position" style of "relative" and a "z-index" style of "1", does that help?

Incidentally, why not use proper anchors instead of forcing people to have JavaScript enabled to use your site? That's just really bad practice, and does nothing for SEO.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
I agree with BillyRay,
Also, you should not rely on people's email client to send an email. Its bad practice, and if its not present, or not configured, no email is sent.

Also this is more of a Javascript question, since you are using Javascript to perform the actions for your buttons. So you might want to ask there:
forum216.

but again as BillyRay pointed out, why not use real anchors.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thanks guys.

it was late and I'd missed a z-index on one of the images. Popped out obvious this morning. Not sure why it working in FF & Safari if that was the case. Resolved now.

I first had it with an imagemap, then the client/designer wanted the background to scale independently from the text, then found you couldn't layer imagemaps. So I then used anchors, and when that didn't work, using positioned divs to mimic imagemaps. Since I should have been able to target the positioned anchors and divs the same way and couldn't, I didn't switch it back.

I'm using mailto because that was the spec. from the client. He didn't want to pay to have another form built, nor provided layout for one.

I didn't post in the javascript forum because I knew it wasn't a javascript problem.

Cheers.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top