Need help? Check out our Support site, then


html in sidebar

  1. I understand and respect the reason that you do not allow javascript.

    I would like to add a counter that keeps track of the cost of the war in Iraq. The page where you get the code:

    http://nationalpriorities.org/index.php?option=com_content&task=view&id=298&Itemid=298

    claims that there are 2 ways. The first is javascript and the other, "older" way is an html link to the counter on their page. This is the code:

    <img src="http://www.nationalpriorities.org//mambots/editors/jce/jscripts/tiny_mce/libraries/images/spacer.gif" alt="src:'http://costofwar.com/embed.html'" width="600" height="100" class="" />

    Is it possible to put this onto the sidebar in a widget. (Which widget?)

    My wordpress sites are; http://paxchristiflorida.org and http://paxchristipalmbeach.wordpress.com

    Thank you

  2. just copy and paste the code into a text widget

  3. Dashboard -> Presentation -> Widgets. They're building blocks for your blog's sidebar. Add in a text widget. The second code will work as javascripts are removed form all user input as a security risk.

  4. Here's an image of a text widget and instructions that may help you http://faq.wordpress.com/2006/12/24/using-the-text-widget/

  5. they must both have javascript in them.

    Using the "older" code, I get nothing.

    Using the newer code, I get a "Javascript" error.

  6. The first code is as you say a javascript which is stripped by wordpress.com software to reserve security on this wp-MU shared blogging platform. The second code is for an inline frame which apparently is conflicting with the AJAX javascript for this domain. We cannot use inline frames on our blogs here so, IMO the bottom line is that neither code will work on a wordpress.com blog.

    What you can do is provide a cost of the war in Iraq link in your sidebar and people can use the link to check the cost.

  7. They do include a mention of a MySpace counter being announced later on. That would probably work once they did it.

    What they need to do is kick out a static image file. Take them all of two seconds I'll bet. Surprised that they don't do so. Have it update like once an hour.

Topic Closed

This topic has been closed to new replies.

About this Topic