Not at all, just copy everything in blue into a blank html page, pop it on your server and hit it with the following url querystring appended to the end ?imgsrc=horse.jpg&imgwidth=100&imgheight=50
</body>
</html> [/tt]
--------------------
End Sample Code
A fairly simple example, (hey it's not yet 9am here) but it should get the ball rolling. All I've done is grabbed the location.href object and used the JavaScript string manipulation functions to get the values I'm after. You would probably also want to put a bit of validation in there to check, firstly for the existence of the querystring, but also that the values provided were valid (numeric for the height & width etc.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.