Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. MattoThePotatto

    .innerHTML problem...

    Cool, thanks tsuji ^^
  2. MattoThePotatto

    Problem with DTD

    Sorry - No stylesheet loads when there is a doctype tag.
  3. MattoThePotatto

    .innerHTML problem...

    Thanks ^^ Worked, :) Can I call more than one function at a time with onload? <body onload="firstfunction()" onload="secondfunction()">
  4. MattoThePotatto

    Problem with DTD

    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...
  5. MattoThePotatto

    .innerHTML problem...

    ... <script src="script.js"> </script> ... <span onload="spanText()" id="one">&nbsp;</span> ... And the script.. function spanText() { document.getElementById('one').innerHTML="what ever here"; } ... I tried the above.. No success :S
  6. MattoThePotatto

    Problem with DTD

    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 =...
  7. MattoThePotatto

    .innerHTML problem...

    Hey. I've tried the following code.. No success... ... <script src="script.js"> </script> ... <span id="one">&nbsp;</span> ... And the script.. document.getElementById('one').innerHTML="what ever here"; ... rest of script here (Working fine) Any solutions? Thanks, ^^
  8. MattoThePotatto

    Problem with DTD

    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" />')...
  9. MattoThePotatto

    Internet explorer security..

    Thanks, I found the problem. Missed out the <![C[DATA at the start of my script :S Lol. Ty for all the help :)
  10. MattoThePotatto

    Internet explorer security..

    Cool , thanks Foamcow.:) Are there any free web servers that I can use to see if this is the problem? TY again , :]
  11. MattoThePotatto

    Internet explorer security..

    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.

Part and Inventory Search

Back
Top