Jump to content

Question


Twango

Recommended Posts

Why isnt this making it update on the select menu?<!--Scrollbar AKA Marquee Generator--><script type="text/javascript">dirRep(tpart,choice){document.getElementById(tpart).innerHTML=choice;}</script><select onchange="dirRep(dir,value)"><option value="left">Left</option><option value="right">Right</option><option value="up">Up</option><option value="down">Down</option></select><!--Marquee Below--><p>Your scroller script:</p><b id="start"><marquee direction="</b><b id="dir">left</b><b id="other">" amount="</b><b id="amount">10</b><b id="other">"</b>

Link to comment
Share on other sites

No function keyword before the word dirRep ? And if you're going to send an id value as a function argument, it needs to be in quotation marks. Otherwise dir looks like a variable.Don't you test in Firefox? The Error Console should show you these kinds of errors.

Link to comment
Share on other sites

No function keyword before the word dirRep ? And if you're going to send an id value as a function argument, it needs to be in quotation marks. Otherwise dir looks like a variable.Don't you test in Firefox? The Error Console should show you these kinds of errors.
No, i use Google Chrome. But that's a good idea. And thanks :)
Link to comment
Share on other sites

Chrome has the Webkit Inspector (Ctrl + Shift + J) that shows (among other things) JavaScript debugging information.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...