| |
| |
| |
|
Page: 1 2 3 4 5 6
Comments:
<JoeDash> <TD background="<script language="javascript">document.write(bg);</script>image.gif"> </TD> how can i get that to work, it doesnt seem to work within a td tag <ht[food]> STOP USING document.write <ht311> elementref.style.backgroundImage <JoeDash> hows that work? <JoeDash> my var bg is a path to the image <ht311> learn html dom and css <JoeDash> how about some js <JoeDash> instead <ht311> what i type there is js <ht311> http://www.w3schools.com/htmldom/default.asp <ChrisC35> var navMenu2 = document.getElementById("nav").getElementsByTagName("li"); is working for IE but not for FF. can anyone tell me what it should be for FF? <savagephp> What's the easiest way to display the current year with JavaScript? <ht311> (new Date()).getYear() <ht311> ChrisC35: that code should work. check the console <savagephp> Thanks ht311 <ChrisC35> ht311 my console says: <ChrisC35> Warning: ***ignment to undeclared variable navStuffSource File: http://localhost/nav.jsLine: 1 <ChrisC35> and that line 1 is: navStuff = function() { <ChrisC35> its at www.erindolman.com/test.html <ht311> there is no error <ChrisC35> i fixed it already <ChrisC35> but it still doesnt work in FF <ChrisC35> FF doesn't seemt to read anything past line 1 <ChrisC35> i put a msgbox in line 2 doesnt appear <ChrisC35> er an alert <ht311> if (window.attachEvent) window.attachEvent("onload", navStuff); <ht311> missing the else <ChrisC35> I replaced that entire crappy line with: window.onload=navStuff; and it works now
Return to
#javascript or Go to some related
logs:
#php #linux #chatzone #php #php #linux site:www.quotesdb.info rotards
#linux kiku pornstars #chatzone
|
|