diff options
author | Thomas BrĂ¼derli | 2007-08-03 11:19:24 +0000 |
---|---|---|
committer | Thomas BrĂ¼derli | 2007-08-03 11:19:24 +0000 |
commit | f89972bb4358b07924a164399163744b2a183c0f (patch) | |
tree | 43ed588a69d87ea267895fc52891f33e84016290 /itjs | |
parent | 0fd884340965af54986bd77f1f1e38bebec3b3db (diff) | |
download | itools-f89972bb4358b07924a164399163744b2a183c0f.tar.gz itools-f89972bb4358b07924a164399163744b2a183c0f.tar.bz2 itools-f89972bb4358b07924a164399163744b2a183c0f.zip |
Add fallback to document.write for Opera (7)
Diffstat (limited to 'itjs')
-rw-r--r-- | itjs/boot.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/itjs/boot.js b/itjs/boot.js index 73ca86b..2c1943f 100644 --- a/itjs/boot.js +++ b/itjs/boot.js @@ -146,7 +146,9 @@ function it_boot(file, isretry) var doc = document; var dom = doc && (dom = doc.getElementById('it_boot_dom')); // HTML has been rendered - if (dom) + if (window.opera) + document.write('<sc'+'ript type="text/javascript" src="'+it_boot_addparam(file, 'init=1')+'"><\/sc'+'ript>'); + else if (dom) { var tag = doc.createElement("script"); tag.src = it_boot_addparam(file, 'init=1'); |