Skip to main content
Inspiring
June 17, 2009
Question

Horizontal Spry Menus Appear Behind Embedded PDFs

  • June 17, 2009
  • 1 reply
  • 11736 views

When I create a vertical spry menu, I have no issue with the menus appearing behind embedded PDFS and other objects. We are working through a redesign and I now have to have a horizontal menu that has pull downs in them.  When I do this I have a similar issue that someone had here:

http://forums.adobe.com/thread/146490

The problem isn't with flash though, it's PDF and other embedded objects.  The menu appears behind them.  Is there any solution to this?  I've tried working with div tags, z-indexes, everything I can come up with....I'm banging my head trying to figure this out and that isn't helping .  Thanks!!

Here's some sample code:

<script src="/code/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="/code/SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />


<style type="text/css">
<!--
body
,td,th {
        font
-family: Tahoma, Geneva, sans-serif;
        font
-size: 12px;
}
body
{
        margin
-left: 0px;
        margin
-top: 0px;
        margin
-right: 0px;
        margin
-bottom: 0px;
        background
-color: #FF6300;
}
-->
</style>

<ul id="MenuBar1" class="MenuBarHorizontal">
 
<li><a href="#" class="MenuBarItemSubmenu">Grading/Guidelines</a>
   
<ul>
     
<li><a href="d_main3.cfm?site=d_sitemaker.cfm">Pro Scout Grading Sheet</a></li>
     
<li><a href="lettergrades.pdf" target="_new">Letters, Arrows, Special Teams Grades</a></li>
     
<li><a href="specificskillsandcriticalfactors.pdf" target="_new">Specific Skills and Critical Factors</a></li>
     
<li><a href="offensesscf.pdf" target="_new">Specific Skills and Critical Factors (Offense)</a></li>
   
</ul>
 
</li>
</ul>
</div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"/code/SpryAssets/SpryMenuBarDownHover.gif", imgRight:"/code/SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
<br /><br /><br />
<div style="z-index: -1;">
<embed src="lettergrades.pdf" width="500" height="500" autostart="false" style="z-index:-1;"></embed>
</div>
This topic has been closed for replies.

1 reply

pziecina
Legend
June 18, 2009

Can you give me a link to the page?

This sort of problem is often associated with a position being set to absolute somewhere, so if you are unable to post a link check your css, (not the spry css as this is required to have it appear above the other items).

PZ

Inspiring
June 18, 2009

Thanks for the response!  What you see is the entire code set (minus the includes of course).  I can't send you a link, it's an internal site.  Also I only have to get this to work in IE, it's for an application not a website.  And if I can't get this to work, I would be open to other options.

pziecina
Legend
June 19, 2009

SOLVED!!!!!!!!

Okay, the new version of the SpryMenuBar.js no longer works.  I guess in a Dreamweaver Update the .js switched to this -

// SpryMenuBar.js - version 0.12 - Spry Pre-Release 1.6.1

I realized that the vertical menubar was using this version -

/* SpryMenuBar.js - Revision: Spry Preview Release 1.4 */

I rolled back to the 1.4 version and the menus stay above any object now!  Thanks for your help, it was because of you I started stepping through the files step by step.  I'm not sure how to report this to Adobe?


Thank you for the feedback, the first thing I normally look at with spry is the version number and as your was up to-date I never suspected that this would cause the problem. It would be a good idea if you could post the problem and the solution on the Adobe labs spry forum, as many have had this problem and come to the same conclusion I did (use flash or move the pdf window out of the way.

What I suggested was a work-around that should not have been necessary, (I will now seriously consider using pdf again as a part of a web page) again thank you for the feedback.

The spry forum can be found at:

http://forums.adobe.com/community/labs/spry

PZ