Hi There
I'm trying to get my SVG animated series to my Wordpress blog
(http://www.veikoherne.com/wonderries/) as they still work on Opera after more
than 5 years and need some Javascript help.
I put following code to header:
<script type="text/javascript"> if
(/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Opera/x.x or
Opera x.x (ignoring remaining decimal places) var newsImageData = [
{data: "http://www.veikoherne.com/svg/Skirt.svgz", type: "image/svg+xml"},
{data: "http://www.veikoherne.com/svg/BandName.svgz", type: "image/svg+xml"},
{data: "http://www.veikoherne.com/svg/Password.svgz", type:
"image/svg+xml"},{data: "http://www.veikoherne.com/svg/BigBrother.svgz", type:
"image/svg+xml"},{data: "http://www.veikoherne.com/svg/Overqualified.svgz",
type: "image/svg+xml"} ]; } else var newsImageData = [{data:
"http://www.veikoherne.com/svg/noopera.JPG", type: "image/jpg"}];var
currNewsImgIdx = 0; function UpdateNews () { var img =
document.getElementById ("image"); var imgContent =
document.getElementById ("imageContent"); img.data =
newsImageData[currNewsImgIdx]; imgContent.innerHTML =
newsImageData[currNewsImgIdx].data; }function NextNews () {
currNewsImgIdx = (currNewsImgIdx + 1) % newsImageData.length; UpdateNews
(); }function PrevNews () { currNewsImgIdx = (currNewsImgIdx +
newsImageData.length - 1) % newsImageData.length; UpdateNews (); }
function OnDocLoad () { UpdateNews (); } </script>
and calling them in table:
<table border="0" onload="OnDocLoad ()"><tr><td>
<div><!-- Facebook Badge START -->
......
<!-- Facebook Badge END -->
</div></td><td align="center">
<object id="image" data="" type="" width="240" height="320" /></td></tr></table>
But I do not get even noopera.JPG shown up!!!
How should I call those objects dynamically?
Veiko
------------------------------------
-----
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/