| |
| |
| |
|
Page: 1 2 3 4 5 6
Comments:
<0> <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 <1> STOP USING document.write <2> elementref.style.backgroundImage <0> hows that work? <0> my var bg is a path to the image <2> learn html dom and css <0> how about some js <0> instead <2> what i type there is js <2> http://www.w3schools.com/htmldom/default.asp <3> 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? <4> What's the easiest way to display the current year with JavaScript? <2> (new Date()).getYear() <2> ChrisC35: that code should work. check the console <4> Thanks ht311 <3> ht311 my console says:
<3> Warning: ***ignment to undeclared variable navStuffSource File: http://localhost/nav.jsLine: 1 <3> and that line 1 is: navStuff = function() { <3> its at www.erindolman.com/test.html <2> there is no error <3> i fixed it already <3> but it still doesnt work in FF <3> FF doesn't seemt to read anything past line 1 <3> i put a msgbox in line 2 doesnt appear <3> er an alert <2> if (window.attachEvent) window.attachEvent("onload", navStuff); <2> missing the else <3> 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
|
|