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 Chris Miller 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. jcphua

    Workaround for Opera 7 and document.styleSheets[...?

    Wondering whether anybody knows a workaround for Opera 7 to be able to reference CSS files via JavaScript. eg. IE5+: alert(document.styleSheets); alert(document.styleSheets[0]); alert(document.styleSheets[0].rules); alert(document.styleSheets[0].rules[0])...
  2. jcphua

    Javascript reference to CSS item returns null?

    hmmm hmmm... And it seems I *didn't* answer my question after all. : I do believe I have to elaborate my predicament to everybody else, as well as myself:-- When a page loads, the CSS is correctly referenced like it should when the page is generated by the Browser. If you try to reference the...
  3. jcphua

    Javascript reference to CSS item returns null?

    hmm... Seems I didn't write the code properly, and it also seems I had the answer all along. : But in any case, thanks for your efforts HellTel. First of all for eg3, I wrongly stated the wrong attribute to output-- color instead of backgroundColor. Basically the main issue though is that you...
  4. jcphua

    Javascript reference to CSS item returns null?

    Here's a simple example of the problem I have: <html> <head> <title></title> <style> div#eg1 { background-color: red; } </style> <link href=&quot;./eg3.css&quot; rel=&quot;STYLESHEET&quot;></link> <!-- div#eg3 { background-color: orange; } --> </head> <body> <div id=&quot;eg1&quot;>1...
  5. jcphua

    onChange event

    Try 'onPropertyChange'. This handler will fire immediately upon modification of the tag to which it has been defined. This is probably only IE-only. Haven't bothered testing this in Nutscr... I mean Netscape.

Part and Inventory Search

Back
Top