-
PLEASE HELP : <t:animatemotion> failure
Hi,
I am trying to generate some DHTML on the fly. If I copy the HTML generated
and paste it in the document then the code works fine, however if I generate
the code and replace the innerHTML of a <DIV> then the code fails to execute.
I would like to get an image to move accross the screen. Here is the code
that I am trying to gen.
<WebMethod> Public GetImg() as string
sRet = sRet & "<IMG begin=""0"" end=""5"" restart=""always"" id=""imgItem""
class=""time"" style=""LEFT: 200px; POSITION: absolute; TOP: 200px"" src=""images/workflow_workitem_animate.gif"">"
sRet = sRet & "<t:animatemotion onstart=""alert('Start')"" onend=""document.all.item('imgItem').outerHTML=''""
targetElement=""imgItem"" to=""1,800"" dur=""60"" fill=""hold"" restart=""always""></t:animatemotion>"
GetImg = sRet
end Function
<script language="Javascript">
function DrawImage(){
divImageContainer.innerHTML = GetImg();
}
</script>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks