Again to u i changed the name of image from "aa.jpg" to "aa.jpeg" .but
nothing helped.
m again giving the final coding..

1)coding of html is
<html>
       <body onload="changeIt();">
               <head>
                       <script langauge="javascript">
                               function changeIt(){
                                       var width=50;
                                       var height=50;
                                       document.image.width=width
                                       document.image.height=height
                               }

                       </script>
                       <script langauge="javascript"
src="/var/www/external.js"/>
               </head>
               <img src="/home/administrator/Desktop/aa.jpeg" name="image"
onclick="changeeIt();">
       </body>
</html>


2)coding of .js file




var count=1;
function changeeIt(){
       if(count==2){
               var amrit1=50
               var pal=50
               document.image.width=amrit1
               document.image.height=pal
               count=1;
       }else{
               var width=500
               var height=500
               document.image.width=width
               document.image.height=height
               count=2;
       }
}

 i am unable to find the error .. please give the solution to these..













On Sun, Oct 10, 2010 at 10:59 AM, ionlupascu <[email protected]> wrote:

> On Oct 10, 5:03 pm, amritpal pathak <[email protected]> wrote:
> > On Sun, Oct 10, 2010 at 6:42 AM, ionlupascu <[email protected]>
> wrote:
> >
> > This is not working ,i follwed the same as it is... even now image is not
> > showing..
>
> change the image name from "aa.jpg" to "aa.jpeg".
>
> > i want to call function changeeIt() when image is clicked
> > Help
> > Thanx
>
> You should call different image name. e.g. "changeeIt()" on load and
> "changeeIt1()" on click. The alternative variant is to call the same
> function but set parameter to know when is load and when is click.
>
> In the end, your question is not related by v8 specific.
>
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
>

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to