Skip to main content
Inspiring
November 4, 2008
Question

javascript behaviors are behaving funny

  • November 4, 2008
  • 2 replies
  • 359 views
the following webpage:
http://www.canchair.com/new_web_product_detail.asp?ProductID=499&ProductFamily=5&ProductFamilySub=

contains the following code:

<div style="position:absolute;width:250;height:250;" >
<div id="Layer4" name="layer4" style="position:absolute; width:250px; height:250px; z-index:1; top:3px; left:3px; visibility: hidden;margin:0;" >
<a href="javascript:;" onclick="MM_openBrWindow('/large_image.asp?url_image=<%Response.Write(images("url_img"))%>','imagewindow','width=600,height=600')"> <img src="/misc_images/click_to_enlarge.gif" border="0" />
</a>
</div>
<td align="center" height="252" valign="middle" ><a href="javascript:;" onmouseover="MM_showHideLayers('Layer4','','show')" onmouseout="MM_showHideLayers('Layer4','','hide')"><img src="imagescript.asp?path=<%=images("url_img")%>&width=250" alt="" name="largeimage" border="0" id="largeimage" ></a>
</td>
</div>

as you will see, mousing over the large image will display a hidden layer. Clicking on the image contained in this newly appeared layer, opens a browser window.

...but the behaviors behave funny with the image blinking on and off and with the browser window not opening when clicking only once.
This topic has been closed for replies.

2 replies

aonefunAuthor
Inspiring
November 5, 2008
I get the logic and will seek an alternative.

Thanks again for all your input!!!
Inspiring
November 4, 2008
This behavior is typically what you see when you have a mouseover event that
triggers a hidden object to be shown, which masks the trigger, which fires a
mouseout event, which hides the layer, which then unmasks the trigger
allowing another mouseover to file, etc.

Give your elements a border so you can see where they are. Do you see the
trigger being masked?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"aonefun" <webforumsuser@macromedia.com> wrote in message
news:geqlqf$jml$1@forums.macromedia.com...
> the following webpage:
>
> http://www.canchair.com/new_web_product_detail.asp?ProductID=499&ProductFamily=5
> &ProductFamilySub=
>
> contains the following code:
>
> <div style="position:absolute;width:250;height:250;" >
> <div id="Layer4" name="layer4" style="position:absolute; width:250px;
> height:250px; z-index:1; top:3px; left:3px; visibility: hidden;margin:0;"
> >
> <a href="javascript:;"
> onclick="MM_openBrWindow('/large_image.asp?url_image=<%Response.Write(images("ur
> l_img"))%>','imagewindow','width=600,height=600')"> <img
> src="/misc_images/click_to_enlarge.gif" border="0" />
> </a>
> </div>
> <td align="center" height="252" valign="middle" ><a href="javascript:;"
> onmouseover="MM_showHideLayers('Layer4','','show')"
> onmouseout="MM_showHideLayers('Layer4','','hide')"><img
> src="imagescript.asp?path=<%=images("url_img")%>&width=250" alt=""
> name="largeimage" border="0" id="largeimage" ></a>
> </td>
> </div>
>
> as you will see, mousing over the large image will display a hidden layer.
> Clicking on the image contained in this newly appeared layer, opens a
> browser
> window.
>
> ...but the behaviors behave funny with the image blinking on and off and
> with
> the browser window not opening when clicking only once.
>