Author Topic: JavaScript help  (Read 1209 times)

Canadian Lover

  • VIP
  • Member
  • ***
  • Posts: 713
  • Kudos: 122
JavaScript help
« on: 4 May 2003, 22:16 »
OK, you guys, I'm now having problems in JavaScript. What I'm trying to do, is to write a table into a .js file (using the proper formatting, of corce) so I can just plug it in to all my pages. I load a page that calls up the script, and it dosn't load.

Here's the JavaScript code:
Code: [Select]
and here's the HTML
Code: [Select]

flap

  • Member
  • **
  • Posts: 1,268
  • Kudos: 137
JavaScript help
« Reply #1 on: 4 May 2003, 22:29 »
You need to escape the " characters:

Code: [Select]

should be

Code: [Select]
"While envisaging the destruction of imperialism, it is necessary to identify its head, which is none other than the United States of America." - Ernesto Che Guevara

http://counterpunch.org
http://globalresearch.ca


Canadian Lover

  • VIP
  • Member
  • ***
  • Posts: 713
  • Kudos: 122
JavaScript help
« Reply #2 on: 5 May 2003, 06:24 »
tahnks, it works now.

raptor

  • Member
  • **
  • Posts: 231
  • Kudos: 56
    • http://calyptos.com
JavaScript help
« Reply #3 on: 6 May 2003, 03:56 »
quote:
document.write("<table bgcolor='#ffffff' align='left' bordor='0'>");


border is spelt wrong!
"in a world without fences, who needs gates?"