[Javascript] any one solve my flash background sound problem
suresh kumar
asureshkumar_1983 at yahoo.co.in
Sun Dec 3 09:41:49 CST 2006
Hi to all,
any one help me to solve my problem,i attached my code
<script language="javascript">
function a(ase) {
my_span.filters[0].apply();
tmp_obj=null;
if (my_span.hasChildNodes()) var tmp_obj = document.getElementById("oI");
if (ase==0) {
oImga=null;
oImga = document.createElement('img'); // Create dynamically object tag
oImga.setAttribute('id',"oI"); // Give id to it
oImga.src = "1163893952_WebLogo.gif";
oImga.style.width="300";
oImga.style.height="300";
my_span.appendChild(oImga);
if (tmp_obj!=null) my_span.removeChild(tmp_obj);
} else {
oImga=null;
oImga = document.createElement('EMBED'); // Create dynamically object tag
oImga.setAttribute('id',"oI"); // Give id to it
oImga.src = "1163901344_box_of_crayons_830.swf";
oImga.setAttribute('TYPE' , 'application/x-shockwave-flash');
oImga.style.width="300";
oImga.style.height="300";
my_span.appendChild(oImga);
if (tmp_obj!=null) my_span.removeChild(tmp_obj);
}
my_span.filters[0].play();
}
</script>
<body>
<div id=my_span style="FILTER: progid:DXImageTransform.Microsoft.Wheel(spokes=4),background-color:#FF6600; width:300; height:300">
</div>
<input type="button" name="show pic" value="show pic" onClick="a(0)">
<input type="button" name="asd" value="show flash" onClick="a(1)">
</body>
i am having two buttons "show pic" and "show flash".when i click 'show flash' button ,the flash will play with the background sound and then when i click "show pic" button,the flash will be replaced by the image with (wheel) transition ,but the previous flash background sound is still playing in the image.
i dont know where the problem araises,can any one help me to solve my problem,i am waiting for reply from u,if u want u can test the code by just replace flash and image file
A.suresh
---------------------------------
Find out what India is talking about on - Yahoo! Answers India
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20061203/496a2f5b/attachment.htm>
More information about the Javascript
mailing list