Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Picture Tool
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sb
Novice

2 Posts

Posted - 15 Mar 2004 :  06:08:14  Show Profile  Visit sb's Homepage  Reply with Quote
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  Show Profile  Visit s.dav's Homepage  Reply with Quote
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
Go to Top of Page

n/a
deleted

492 Posts

Posted - 15 Mar 2004 :  10:44:05  Show Profile  Reply with Quote
Welcome SB!

Ciao Ciao De.

Edited by - on
Go to Top of Page

sb
Novice

2 Posts

Posted - 16 Mar 2004 :  03:52:05  Show Profile  Visit sb's Homepage  Reply with Quote
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
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 16 Mar 2004 :  08:44:04  Show Profile  Visit s.dav's Homepage  Reply with Quote
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
Go to Top of Page

madzib
Practical

Netherlands
36 Posts

Posted - 13 Aug 2004 :  23:17:50  Show Profile  Visit madzib's Homepage  Reply with Quote
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
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 14 Aug 2004 :  11:37:34  Show Profile  Visit s.dav's Homepage  Reply with Quote
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
Go to Top of Page

madzib
Practical

Netherlands
36 Posts

Posted - 14 Aug 2004 :  22:28:37  Show Profile  Visit madzib's Homepage  Reply with Quote
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?
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 16 Aug 2004 :  08:41:07  Show Profile  Visit s.dav's Homepage  Reply with Quote
I have to do some tests first, then I can make it in the next version ;-)

Regards, Davide
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 16 Aug 2004 :  17:42:43  Show Profile  Visit s.dav's Homepage  Reply with Quote
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
Go to Top of Page

madzib
Practical

Netherlands
36 Posts

Posted - 19 Aug 2004 :  16:49:26  Show Profile  Visit madzib's Homepage  Reply with Quote
Thanks for looking in to it.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000