HighDots Forums  

SwapImage - image does not always display

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss SwapImage - image does not always display in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
zjt
 
Posts: n/a

Default SwapImage - image does not always display - 06-15-2004 , 03:02 AM






Hope you can help. This code was written for me but I can correct if you offer
any solution. This problem appears to be intermittent & I get complaints from
various users & can recreate myself.

See page http://rentals.puertopollensa.com/property.php?prpID=boquer When
user clicks on thumbnail both larger image & caption should appear. Sometimes
the image space resizes but the image does not appear, or nothing happens or
the image appears but a 2nd click is required to get the caption. Yesterday I
recreated on another PC & we recreated the problem if you clicked very quickly.
If you click slowly & hold the mouse down (or even right-click) both image &
caption appear. It's as if it needs time to complete the function.

Extract of code: ;<a href="javascript:;" onClick="ChangeCaption('Master
bedroom');"
onMouseDown="MM_swapImage('mainpic','','http://rentals.puertopollensa.com/client
s/images/boquer/boquer-4.jpg',1)">
<img
src='http://rentals.puertopollensa.com/clients/images/boquer/boquer-4.jpg'
width='27' height='40' border='0' name='image5' id='image5' alt='Master
bedroom' />
</a>

Thank you.



Reply With Quote
  #2  
Old   
two can's
 
Posts: n/a

Default Re: SwapImage - image does not always display - 07-18-2004 , 06:38 AM






Hi yea,
I had the same problem before, I resolved it by adding the "Return False
Fix" extension form http://www.projectseven.com/extensions/index.htm

i would not use onmousedown, i would use onclick

http://www.projectseven.com/products/prodtools/powertoys/powertoys_retfalse.htm
they have "Return False Fix" as part of a commercial extension but you dont
need it just get the free one, have a read as to how to apply it from the
link above. as I say I had the same problem you had but used this to fix it.

also maybe you would consider when placing your images inside a layer, not
to put the image inside the layer, what I would do in this case is use the
dreamweaver "Set text of Layer" and place the url of the image in there.
that means the images will not load with the page but when and if a link to
show the image is used. other wise your page can end up heavy having to load
all your graphics.

I hope you understand me, lol I am not the best at explaing myself.

lol regards

twocan's






"zjt" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hope you can help. This code was written for me but I can correct if you
offer
any solution. This problem appears to be intermittent & I get complaints
from
various users & can recreate myself.

See page http://rentals.puertopollensa.com/property.php?prpID=boquer
When
user clicks on thumbnail both larger image & caption should appear.
Sometimes
the image space resizes but the image does not appear, or nothing happens
or
the image appears but a 2nd click is required to get the caption.
Yesterday I
recreated on another PC & we recreated the problem if you clicked very
quickly.
If you click slowly & hold the mouse down (or even right-click) both image
&
caption appear. It's as if it needs time to complete the function.

Extract of code: ;<a href="javascript:;" onClick="ChangeCaption('Master
bedroom');"

onMouseDown="MM_swapImage('mainpic','','http://rentals.puertopollensa.com/cl
ient
Quote:
s/images/boquer/boquer-4.jpg',1)"
img
src='http://rentals.puertopollensa.com/clients/images/boquer/boquer-4.jpg'
width='27' height='40' border='0' name='image5' id='image5' alt='Master
bedroom' /
/a

Thank you.





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.