Can't get this to work!!! (in IE)

They have: 173 posts

Joined: Feb 2005

I have been trying for too long to figure out what I am doing "wrong"... I just can't make this work in IE.

http://dev.triexa.com/test.php

When you click to select a star, up to that star are supposed to be red, but in IE once you move your mouse they seem to "go behind".

Anyone have any ideas? Works in Firefox, IE 7 (I believe?)...

SonicMailer Pro - Professional mailing list manager & award-winning email marketing software
Download a FREE 30-day trial today!
Use coupon savemoreon4 and save 10%!

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

I know you asked before, but I still can't help as I don't have IE.

Though it's functional in Konqueror, there is one message:
Error: http://dev.triexa.com/js/prototype.js: ReferenceError: Can't find variable: HTMLFormElement'

Quote: in IE once you move your mouse they seem to "go behind".

Can you reproduce this behaviour in isolation? If you can, then try explicitly setting z-index values from the JS rather than CSS.

They have: 36 posts

Joined: Sep 2006

i have ie and when i drag over them they go bright and when i click they all go red upto the star i clicked but as you say they go back to the original state once i move my mouse away....very odd

They have: 173 posts

Joined: Feb 2005

internetking;211078 wrote: i have ie and when i drag over them they go bright and when i click they all go red upto the star i clicked but as you say they go back to the original state once i move my mouse away....very odd

but it works in other browsers just fine

so I gotta find out what to fix or how to hack it to work...

SonicMailer Pro - Professional mailing list manager & award-winning email marketing software
Download a FREE 30-day trial today!
Use coupon savemoreon4 and save 10%!

He has: 113 posts

Joined: Jul 2005

This is most likley related to one of the numerous CSS box model flaws in IE6. The script works fine in IE7.
Take a look at your css and ensure you are assigning z-index attributes to the star layers, and ensure the 'red' stars have higher visibitility to the others.

You may need to set the star positioning to relative in order to utilise the z-index property.

I havn't had time to take an indepth look at your code. Nice script tho. Smiling

They have: 173 posts

Joined: Feb 2005

I've ended up using something else, thanks though

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.