473,804 Members | 3,277 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

overriding font colors with... ?

3 New Member
hi, is it any possible to override exact font colors in someone elses website ? i want to override all color except black. so, doing it via firefox's color choices not working. it overrides black too.
Mar 8 '07 #1
4 2209
AricC
1,892 Recognized Expert Top Contributor
hi, is it any possible to override exact font colors in someone elses website ? i want to override all color except black. so, doing it via firefox's color choices not working. it overrides black too.
Post an example of the code I'm not really sure what you mean.
Mar 8 '07 #2
gorgoroth666
3 New Member
Post an example of the code I'm not really sure what you mean.
it is a php site with three frames left-top-center. it has its own .css which is goes like this:

<HEAD>
<link rel="stylesheet " href="whatever. css">
</HEAD>

and it contains this:

Expand|Select|Wrap|Line Numbers
  1. <!--
  2. body {scrollbar-3dlight-color:#222288; 
  3. scrollbar-arrow-color:#222288;
  4. scrollbar-base-color:#000000;
  5. scrollbar-darkshadow-color:#222288;
  6. scrollbar-face-color:#000000;
  7. scrollbar-highlight-color:#000000;
  8. scrollbar-shadow-color:#000000;
  9. color: #9999ff; }
  10. p,td {  font-family: Verdana, Arial, Helvetica; font-size: 8pt; }
  11. .forum {  font-family: Verdana, Arial, Helvetica; font-size: 8pt; }
  12. .blue {  color: #9999ff;}
  13. .bold {  color: #22ee22;}
  14. .gold { font-family: "Trebuchet MS", tecton,tekton,verdana,arial; color: #e8e296; font-weight: bold; font-size: 12pt; text-decoration: none }
  15. .silver { font-family: "Trebuchet MS", tecton,tekton,verdana,arial; color: #c4c2d6; font-weight: bold; font-size: 12pt; text-decoration: none }
  16. .bronze { font-family: "Trebuchet MS", tecton,tekton,verdana,arial; color: #c8b266; font-weight: bold; font-size: 12pt; text-decoration: none }
  17. h3 {  font-family: Arial, Helvetica; color: #9999ff; font-size: 12pt; font-style: normal; font-weight: bold}
  18. .body {  font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #00cc00; text-indent: 80px; clip:     rect(   ); margin-top: 0px; margin-bottom: 0px}
  19. .pre {  font-family: courier; font-size: 10pt; color: #6666ff; }
  20. .date {  font-family: "Courier New", Courier, mono; font-size: 10pt; color: #00cc00; text-indent: 0pt; margin-top: 10px; margin-bottom: 0px}
  21. li { font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #9999ff; clip: rect( ); margin-top: 0px; margin-bottom: 0px }
  22. .small { font-family: Verdana, Arial, Helvetica; font-size: 7pt; }
  23. .intro { font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #00cc00 ; line-height: 20pt;}
  24. h4 { font-family: Verdana, Arial, Helvetica; color: #9999ff; font-size: 10pt; font-style: normal; font-weight: bold }
  25. h2 { font-family: Arial, Helvetica; color: #9999ff; font-size: 14pt; font-style: normal; font-weight: bold }
  26. ul { font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #9999ff; clip: rect( ); margin-top: 0px; margin-bottom: 0px }
  27. dt { font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #9999ff; clip: rect( ); margin-top: 0px; margin-bottom: 0px }
  28. dd { font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #9999ff; clip: rect( ); margin-top: 0px; margin-bottom: 0px }
  29. dl { font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #9999ff; clip: rect( ); margin-top: 0px; margin-bottom: 0px }
  30. .mini { font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #003300; }
  31. .script { font-family: Courier, Verdana, Arial, Helvetica; font-size: 6pt; color: #9999ff; }
  32. input { background-color: #ccccff; border-color: #333399; color: #000000; font-family: Verdana, Arial, Helvetica; font-size: 8pt;}
  33. .checkbox { background-color: #000000; border-none; width: 12; height: 12; }
  34. select { background-color: #ccccff; border-color: #333399; color: #000000; font-family: Verdana, Arial, Helvetica; font-size: 8pt;}
  35. textarea { background-color: #ccccff; border-color: #333399; color: #000000; font-family: Verdana, Arial, Helvetica; font-size: 8pt;}
  36. .readonly { background-color: #000000; color: #ccccff; border-color: #000000; }
  37. .semireadonly { background-color: #000000; color: #ccccff; border-color: #0000cc; }
  38. .highlight { color: #ccccff; }
  39. .hilight { color: #eeeeff; }
  40. .menu { color: #6666ff; }
  41. .tablehead { background-color: #000066; }
  42. .tablemark { background-color: #000066; }
  43. .tablehighlight { background-color: #9999ff; }
  44. .tablecolorborder1 { border-color: #000066; }
  45. .tablecolorborder2 { border-color: #666666; }
  46. .tablecolorbg { background-color: #000033; }
  47. .report { font-family: Courier; color: black; background-color: rgb(30%,30%,30%); }
  48. .p {  font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #6666ff;}
  49. a {  color: #9999ff;}
  50. -->
also when i look at the source i see this:

Expand|Select|Wrap|Line Numbers
  1.         if (parseInt(Math.random()*2)) {
  2.                         toright = '<font color="'+geel+'">&gt;</font>';
  3.                         toleft = '&lt;';
  4.                 } else {
  5.                         toright = '<font color="'+geel+'">&raquo;</font>';
  6.                         toleft = '&laquo;';
  7.                 }
  8.                 fakeagain1 = '<p><font color="black"></font><a href="censored.php?ch_id='+chid+'&opps='+opps+'&pageid='+fid+'"><span id="a1">'+toright+' explanatory text '+toright+'</span></a></p>';
  9.                 fakeagain2 = '<p><font color="black">---</font><a href="censored.php?ch_id='+chid+'&opps='+opps+'&pageid='+fid+'"><span id="a2">'+toright+' explanatory text '+toright+'</span></a></p>';
  10.                 fightagain1 = '<p><font color="black">--</font><a href="censored.php?ch_id='+chid+'&opps='+opps+'&pageid='+nid+'"><span id="a1">'+toright+' explanatory text '+toright+'</span></a>';
  11.                 fightagain2 = '<p><font color="black">----</font><a href="censored.php?ch_id='+chid+'&opps='+opps+'&pageid='+nid+'"><span id="a2">'+toright+' explanatory text '+toright+'</span></a>';
  12.                 grijs = '#' + '0' + (parseInt(Math.random()*16)).toString(16) + '0' + (parseInt(Math.random()*16)).toString(16) + '0' + (parseInt(Math.random()*16)).toString(16);
  13.                 //geel = '#' + (parseInt(Math.random()*16)+188).toString(16) + (parseInt(Math.random()*16)+240).toString(16) + (parseInt(Math.random()*16)+86).toString(16);
  14.                 //groen = '#' + '0' + (parseInt(Math.random()*16)).toString(16) + (parseInt(Math.random()*16)+240).toString(16) + (parseInt(Math.random()*16)+86).toString(16);
  15.         groen = geel;
  16.                 backlink = '<p><font color="black">----</font><a href="censored_censor.php?page='+chlvl+'&opps='+opps+'"><font color="'+groen+'"><span id="bl">&lt; back to somewhere &lt;</span></font></a></p>';
i was hoping to open the whole website in a big big iframe which contains my own .css which overrides everything as i like.
Mar 8 '07 #3
AricC
1,892 Recognized Expert Top Contributor
it is a php site with three frames left-top-center. it has its own .css which is goes like this:

<HEAD>
<link rel="stylesheet " href="whatever. css">
</HEAD>

and it contains this:

Expand|Select|Wrap|Line Numbers
  1. <!--
  2. body {scrollbar-3dlight-color:#222288; 
  3. scrollbar-arrow-color:#222288;
  4. scrollbar-base-color:#000000;
  5. scrollbar-darkshadow-color:#222288;
  6. scrollbar-face-color:#000000;
  7. scrollbar-highlight-color:#000000;
  8. scrollbar-shadow-color:#000000;
  9. color: #9999ff; }
  10. p,td {  font-family: Verdana, Arial, Helvetica; font-size: 8pt; }
  11. .forum {  font-family: Verdana, Arial, Helvetica; font-size: 8pt; }
  12. .blue {  color: #9999ff;}
  13. .bold {  color: #22ee22;}
  14. .gold { font-family: "Trebuchet MS", tecton,tekton,verdana,arial; color: #e8e296; font-weight: bold; font-size: 12pt; text-decoration: none }
  15. .silver { font-family: "Trebuchet MS", tecton,tekton,verdana,arial; color: #c4c2d6; font-weight: bold; font-size: 12pt; text-decoration: none }
  16. .bronze { font-family: "Trebuchet MS", tecton,tekton,verdana,arial; color: #c8b266; font-weight: bold; font-size: 12pt; text-decoration: none }
  17. h3 {  font-family: Arial, Helvetica; color: #9999ff; font-size: 12pt; font-style: normal; font-weight: bold}
  18. .body {  font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #00cc00; text-indent: 80px; clip:     rect(   ); margin-top: 0px; margin-bottom: 0px}
  19. .pre {  font-family: courier; font-size: 10pt; color: #6666ff; }
  20. .date {  font-family: "Courier New", Courier, mono; font-size: 10pt; color: #00cc00; text-indent: 0pt; margin-top: 10px; margin-bottom: 0px}
  21. li { font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #9999ff; clip: rect( ); margin-top: 0px; margin-bottom: 0px }
  22. .small { font-family: Verdana, Arial, Helvetica; font-size: 7pt; }
  23. .intro { font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #00cc00 ; line-height: 20pt;}
  24. h4 { font-family: Verdana, Arial, Helvetica; color: #9999ff; font-size: 10pt; font-style: normal; font-weight: bold }
  25. h2 { font-family: Arial, Helvetica; color: #9999ff; font-size: 14pt; font-style: normal; font-weight: bold }
  26. ul { font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #9999ff; clip: rect( ); margin-top: 0px; margin-bottom: 0px }
  27. dt { font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #9999ff; clip: rect( ); margin-top: 0px; margin-bottom: 0px }
  28. dd { font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #9999ff; clip: rect( ); margin-top: 0px; margin-bottom: 0px }
  29. dl { font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #9999ff; clip: rect( ); margin-top: 0px; margin-bottom: 0px }
  30. .mini { font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #003300; }
  31. .script { font-family: Courier, Verdana, Arial, Helvetica; font-size: 6pt; color: #9999ff; }
  32. input { background-color: #ccccff; border-color: #333399; color: #000000; font-family: Verdana, Arial, Helvetica; font-size: 8pt;}
  33. .checkbox { background-color: #000000; border-none; width: 12; height: 12; }
  34. select { background-color: #ccccff; border-color: #333399; color: #000000; font-family: Verdana, Arial, Helvetica; font-size: 8pt;}
  35. textarea { background-color: #ccccff; border-color: #333399; color: #000000; font-family: Verdana, Arial, Helvetica; font-size: 8pt;}
  36. .readonly { background-color: #000000; color: #ccccff; border-color: #000000; }
  37. .semireadonly { background-color: #000000; color: #ccccff; border-color: #0000cc; }
  38. .highlight { color: #ccccff; }
  39. .hilight { color: #eeeeff; }
  40. .menu { color: #6666ff; }
  41. .tablehead { background-color: #000066; }
  42. .tablemark { background-color: #000066; }
  43. .tablehighlight { background-color: #9999ff; }
  44. .tablecolorborder1 { border-color: #000066; }
  45. .tablecolorborder2 { border-color: #666666; }
  46. .tablecolorbg { background-color: #000033; }
  47. .report { font-family: Courier; color: black; background-color: rgb(30%,30%,30%); }
  48. .p {  font-family: Verdana, Arial, Helvetica; font-size: 8pt; color: #6666ff;}
  49. a {  color: #9999ff;}
  50. -->
also when i look at the source i see this:

Expand|Select|Wrap|Line Numbers
  1.         if (parseInt(Math.random()*2)) {
  2.                         toright = '<font color="'+geel+'">&gt;</font>';
  3.                         toleft = '&lt;';
  4.                 } else {
  5.                         toright = '<font color="'+geel+'">&raquo;</font>';
  6.                         toleft = '&laquo;';
  7.                 }
  8.                 fakeagain1 = '<p><font color="black"></font><a href="censored.php?ch_id='+chid+'&opps='+opps+'&pageid='+fid+'"><span id="a1">'+toright+' explanatory text '+toright+'</span></a></p>';
  9.                 fakeagain2 = '<p><font color="black">---</font><a href="censored.php?ch_id='+chid+'&opps='+opps+'&pageid='+fid+'"><span id="a2">'+toright+' explanatory text '+toright+'</span></a></p>';
  10.                 fightagain1 = '<p><font color="black">--</font><a href="censored.php?ch_id='+chid+'&opps='+opps+'&pageid='+nid+'"><span id="a1">'+toright+' explanatory text '+toright+'</span></a>';
  11.                 fightagain2 = '<p><font color="black">----</font><a href="censored.php?ch_id='+chid+'&opps='+opps+'&pageid='+nid+'"><span id="a2">'+toright+' explanatory text '+toright+'</span></a>';
  12.                 grijs = '#' + '0' + (parseInt(Math.random()*16)).toString(16) + '0' + (parseInt(Math.random()*16)).toString(16) + '0' + (parseInt(Math.random()*16)).toString(16);
  13.                 //geel = '#' + (parseInt(Math.random()*16)+188).toString(16) + (parseInt(Math.random()*16)+240).toString(16) + (parseInt(Math.random()*16)+86).toString(16);
  14.                 //groen = '#' + '0' + (parseInt(Math.random()*16)).toString(16) + (parseInt(Math.random()*16)+240).toString(16) + (parseInt(Math.random()*16)+86).toString(16);
  15.         groen = geel;
  16.                 backlink = '<p><font color="black">----</font><a href="censored_censor.php?page='+chlvl+'&opps='+opps+'"><font color="'+groen+'"><span id="bl">&lt; back to somewhere &lt;</span></font></a></p>';
i was hoping to open the whole website in a big big iframe which contains my own .css which overrides everything as i like.
After rereading, I don't think you will be able to override someone elses website unless you copy that code to your own site. You would need access to their site to change the CSS for the page.
Mar 8 '07 #4
gorgoroth666
3 New Member
After rereading, I don't think you will be able to override someone elses website unless you copy that code to your own site. You would need access to their site to change the CSS for the page.
but firefox doing it easily... it should be possible. well let me alter my question then, how can i see how firefox doing it ?
Mar 8 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

133
6620
by: Philipp Lenssen | last post by:
Why is there no standardized and well-working way for a web-page to offer the font for download/embed it, in order to be displayed on the page? No matter what you think of the preferred font of a designer, many web-sites offer an image of the text instead to "force" this font -- which certainly can't be the solution (it's a bit of a hassle to maintain and create).
2
63337
by: Mr.Baha | last post by:
Hello, I have a situation where I am appending text to a multi-line (rich)textbox in a C# form. Now depending on which event does the appendtext, i want to distinguish the lines in the textbox by having them written in different font colors. So my multi-line textbox will contain lines of various colored text. I tried setting the textboxe's ForeColor property, but quickly realized that the fore color will change every line within the...
10
30640
by: Darrell Wesley | last post by:
Where xlWs is an Excel.Worksheet and xlRG is an Excel.Range xlRG = xlWS.Cells(row, 7) xlRG.Font.Bold = True xlRG.Font.Color = 255 In VB6 you could just simply say xlRG.Font.Color = vbRed but in .net there is no constant vbRed and Color.Red gives an invalid format. Is there a set of enumerations of colors that will work here?
4
9582
by: JoelW | last post by:
Let's say you're programming in VB.NET, and you have: Dim str1 As String Dim str2 As String Dim str3 As String str1 = "I am red" str2 = "I am yellow" str3 = "I am dark green"
1
1988
by: iwdu15 | last post by:
hi, im trying to figure out how to get all the font and color selections of a richt text box. for instance we could have this: Red (formatted in red color and Arial font) Green (formatted in green color and Times new Roman font) Blue (formatted in blue color and Arial narrow font) so im trying to figure out how i can find the formatting for each one programmatically. like, i need to convert the rtf into HTML, which is easy if the...
1
2902
by: tshad | last post by:
I have a DataGrid where I want the text in the cells to be black. But I want the header to have a black background and white text. The problem is the settings in the DataGrid are not overriding the Css files (which is in a User Control). The Css file (in the .aspx file) has the following lines: td { font-family: Verdana, Arial, Helvetica, sans-serif;
3
2378
by: Dan Jacobson | last post by:
Let's say all one can do to override a document's link colors, <a href="FAQ.aspx"><font color="#0000ff">FAQ</font></a> is inject things like: <a href="FAQ.aspx"><span style="color:green"><font color="#0000ff">FAQ</font></span></a> only at the <A></Aedges (as I have done above setting WWWOFFLE's anchor-cached-begin value.) Which, depending on DOCTYPE, is not strong enough to override the most inner <fontwhen view in firefox. Nor does...
2
3636
by: kheitmann | last post by:
OK, so I have a blog. I downloaded the "theme" from somewhere and have edited a few areas to suit my needs. There are different font themes within the page theme. Long story short, my "Text Posts" are supposed to be in the font: Georgia, but they are showing up in "Times New Roman"...blah! I can't find anything wrong in the code, but who am I trying to fool? I know nothing about this stuff. The code is below. The parts that I *think*...
1
2209
by: Alexio | last post by:
I have two similar function that need to be combined. Individually they both work however combined one over rides the other. The code is attached below and an attachment is included for data information. I have attached a screen shot of data <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta...
0
9708
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
9161
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7623
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
6857
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
5527
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
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
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.