yasmin-choudhury / ie6-upgrade-warning

Automatically exported from code.google.com/p/ie6-upgrade-warning
0 stars 0 forks source link

Close option #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I like the script, is so cool but haven't got a CLOSE option to the layer :(

Original issue reported on code.google.com by emarts.mail on 28 Jun 2009 at 6:14

GoogleCodeExporter commented 9 years ago
I second that.

It should also be remembered if the user has clicked close (by cookies), so the 
box 
won't reappear.

BTW: this is a feature, not a defect.

Original comment by ralf...@gmail.com on 11 Mar 2010 at 8:04

GoogleCodeExporter commented 9 years ago
I also prefer that. Thank you.

Original comment by leoachin...@gmail.com on 16 Oct 2010 at 5:21

GoogleCodeExporter commented 9 years ago
It will be a great resource, but remember the user's preference is not a good 
option. Ie6 users need to be annoyed to upgrade their browsers. Let's kill ie6.

Original comment by pedro.alonso@conceitocriativo.com.br on 26 Oct 2010 at 11:27

GoogleCodeExporter commented 9 years ago
Without a close option, the script is unusable for us. We want to encourage IE6 
users to update, but can't afford to prevent them from accessing our site. 
Doing so will alienate our valued customers and cost us money.

Original comment by cory.may...@gmail.com on 13 Nov 2010 at 4:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
If somebody is intrested:
I added 3 features

1) If you want that there is a close button, open iewarning.js and set the 
variable "showCloseButton" to "true", if you want to hide it, set it to "false".

2) By default a sessioncookie gets set now that disables the iewarning. If you 
want that there is a cookie with an expire time of 365 days instead of the 
sessioncookie, set longHideCookie to "true", then the ie-user should not get 
the iewarning message again except the 365 days expire or he clears his cache.

3) I included a function that detects the browser language and changes the msg 
strings from english to the wished language. By default i included the german 
msg strings from the wiki, but you can include more if you just open the 
iewarning.js and look at the example code.
Important: use the unescape("string") function, if there are any special 
letters like ä,ö,ü,ß and so on in your message text.

The best thing is, that the implementation in you websites is as simple as 
before, you just might want to set one of the two variables i added at the top 
of the iewarning.js file.

I attached a .zip file with the modified version if anyone is intrested..

Original comment by benjamin...@gmail.com on 17 Mar 2011 at 2:15

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks bud! :D
@benjamin you rock!!

Original comment by alistair...@gmail.com on 26 Jul 2011 at 2:58