Twango Posted February 7, 2010 Share Posted February 7, 2010 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 More sharing options...
jeffman Posted February 7, 2010 Share Posted February 7, 2010 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 More sharing options...
Twango Posted February 7, 2010 Author Share Posted February 7, 2010 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 More sharing options...
Synook Posted February 7, 2010 Share Posted February 7, 2010 Chrome has the Webkit Inspector (Ctrl + Shift + J) that shows (among other things) JavaScript debugging information. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.