The problem is as soon as I put a doctype tag into the html, that stops working.
Without the doctype, it's good, so it's not the CSS. And the rest of the script works, so it's not that the script has been disallowed. :S
Could be the syntax? But I'm newish to scripting, so I'm not too sure. Lol...
...
<script src="script.js">
</script>
...
<span onload="spanText()" id="one"> </span>
...
And the script..
function spanText() {
document.getElementById('one').innerHTML="what ever here";
}
...
I tried the above.. No success :S
I've tried a few other ways to execute the same script..
Same result...
Works fine until I put a doctype in...
------
HTML
<link rel="stylesheet" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" media="print" />
And the Javascript
var w = window.screen.width;
var s =...
Hey. I've tried the following code.. No success...
...
<script src="script.js">
</script>
...
<span id="one"> </span>
...
And the script..
document.getElementById('one').innerHTML="what ever here";
...
rest of script here (Working fine)
Any solutions?
Thanks, ^^
Hey, I made a script for the page to adjust for different resolutions.. Works fine.. until I declair a DOCTYPE..
Here's the script..
var w = window.screen.width;
if(w >= 1280)
{
document.write('<link rel="stylesheet" type="text/css" href="css/layout1280.css" media="screen" />')...
Hello,
I'm new to JavaScripting, and can't get my scripts to work in internet explorer without a security message popping up.
How do I resolve this and stop the security from disallowing my page to show up?
Thanks in advance,
MattoThePotatto.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.