Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

OK, I give up! I need HTML help!

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
displacedtexan Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jun-14-04 04:24 PM
Original message
OK, I give up! I need HTML help!
I want to add the "cost of war" counter to my blog, but I can't reduce the size of the font. I managed to reduce the size of the window, but the font inside the window was huge!

The code is at:
http://costofwar.com/

I need it reduced to
the size of this
column. Is that
possible?
Printer Friendly | Permalink |  | Top
Catholic Sensation Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jun-14-04 04:27 PM
Response to Original message
1. apparently it's a remotely hosted javascript
which means it's going by the html/javascript code from where it is being hosted.
Printer Friendly | Permalink |  | Top
 
displacedtexan Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jun-14-04 04:31 PM
Response to Reply #1
2. I was afraid of that.
No way to get to the source code, is there?

Thanks, anyway!
Printer Friendly | Permalink |  | Top
 
WannaJumpMyScooter Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jun-14-04 04:46 PM
Response to Reply #1
4. no, he has it a different size on another page, I think his
Edited on Mon Jun-14-04 04:48 PM by WannaJumpMyScooter
style sheet defines what size text gets used.

see

http://costofwar.com/embedinstr.html
Printer Friendly | Permalink |  | Top
 
WannaJumpMyScooter Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jun-14-04 04:45 PM
Response to Original message
3. like this?
<center>
<!-- include cost of war javascript; this runs the counter -->
<script language="JavaScript" src="http://costofwar.com/costofwar.js"></script>
<!-- the elements 'row' and 'alt' will be changed by the javascript to contain
the correct numbers -->
<div><b>Cost of the War in Iraq</b></div>
<div id="raw">(JavaScript Error)</div>
<div><a href="http://costofwar.com" target="_top">To see more details, click here.</a></div>
<!-- this line triggers the counter to start -->
<script language="JavaScript">
inc_totals_at_rate(100);
</script>
</center>
Printer Friendly | Permalink |  | Top
 
WannaJumpMyScooter Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jun-14-04 04:48 PM
Response to Reply #3
5. ..
<script language="JavaScript" src="costofwar.js"></script>
<!-- You must have the 'raw' and 'alt' divisions or the costofwar.js code
won't be able to set the numbers. The other divisions here, 'costs' and
the one containing our link, aren't necessary though we would obviously
appreciate it if you retain the link. -->
<div><b>Cost of the War in Iraq</b></div>
<div id="raw">(JavaScript Error)</div>
<div><a href="http://costofwar.com" target="_top">To see more details, click here.</a></div>
<script language="JavaScript">
inc_totals_at_rate (750);
</script>
Printer Friendly | Permalink |  | Top
 
orthogonal Donating Member (424 posts) Send PM | Profile | Ignore Mon Jun-14-04 04:51 PM
Response to Original message
6. Stylesheet
Edited on Mon Jun-14-04 04:52 PM by orthogonal
The locality name and the cost are both in divs with id = raw.:

<div id="raw">(JavaScript Error)</div>

Trying adding a stylesheet that styles raw elements the way you want them.

Here's an embedded stylesheet you can put into the <head> element of your page:

<style>
.raw, #raw {
font-size: small;
}
</style>

Or you could download the remote javascript (using curl or wget, for instance), and modify that, but that might be a violation of copyright.
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Fri Apr 19th 2024, 08:31 PM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC