Hi, does anyone know how to make a alert pop up open for only certain browsers, using javascript...specifically IE 7 or older
14 1514
I usually just do : - if(document.all){alert('your alert text here')}
but it depends on what browser specifically....if you just need it for ie in general, the above will work
acoder 16,027
Recognized Expert Moderator MVP
IE is not the only browser which supports document.all.
OP: why do you need an alert for a specific browser? Perhaps if you explain your problem, we could suggest an alternative.
I designed a site and went overboard with transparent div tags, at the time I wasn't aware of IE (pre 7) limitations
here's the link
http://www.friendsofinstapstudycenter.net/INSTAP-NEW/
acoder 16,027
Recognized Expert Moderator MVP
Instead of an alert, add a filter for IE to allow it to display transparent PNG images.
hmm gave the ie filter a shot. i noticed a slight size change with some images but wouldn't work for me.
acoder 16,027
Recognized Expert Moderator MVP
Try using the IE7 library to bring IE5-6 up to date.
awesome it worked! one problem though. it works only when I have actual images living in a file,
eg.http://www.friendsofinstapstudycenter.net/INSTAP-NEW/TEST.html
but what do I do if the images are being called from div tags in my css stylsheet?
acoder 16,027
Recognized Expert Moderator MVP
Could you give an example?
acoder....I'm just curious, I've only been developing js for about year, and I've tested my systems on ie 5-7 ff 2&3, and the newest safari....of those only the ie versions support document.all....what other browsers do?
ANSWER:::
after I posted this I went and looked around a bit like I should have done BEFORE I asked;)
Explorer 4+, Opera 6+, iCab, Ice, Omniweb 4.2-
ALL support document.all
acoder, you have been a great help. I renamed all my images to implement the IE -7 filter. Works great! My only question is, is it common for links to lose functionality if the are in a div that embeds transparent images that have been corrected by the applied java script filter, or did I do something incorrectly?
regards
acoder 16,027
Recognized Expert Moderator MVP
That shouldn't happen. Does this affect all browsers or only IE6?
acoder 16,027
Recognized Expert Moderator MVP
Is the page where you've made the changes the one you linked to earlier?
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: optimistx |
last post by:
How to write a function f(x) or f('x') so that it produces the same output
as a call to alert-function:
var x='abc';
alert('x='+x);
In testing one needs to write similar alert() calls...
|
by: schieco |
last post by:
The following code always prints the debug lines inside the
conditional if statement before and after the alert statement when the
session has timed out, but the alert and redirect only appear/work...
|
by: hugo2 |
last post by:
Most of these characters are not on the standard keyboard.
Here's a successful contrivance, with comments & cautions,
a little page that works in IE6.
<HTML><HEAD><SCRIPT TYPE="text/javascript">...
|
by: Alistair Saldanha |
last post by:
I'm looking for the event that is fired by Internet Explorer to an "alert":
<SCRIPT>
Alert("You already have a session open")
</SCRIPT>
The event would be webBrowser.Document.????
Much...
|
by: Stephanie |
last post by:
I have a problem with an Alert that is supposed to invoke a Job. Here
are some details:
Windows Server 2000
SQL Server Standard Ed. ver. 8.00.818 (Sp3)
Alert: SQL Server performance condition...
| |
by: umdsasha |
last post by:
So, basically, I need to detect whether an alert window was thrown. I
can't find where it's thrown from but I need to disable a button only
if there were no alert windows thrown. Any ideas?
...
|
by: joe |
last post by:
Hi,
I defined:
<div id="abc">
</div>
in my .html file, after an Ajax query my weberserver sends:
<script language="JavaScript">
alert('Hello World!");
</script>
|
by: vjsv2007 |
last post by:
Can you help to make one alert with all details?
<script type="text/javascript">
<!--
function validate_form ( )
{
valid = true;
|
by: Jeremy J Starcher |
last post by:
While reading c.l.j, I've noticed that some people prefer and indeed even
recommend the use of "window.alert()" over "alert()".
I can't find any technical reason to make this distinction, and...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |