MyBB Community Forums

Full Version: Javascript Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need a little help regarding Javascript.
I want something where you have three options:
(Type) (Color) (Text)
[-----] [-----] [-----]
The "[-----]" stands for a drop down box.
I've come up with something like this:
<script type="text/javascript">
<!--
document.images.pictures.src ('http://www.example.com/example/' + crDemo.type + '/' + crDemo.color + '/' + crDemo.color + '-' + crDemo.text + '.png');
// -->
</script> 
As the images are in the format:
/example/[type]/[color]/[color]-[text].png
Any help? I know I have a lot wrong.
Thanks!
Just what I was looking for!