<embed
 id="test"
 src="http://*.***.**********.com/images/****_*****/********/*************.swf?gsiUrl=www&amp;version=103&amp;quality=low&amp;location=forum"
 width="200"
 height="100"
 allowScriptAccess="always"
 play="true"
 wmode="window"
 loop="true"
 quality="medium"
 flashVars="userEnvironmentId=2962041"
 type="application/x-shockwave-flash"
 class="forum-flash-sigs"
 pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>

i want to change the value with a button

<input
 type="button"
 class="button"
 value="tank number"
 onclick="load1()"
 id="jtn"/>

<input
 type="button"
 class="button"
 value="tank number"
 onclick="load2()"
 id="jtn"/>


<script type="text/javascript">
function load1() {document.getElementById('test')userEnvironmentId=.value=37656; }

function load2() {document.getElementById('test')userEnvironmentId=.value=311656; }
</script>

i know its not right because i tryed it and many other way i just cant seem to get it right

any AND ALL help is great :$

*go's to look in solved threads*
ill check back soon

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.