Home
Position: 主页>program>

Image manipulation

Time:2009-04-21 20:24soucre:未知 作者:www.popuc.net click:clicks
Image manipulationIs there a function in HTML or JAVASCRIPT that allows you to determine the size of an image, by having the user only input the image itself?And why does this code not flip the image 

  

Image manipulation

Is there a function in HTML or JAVASCRIPT that allows you to determine the size of an image, by having the user only input the image itself?

And why does this code not flip the image over the y axis:

Code:

for (var j=750;j=>0;j--)

<!--Setting up the loop to run as many times as the picture is wide //--> { document.write("<div style = 'left:" j "; top:200; width:1; height:71'>"); <!-- Create the inner div block to run from 750 pixels from the left to zero pixels from the left, to always start at 200 pixels from the top, have a width of 1 pixel, and a height of 71 pixels //--> document.write("<span style = 'left:" j "; top:0'>"); <!-- Start the span block, and this span block should take the picture that I put in here, and inside the div block, starting at the 750th pixel column, put the picture I have uploaded into this particular div; because the div is 1 pixel wide, I will only be able to see 1 pixel of the picture, due to the fact that I have in my css overflow is hidden //--> document.write("<img title='newpic1'src ='project2.jpg'/>"); <!-- This is essentially just uploading the picture into this div //--> document.write("</span></div>"); <!--Ending the span and the div tags //-->

Last edited by thenextbesthang (2006-11-27 00:01:38)

Offline

#2 2006-11-27 00:01:37

ubernostrum
Spangeamus igitur
From: Lawrence, KS
Registered: 2005-02-23
Posts: 2114
Website Expertise

Re: Image manipulation

Please don't take this the wrong way, but from the types of questions you ask here, I think you'd be far better served by finding one or two good books on HTML and JavaScript and reading them thoroughly -- if you never take the time to build up a solid base of knowledge of the technology, you'll be perpetually dependent on other to answer "how do I do X?" questions.



------line----------------------------
Recommend
Hottest