Converting JavaScript to HTML

Discussion in 'HTML & Website Design' started by Desty, Aug 11, 2007.

  1. #1
    I'm using the feed footer plugin to add banners to the end of my RSS. As is, the plugin can only use HTML code, not JavaScript. Does anyone know of a way to translate JavaScript to HTML?

    Thanks!
    Shawn
     
    Desty, Aug 11, 2007 IP
  2. killerj

    killerj Active Member

    Messages:
    765
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    95
    #2
    HTML amd javascript do not work as replacements . If it did , why would anyone use javascript ? You could look at alternative web programming languages like php or jsp but not HTML . You cannot write programs using HTML and therefore your task would be impossible to accomplish using pure HTML .
     
    killerj, Aug 11, 2007 IP
    Desty likes this.
  3. sogastic

    sogastic Peon

    Messages:
    202
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can't convert Javascript to HTML. You can use javascript on a html page as importing with <script src="your .js address" type="text/javascript"></script>

    OR

    Inserting javascript to html.
    <script type="text/javascript">
    <!--
    Your javascript code.
    // -->
    </script>

    Both will give same results.
     
    sogastic, Aug 12, 2007 IP
    Desty likes this.
  4. Desty

    Desty Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks guys. I had did a google search but couldn't find it either. Was hoping that I could put AdSense Referal code into the footer of my RSS.
     
    Desty, Aug 12, 2007 IP
  5. venam

    venam Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You could try that:

    Free Cut & Paste HTML to JavaScript converter

    javascriptkit.com/script/script2/jstohtml.shtml
    Code (markup):
     
    venam, Jan 15, 2008 IP