Hi everyone,

i have a problem with the example "Other Demonstrations" / "- Image rollovers"

The shown example is very easy, but if i try to create a second image object with the same image path like the first image object, it doesn't work.
I only changed the downsrc with the oversrc for the second image object but it doesn't work.
Am i doing something wrong or is this a bug? And if it is a bug, how can i fix it?

============================================================
<html>
<head>
<title>DynAPI - Image Rollover</title>
<script language="_javascript_" src="">
<script language="_javascript_">
        dynapi.library.setPath('../src/');
        dynapi.library.include('dynapi.functions.Image');
</script>
<script language="_javascript_">
        var p =         {
                        oversrc:'images/eicon3.gif',
                        downsrc:'images/eicon2.gif'
                }

        var p2 = {
                        oversrc:'images/eicon2.gif',
                        downsrc:'images/eicon3.gif'
                }

        var myImage = dynapi.functions.getImage('images/eicon1.gif',32,32,p);
        var myImage2 = dynapi.functions.getImage('images/eicon1.gif',32,32,p2);
</script>
</head>
<body>
Press move your mouse over the image below and click on it<br><br>
<script>
        document.write(myImage.getHTML());
        document.write(myImage2.getHTML());
</script>

</body>
</html>

============================================================

Reply via email to