| Discussion: | Developer's Area |
| Topic: | JavaScript Question |
| Post a new topic to the Developers Discussion discussion |
| ||||||||
| Subject: | RE: JavaScript Question |
| Author: | mmckelve |
| Date: | Jun 2 2004 |
Your problem is not with the lines you sent in your message, it's slightly
further down in the code. Check lines 40 and 54:
display = display +pic+"<br>";
They should read:
display = display +pic;
That will solve your visual display problem. Also, I happened to notice lines
31-32 and 44-45:
You should probably replace lines 32 and 45
32: if (checkloop > 1){loopend = looper;}
45: if (checkloop > 2 ){loopend = (looper*2);}
with the following:
32: else {loopend = looper;}
45: else {loopend = (looper*2);}
You can Google if-else statements to find out more about them:
http://www.google.com/search?q=javascript +if-else
Good luck!
--Michael--
| |||||||
| Post a new topic to the Developers Discussion discussion | |||||||