Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

using css background-image: url with web server

0 views
Skip to first unread message

h

unread,
Mar 3, 2004, 9:14:22 AM3/3/04
to
Hi, can you help:
I'm using css, and in it I have an image as background
(background-image: url). The css is used by html returned from web
server to the client browser. When page is first loaded background
image is displayed, but if in javascript I update the css class of
some tag to have a class which have background image, this image is
not always displayed. However I found that if, after setting class
value, I open another window (such as alert msg) and then close it,
then the image in the original page is displayed.
Notes: I tried using external css file or internal style tag, and also
I tried specifing the url value as relative or as absolute.
Thank you, H.

Little Dave

unread,
Mar 3, 2004, 9:27:17 AM3/3/04
to

Hmm.. you *could* try setting your javascript to refresh the page after
the line that sets the css class.

window.location.reload();

Maybe..

I seem to remember having this problem a while ago and thats how I fixed it.

Little Dave
--
http://www.daveholloway.co.uk
Everyone feel free to add me to your instant messengers:
MSN: daveho...@spamcop.net, YAHOO: daveho...@yahoo.com, ICQ: 104452444

0 new messages