![]() Topic awaiting preservation: Typesetting Problems (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: USA |
![]() I am making a website for a homework assignment, and one of the things I wanted to do on it was to make my life easy and automatically convert certain constructs into their proper typeset equivalent (i.e. double primes into the proper double quotes, three periods into an ellipsis, two hypens into a dash, etc.). I wrote some code, and it ended up working flawlessly in Firefox, but failing horribly in MSIE 6 (the page doesn't display anything other than the body's background colod). Does anyone know why this might be? code: window.onload = function() {
|
Bipolar (III) Inmate From: London |
![]() Well off the cuff, it may be to do with how you've declared your onLoad function, sometimes you may eneed to put the window.onLoad call near the bottom of the page, ensuring that it's called after all the elements if refers to in it's function have already been loaded, or maybe put an onload attribute in your body tag. |
Paranoid (IV) Inmate From: USA |
![]() That doesn't work either, but at least it dies more gracefully -- the page remains unchanges as far as typesetting goes, but at least displays properly. If it cannot be solved, that will be a useable solution -- thanks |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() hmm.. code: <html>
|
Paranoid (IV) Inmate From: USA |
![]() Ok -- problem pinpointed. |
Paranoid (IV) Inmate From: USA |
![]() Ok, final form: easily extendable. If any of you feel the need to use it or expand upon it, feel free: code: var map = [
|