Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

javascript behaviors are behaving funny

Participant ,
Nov 04, 2008 Nov 04, 2008

Copy link to clipboard

Copied

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.
TOPICS
Server side applications

Views

332
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 04, 2008 Nov 04, 2008

Copy link to clipboard

Copied

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.
>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 04, 2008 Nov 04, 2008

Copy link to clipboard

Copied

LATEST
I get the logic and will seek an alternative.

Thanks again for all your input!!!

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines