Can't resize image on Firefox2.3

pith phunsanit <[email protected]> Fri, 8 Jun 2007 23:16:51 -0800
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Message-ID <[email protected]>
Sorry! my English so bad.
 
 
1 ) i write photogallery as filestript on window
if click on trumbinal photo have preview on mainpage
and if image height more 450 px 
it must display height 450px
 
i test on ie6 and opera 9.21
but don't work in firefox 2.3 
Why?
 
/* view.html */
<script language="javascript">function display(img){ document.getElementById('display').innerHTML="<img id='imgx' src='"+img.src+"' />"; var image = document.getElementById('imgx'); if(image.height > 450){  image.height = 450; }}</script><table width="100%" border="1">  <tr>    <td height="460" valign="top"><div id="display">ddddd</div></td>  </tr>  <tr>    <td><iframe width="100%" height="100" frameborder="1" src="directory.xml"></iframe></td>  </tr>
</table>
 
/* directory.xml */
<?xml version="1.0"?> <?xml-stylesheet href="album.xsl" type="text/xsl" ?> <album>  <albumid>14</albumid>  <title><![CDATA[วันที่ 07/06/2007]]></title>  <detail><![CDATA[dgfdsh]]></detail>  <items>   <item src="110040.jpg" />   <item src="152t.jpg" />   <item src="6791.jpg" />   <item src="animals_144.jpg" />   <item src="Desert Bliss.jpg" />  </items></album>
 
/* filmstript.xsl */ 
 
<?xml version="1.0" encoding="windows-874"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/">  <html xmlns="http://www.w3.org/1999/xhtml">   <head>    <title>Photogallery <xsl:value-of select="directory/title"/></title>     <script src="view.js"></script>    </head>   <body>    <xsl:for-each select="directory/items/item">     <img width="100" height="100" onclick="parent.display(this);">      <xsl:attribute name="src">       <xsl:value-of select="@src"/>      </xsl:attribute>     </img>    </xsl:for-each>   </body>  </html> </xsl:template></xsl:stylesheet>
 
2) I can use local script in xsl file?
_________________________________________________________________
Did you know you can now customize your mailbox with different colours to suit your mood with the new Windows Live Hotmail?
http://get.live.com/mail/features

_______________________________________________
dev-tech-xslt mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xslt