Author |
Topic  |
|
sb
Novice

2 Posts |
Posted - 15 Mar 2004 : 06:08:14
|
Dynamic HTML Editor is great. What drew me to it is the ability to easily place pictures overlapping each other. My question is: I want to have a picture that changes based on a button or text link that is clicked. I've created an event "OnClick, SetImage, Picture1, Picture2" that puts Picture2 in the Picture1 picture tool. The problem is that the Picture2 gets scaled and stretched be the size of Picture1. That results in a distorted image. How can I prevent the images from being distorted? I've tried playing with the Proportional Property, but it doesn't seem to help on this case. Thanks.
Cheers. SB |
Edited by - on |
|
s.dav
Site Admin
    
Italy
3364 Posts |
Posted - 15 Mar 2004 : 08:44:52
|
There is no way to do this. You may add border to the first picture so it have the same dimensions of the second... |
Regards, Davide |
Edited by - on |
 |
|
n/a
deleted
    
492 Posts |
Posted - 15 Mar 2004 : 10:44:05
|
Welcome SB! |
Ciao Ciao De.  |
Edited by - on |
 |
|
sb
Novice

2 Posts |
Posted - 16 Mar 2004 : 03:52:05
|
quote: Originally posted by s.dav
There is no way to do this. You may add border to the first picture so it have the same dimensions of the second...
Thanks, Davide. I suspected as much[2 H:.(]. Do you know how to accomplish this outside of Dynamic HTML Editor, for example in HTML or javascript?
Hopefully version 2.0 will provide this capability. |
Edited by - on |
 |
|
s.dav
Site Admin
    
Italy
3364 Posts |
Posted - 16 Mar 2004 : 08:44:04
|
Very simple... You can create a simple page with 2 images and set a rollover effect from the first to the second one. Preview the page and click the 'view source' from the menu of explorer. Then simply remove the dimension from the 'div' and 'img' tag.
|
Regards, Davide |
Edited by - on |
 |
|
madzib
Practical
 
Netherlands
36 Posts |
Posted - 13 Aug 2004 : 23:17:50
|
Is there not a way to give no hight and width in the properties from picture1. It always works fine for me when I used this way without Dynamic HTML Editor. Picture2 then uses his own dimensions. Sorry forgot to tell you picture1 was in a table. |
Edited by - madzib on 13 Aug 2004 23:22:23 |
 |
|
s.dav
Site Admin
    
Italy
3364 Posts |
Posted - 14 Aug 2004 : 11:37:34
|
The method you have described functions very good but this version of Dynamic HTML Editor gives at images it's own dimension. If you have to change some images in the screen you can simply hide and show them using events ;-)
|
Regards, Davide |
 |
|
madzib
Practical
 
Netherlands
36 Posts |
Posted - 14 Aug 2004 : 22:28:37
|
Ok, that's so easy I didn't consider it al the same. I just was looking for a way to keep on using my old trick. Thanks for your help.
Will the other way be possible in Dynamic HTML Editor 2? |
 |
|
s.dav
Site Admin
    
Italy
3364 Posts |
Posted - 16 Aug 2004 : 08:41:07
|
I have to do some tests first, then I can make it in the next version ;-) |
Regards, Davide |
 |
|
s.dav
Site Admin
    
Italy
3364 Posts |
Posted - 16 Aug 2004 : 17:42:43
|
I've done some tests that I don't remember. I've locked the dimension of the picture tool when swapping images because it works only for Internet Explorer. By obmitting dimensions in other browsers (Opera, NS4) the pictures are strected even so.
|
Regards, Davide |
 |
|
madzib
Practical
 
Netherlands
36 Posts |
Posted - 19 Aug 2004 : 16:49:26
|
Thanks for looking in to it. |
 |
|
|
Topic  |
|