drop down menu |
drop down menu |
tudsy |
Aug 15 2016, 07:41 PM
Post
#1
|
Advanced Member Group: Members Posts: 246 Joined: 30-September 14 Member No.: 21,611 |
)Hi
I am still having problems in trying to come up with a drop down menu. I have attached the full code and the resulting output (screenshot). The main problem is that I am not generating the options in the drop down menu. Can anyone help? Thanks. Attached thumbnail(s) Attached File(s) code.txt ( 5.36k ) Number of downloads: 983 |
CharlesEF |
Sep 21 2016, 05:53 AM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
This line of code is still wrong:
CODE <img src= personpath id='PersonImage' width='450' height='450'> Actually, there are 2 problems. Problem 1: there needs to be quotes around the 'src' attribute. Problem 2: the javascript variable 'personpath' will not get converted to the value of the variable. In fact, I'm not even sure you can put javascript code inside HTML tag attributes, like you can with PHP. The best way to write this line is: CODE <img src='' id='PersonImage' width='450' height='450'> And let this line of code set the 'src' attribute: CODE document.getElementById('PersonImage').src = personpath; which is found in the setVar() function.As for the sound problem, I can't help with that at this time. The computer I'm using has no sound (the motherboard sound system died). I may buy a add-in sound card or maybe even a new computer. But, for now I have no sound. |
Lo-Fi Version | Time is now: 14th June 2024 - 08:54 AM |