473,386 Members | 1,698 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,386 software developers and data experts.

overriding font colors with... ?

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 2192
AricC
1,892 Expert 1GB
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
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 Expert 1GB
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
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
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...
2
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...
10
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...
4
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
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...
1
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...
3
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...
2
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"...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.