473,765 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

detect the background color of a webpage or stylesheet

Sam
Hi all

I have a web page that allows user to referenced a stylesheet on my local
network. Is there a way to detect the background color of this webpage? If I
know the stylesheet that was used to set the background of my webpage, is
there an easy way to know the property set for the
"BACKGROUND-COLOR" of the body block

Regards,

Sam
Mar 21 '06 #1
2 1589
On the server? No. You would have to parse the stylesheet and discover
that yourself.

"Sam" <as****@yahoo.c om> wrote in message
news:OS******** ******@TK2MSFTN GP11.phx.gbl...
Hi all

I have a web page that allows user to referenced a stylesheet on my local
network. Is there a way to detect the background color of this webpage? If
I know the stylesheet that was used to set the background of my webpage,
is there an easy way to know the property set for the
"BACKGROUND-COLOR" of the body block

Regards,

Sam

Mar 21 '06 #2
Sam
I was thinking of that too but thought there might be an easy way out.
Anyway, thanks for the suggestion Peter

Regards,
Sam

"Peter Rilling" <pe***@nospam.r illing.net> wrote in message
news:OW******** ******@TK2MSFTN GP12.phx.gbl...
On the server? No. You would have to parse the stylesheet and discover
that yourself.

"Sam" <as****@yahoo.c om> wrote in message
news:OS******** ******@TK2MSFTN GP11.phx.gbl...
Hi all

I have a web page that allows user to referenced a stylesheet on my local
network. Is there a way to detect the background color of this webpage?
If I know the stylesheet that was used to set the background of my
webpage, is there an easy way to know the property set for the
"BACKGROUND-COLOR" of the body block

Regards,

Sam


Mar 21 '06 #3

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

Similar topics

25
12943
by: Neal | last post by:
According to the CSS lint at http://htmlhelp.org/tools/csscheck/, "The shorthand background property is more widely supported than background-color." Can anyone point me to, or provide, information on what browsers have difficulty with the non-shortcut methods of setting background properties?
2
4416
by: Dave | last post by:
Hi, if I have a body colour (white) specified in an external css sheet, what should I do in an individual webpage that is to have a background-image, i.e. override the attribute 'white' set in the style sheet? Without having other attributes stated in body being forgotten by browsers. Do I have to link that page to a separate but nearly identical css sheet just for itself with only that 'background' difference? Thanks in advance,
3
5529
by: Vam | last post by:
Hi, My program makes an HTML report which needs to be easily printable. On this report is a table, and one of the columns in the table needs to express a color. I've done this by setting the background of the cells in that column to their colors (which differ from row to row), but those background colors don't print unless a certain option is set in IE, which is apparently off by default. The way we've figured around this is to add a...
6
2489
by: Stephen Cook | last post by:
Having worked through the problems around enabling the document function using an XmlUrlResolver I started work on building a useful class to hide the intricacies. Trying to generalise the process I've hit a snag. How do I resolve multiple external references? The transform method on a stylesheet only takes one resolver, not an array Stephen
7
5129
by: Nilesh | last post by:
I am using background-image attribute in a CSS file and linking the CSS file to aspx page. But strangly, background-image attribute is not working for relative URL. e.g. If I apply following css ..navbar-background { background-image: url(images/menubar.gif); } the image is not appearing on the page. It seems that IE is picking
2
2863
by: bissatch | last post by:
Hi, I am running a w3c CSS validation check on a site in development. I have many errors saying that my CSS is not valid because I have not defined the background-color but instead left it default transparent. Why does it require that every CSS defined element have their background-color defined? Also, when I set styles in the following way:
2
1610
mar2195
by: mar2195 | last post by:
Is it possible to use Javascript to detect which stylesheet is currently being used in a page? ... a script to detect the HREF value in the <link> tag which is located in the <HEAD> of the page. IMPORTANT: I need to place this javascript "detect" after the <BODY> tag! (= cannot place this script in the <HEAD>) EXAMPLE: <html>
3
5180
by: 2good2b | last post by:
Is there a way to change the background color dynamically, when the color is defined at a CSS stylesheet? (tried document.bgcolor and this.style.background-color) Thanks
4
1538
by: devphylosoff | last post by:
hi folks I am looking for a tool (script, plugin, code, ...) which can generate background image for webpage look at background on http://vtorrent.info/ page or on the Vista webpage. I want to create this in fly - only give two colours and expect result which will be created by function.
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9951
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7378
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5421
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.