On Thu, 10 Feb 2011 17:42:40 +0100, veiko herne <[email protected]> wrote:
> Thanks Erik
>
> Will try to use IMG then.
>
> Currently I have tried following
>
> Function ShowClip () {
>
> var img = document.getElementById ("clips");
> img.setAttribute('data',
> 'http://www.veikoherne.com/svg/noopera.JPG');
> img.setAttribute('type', 'image/jpeg');
The attribute to set for <img> is 'src', not 'data'.
> or
>
>
> img.data = newsImageData[currNewsImgIdx];
> img.type = newsImageData[currNewsImgIdx];
>
> }
> which will take my clips from an array without any luck. The data and
> type
> values inside object tag will stay empty.
Do you have two elements with the same 'id' in the document?
Cheers
/Erik
--
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed
------------------------------------
-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/