By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,973 Members | 1,854 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,973 IT Pros & Developers. It's quick & easy.

Help with swap picture

P: 1
Hi to every one,

I would like to ask if any one knows how to resize the picture with javascript. I have used the swap img within my page, and I would like the second img to be different size than the SRC img. The SRC image which I used is 30x30; the second picture which i inserted as a link is 250x250. The problem is that when I click on the small image, the swapped image (the linked image is 250x250) will be automatically adjusted to 30 pixels. Is there any way I could change that.
Apr 3 '08 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
Remove any height/width restrictions, e.g. width and height attributes of the img tag.
Apr 3 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.