473,396 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

IE expression and background-image

Hi,

help needed :-)

I'm generating one or more tables on a web-page (via ASP).
If a table is above 200 pixels in height a background-logo should be
displayed. The height is required to avoid cropping the logo.

I've tried using something like this:

<style>

table.info
{
background-image: expression(this.height > 200 ? "url('img/logo.gif')"
: "none");
}
</style>

....but Internet Explorer seems to either ignore it, mess up existing
formatting or throw an exception.

BTW - this is for an intranet only - so it can be IE-specific.

Thanks in advance.

Ryan
Mar 6 '06 #1
4 4376
Ryan Dahl wrote:

I've tried using something like this:
<style>
table.info
{
background-image: expression(this.height > 200 ? "url('img/logo.gif')"
: "none");
}
</style>

...but Internet Explorer seems to either ignore it, mess up existing
formatting or throw an exception.

It is completely invalid CSS.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Mar 7 '06 #2
On Mon, 06 Mar 2006 16:57:04 -0700, Jim Moe
<jm***************@sohnen-moe.com> wrote:
Ryan Dahl wrote:

I've tried using something like this:
<style>
table.info
{
background-image: expression(this.height > 200 ? "url('img/logo.gif')"
: "none");
}
</style>

...but Internet Explorer seems to either ignore it, mess up existing
formatting or throw an exception.

It is completely invalid CSS.


You're not really being helpful. You're also wrong about it being
'completely invalid CSS' since the reference is Internet Explorer as
pointed out.

Regards
Ryan
Mar 7 '06 #3
On Tue, 07 Mar 2006 00:46:11 +0100, Ryan Dahl
<ju***********@hotmail.com> wrote:

Problem solved....

FYI I'm using these lines in my css:

background-image: URL('logo.gif');
background-image: expression( this.clientHeight < 200 ? "none":"");

Regards
Ryan
Mar 7 '06 #4
Ryan Dahl wrote:

It is completely invalid CSS.


You're not really being helpful. You're also wrong about it being
'completely invalid CSS' since the reference is Internet Explorer as
pointed out.

It is invalid CSS. There is no such programming capability in the CSS
specification.
Since this was an IE-specific question, asking in an IE-specific ng
would have been more productive.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Mar 7 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
by: Paul Rubin | last post by:
OK, I want to scan a file for lines matching a certain regexp. I'd like to use an assignment expression, like for line in file: if (g := re.match(pat, line)): croggle(g.group(1)) Since...
1
by: Terry | last post by:
I have a form which displays data from both the Student Details table and the Exam Details table. The Name (Text Box) control is from the Student Details table and the Withdrawn (Check Box)...
2
by: Dan Schumm | last post by:
I'm relatively new to regular expressions and was looking for some help on a problem that I need to solve. Basically, given an HTML string, I need to highlight certain words within the text of the...
2
by: Dot net work | last post by:
Hello. Say I have a .net textbox that uses a .net regularexpressionvalidator. If the regular expression fails, is it possible to launch a small client side javascript function to do something,...
0
by: seamlyne | last post by:
Need to parse through our code files and find every instance of other files referenced, looking for included files, images, etc. The expression I'm using is ...
2
by: Regardt | last post by:
Hi all I need do the following based on Boolean Algebra ex 1. (M271/M272/M651)+(450/965)/M642/M646 All possible result M271 + 450 M271 + 965 M272 + 450 M272 + 965
5
by: Avi Kak | last post by:
Folks, Does regular expression processing in Python allow for executable code to be embedded inside a regular expression? For example, in Perl the following two statements $regex =...
3
by: hello2008 | last post by:
Hi, I donot have much knowledge of R.Exp. In my web page I am required to validate numeric textboxes allowing signed/unsigned integer/float numbers and then compare between them. I need the...
1
by: Coll | last post by:
I'm receiving this message when running a query... This expression is typed incorrectly or is too complex to be evaluated. For example, a numeric expression may contain too many complicated...
2
by: Jean Pierre Daviau | last post by:
Hi, How can I write this correctly? a:hover { expression(selfTimer()); } <a style=" expression(selfTimer()) " href= .....></a>
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
agi2029
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.