Forums / Developer / How to insert images using javascript / Comment40835
Trond Åge Kvalø
Friday 11 June 2004 5:23:40 am
OK, now I understand (I hope)
I presume that you have tested the page so you know it works when it is static, right.
Oh and by the way, when the function fnBuildTopMenu is called what parameter/argument do you pass? In other words what are the value of cIn? "about"?
Anyway I have two suggestions for you:
1. change the line var myImg = "/images/" + cIn; to var myImg = "news/images/" + cIn;
2. If that doesn't work remove the {literal} and {/literal} tags around your script and use "{ldelim}" instead of "{" and "{rdelim}" instead of "}" in your scripts.
best regardstrondåge
trondåge