Hidden element overlaps text when link is clicked to unhide div tag

I am using Dreamweaver CS4 and using the slide effect.
When the page loads, the div is initially hidden with (disolay:none).  But when i click the link to show the content, the content is displayed but it overlaps the table beneath it.
I am using 4 collapsible panels.  The hidden element is in the second collapsible panel.
Everything works good except that when the table is displayed after clicking the link to unhide it - it overlaps the 3rd and 4th collapsible panel.  When the table is unhidden by clicking the link, the other tables that are in the same collapsible panels move and this is good, but it overlapps the 3rd and 4th collapsible panel though. How do I fix this?
My Code:
<div id="CollapsiblePanel1" class="CollapsiblePanel">
                <div class="CollapsiblePanelTab" tabindex="0">Originating an Processing Loans in Point</div>
                <div class="CollapsiblePanelContent">
                <p> If you're a processor or originator/processor, you are not alone in today's multi-tasking world. Point will help you become more efficient than ever. You will be able to keep everyone who "touches" your loan informed and up-to-date with the time savers you learn in this class. </p>
                  <table width="100%" border="0" cellspacing="5" cellpadding="5">
                    <tr>
                      <td>Optimizing Your Pipeline Reports</td>
                      <td>12/1/2010</td>
                      <td> 1:00PM - 2:00PM CST</td>
                      <td><a href="#">Register Now!</a></td>
                    </tr>
                    <tr>
                      <td width="35%">Optimizing Your Pipeline Reports</td>
                      <td width="11%">12/1/2010</td>
                      <td width="27%"> 1:00PM - 2:00PM CST</td>
                      <td width="27%"><a href="#">Register Now!</a></td>
                    </tr>
                    <tr>
                      <td>Optimizing Your Pipeline Reports</td>
                      <td>12/1/2010</td>
                      <td> 1:00PM - 2:00PM CST</td>
                      <td><a href="#">Register Now!</a></td>
                    </tr>
                    <tr>
                      <td>Optimizing Your Pipeline Reports</td>
                      <td>12/1/2010</td>
                      <td> 1:00PM - 2:00PM CST</td>
                      <td><a href="#">Register Now!</a></td>
                    </tr>
                    <tr>
                      <td colspan="4"> </td>
                    </tr>
                  </table>
                </div>
              </div></td>
</tr>
<tr>
  <td>
  <p>
  </p>
  <p>
  </p>
  <div id="CollapsiblePanel2" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Optimizing Your Pipelne Reports</div>
    <div class="CollapsiblePanelContent">
    <p>If you're a processor or originator/processor, you are not alone in today's multi-tasking world. Point will help you become more efficient than ever. You will be able to keep everyone who "touches" your loan informed and up-to-date with the time savers you learn in this class. </p>
    <table width="100%" border="0" cellspacing="5" cellpadding="5">
                    <tr>
                      <td>Optimizing Your Pipeline Reports</td>
                      <td>12/1/2010</td>
                      <td> 1:00PM - 2:00PM CST</td>
                      <td> <a href="#">Register Now!</a></td>
                      <td width="17%">
  <a onclick="slide_effect.start(); return false;" href="#">View Details</a></td>
                   </tr>
                   </table>
              <div id="shrink1">   <div>
<p class="indentpar">
                      Topics Covered:
                      <ul>
                        <li>Pre-qualifying your prospect</li>
                        <li>Converting the file from Prospect to Borrower</li>
                        <li>Overview of the Loan Application, GFE, and TIL</li>
                        <li>Saving time with Cardex</li>
                        <li>Submitting to Fannie Mae and Loan Prospector</li>
                        <li>Printing &amp; E-mailing forms</li>
                        <li>using task manager to set reminders and tasks</li>
                      </ul>
             </p>
                   </div>
                   </div>
          <script type="text/javascript">
var slide_effect = new Spry.Effect.Slide("shrink1", {duration:1000, from:'0%', to:'100%',toggle:true});
</script>
    <table width="100%" border="0" cellspacing="5" cellpadding="5">
                   <tr>
                      <td width="33%">Optimizing Your Pipeline Reports</td>
                      <td width="12%">12/1/2010</td>
                      <td width="23%"> 1:00PM - 2:00PM CST</td>
                      <td width="32%"> <a href="#">Register Now!</a></td>
                    </tr>
                    <tr>
                      <td>Optimizing Your Pipeline Reports</td>
                      <td>12/1/2010</td>
                      <td> 1:00PM - 2:00PM CST</td>
                      <td><a href="#">Register Now!</a></td>
                    </tr>
                    <tr>
                      <td>Optimizing Your Pipeline Reports</td>
                      <td>12/1/2010</td>
                      <td> 1:00PM - 2:00PM CST</td>
                      <td><a href="#">Register Now!</a></td>
                    </tr>
                    <tr>
                      <td> </td>
                      <td> </td>
                      <td> </td>
                       <td> </td>
                    </tr>
                  </table></div>
  </div></td></tr>
<tr>
  <td>
  <p>
  </p>
  <p>
  </p>
  <div id="CollapsiblePanel3" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Navigating the HUD-1 and HUD-1A</div>
    <div class="CollapsiblePanelContent"><table width="100%" border="0" cellspacing="5" cellpadding="5">
                    <tr>
                      <td>Navigating the HUD-1 and HUD-1A</td>
                      <td>12/1/2010</td>
                      <td> 1:00PM - 2:00PM CST</td>
                      <td> <a href="#">Register Now!</a></td>
                    </tr>
                    <tr>
                      <td width="35%">Navigating the HUD-1 and HUD-1A</td>
                      <td width="11%">12/1/2010</td>
                      <td width="27%"> 1:00PM - 2:00PM CST</td>
                      <td width="27%"> <a href="#">Register Now!</a></td>
                    </tr>
                    <tr>
                      <td>Navigating the HUD-1 and HUD-1A</td>
                      <td>12/1/2010</td>
                      <td> 1:00PM - 2:00PM CST</td>
                      <td><a href="#">Register Now!</a></td>
                    </tr>
                    <tr>
                      <td>Navigating the HUD-1 and HUD-1A</td>
                      <td>12/1/2010</td>
                      <td> 1:00PM - 2:00PM CST</td>
                      <td><a href="#">Register Now!</a></td>
                    </tr>
                    <tr>
                      <td> </td>
                      <td> </td>
                      <td> </td>
                       <td> </td>
                    </tr>
                  </table></div>
  </div></td></tr>
<tr>
  <td>
  <p>
  </p>
  <p>
  </p>
  <div id="CollapsiblePanel4" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Working with the Good Faith Estimate</div>
    <div class="CollapsiblePanelContent"><table width="100%" border="0" cellspacing="5" cellpadding="5">
                    <tr>
                      <td>Working with the Good Faith Estimate</td>
                      <td>12/1/2010</td>
                      <td> 1:00PM - 2:00PM CST</td>
                      <td> <a href="#">Register Now!</a></td>
                    </tr>
                    <tr>
                      <td width="35%">Working with the Good Faith Estimate</td>
                      <td width="11%">12/1/2010</td>
                      <td width="27%"> 1:00PM - 2:00PM CST</td>
                      <td width="27%"> <a href="#">Register Now!</a></td>
                    </tr>
                    <tr>
                      <td>Working with the Good Faith Estimate</td>
                      <td>12/1/2010</td>
                      <td> 1:00PM - 2:00PM CST</td>
                      <td><a href="#">Register Now!</a></td>
                    </tr>
                    <tr>
                      <td>Working with the Good Faith Estimate</td>
                      <td>12/1/2010</td>
                      <td> 1:00PM - 2:00PM CST</td>
                      <td><a href="#">Register Now!</a></td>
                    </tr>
                    <tr>
                      <td> </td>
                      <td> </td>
                      <td> </td>
                       <td> </td>
                    </tr>
                  </table></div>
  </div>

This is why you don't use absolutely positioned elements to do this kind of thing.  Because absolute positioning REMOVES the positioned element from the normal flow, this element then cannot interact with any other element on the page, nor can any other element interact with it.
The better way to do such a thing would be to use abuse 'display:none' to remove the container from the page rather than 'visibility:hidden', and of course, not to use absolute positioning.  Something like this -
<p>Velit esse cillum dolore <a href="#" onclick="document.getElementById('foo1').style.display='inline'">MORE</a> <span id="foo1" class="hidden">sed do eiusmod tempor incididunt ut aliquip ex ea commodo consequat. Duis aute irure dolor lorem ipsum dolor sit amet, ut labore et dolore magna aliqua. In reprehenderit in voluptate quis nostrud exercitation ut aliquip ex ea commodo consequat. Qui officia deserunt sed do eiusmod tempor incididunt eu fugiat nulla pariatur. Ut enim ad minim veniam, lorem ipsum dolor sit amet, consectetur adipisicing elit.</span>
</p>

Similar Messages

  • When links are clicked, they do not fully display the NEW page until the mouse is moved.I know it is a current bug, and appears in no other browsers that I know of.

    It was pointed out that my links do not function correctly on Firefox on a Windows platform. When links are clicked, they do not fully display the NEW page until the mouse is moved! I have now observed it for myself on my fathers PC running Windows XP on Firefox.My PC is on Windows7
    It is the 5 version of Firefox, so I know it is a current bug, and appears in no other browsers that I know of.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    In Firefox 4+ you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How do I Change sub category to a key word tag in Elements 6. When I right click the sub category is the possibility to change not selectable

    I want to change a sub category to a key word tag in Elements 6. When I right click the sub category is the possibility to change not selectable. How to do it?

    If you want to change the category you need to change the feed, which means changing it in WordPress. You need to pick one category and, if there is one, one sub-category from the official list here:
    http://www.apple.com/itunes/podcasts/specs.html#categories
    It is possible to have further categories, though I don't know whether WordPress will allow that, but you should put the most relevant one in first.
    Once you've amended it simply re-upload the feed and wait for the Store to catch up. You don't need to resubmit.

  • Why does this come up when trying to insert a fluid div tag

    Can someone tell me please   why i get this when trying to insert a fluid div tag on my  page  thanks in advance mark  @charset "utf-8"; /* Simple fluid media Note: Fluid media requires that you remove the media's height and width attributes from the HTML http://www.alistapart.com/articles/fluid-images/ */ img, object, embed, video { max-width: 100%; } /* IE 6 does not support max-width so default to width 100% */ .ie6 img { width:100%; } /* Dreamweaver Fluid Grid Properties ---------------------------------- dw-num-cols-mobile:    5; dw-num-cols-tablet:    12; dw-num-cols-desktop:    20; dw-gutter-percentage:    15; Inspiration from "Responsive Web Design" by Ethan Marcotte http://www.alistapart.com/articles/responsive-web-design and Golden Grid System by Joni Korpi http://goldengridsystem.com/ */ /* Mobile Layout: 480px and below. */ .gridContainer { margin-left: auto; margin-right: auto; width: 97.3913%; padding-left: 1.3043%; padding-right: 1.3043%; } #LayoutDiv1 { clear: both; float: left; margin-left: 0; width: 100%; display: block; } #LayoutDiv2 { clear: both; float: left; margin-left: 0; width: 100%; display: block; } /* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */ @media only screen and (min-width: 481px) { .gridContainer { width: 98.913%; padding-left: 0.5434%; padding-right: 0.5434%; } #LayoutDiv1 { clear: both; float: left; margin-left: 0; width: 100%; display: block; } #LayoutDiv2 { clear: both; float: left; margin-left: 0; width: 100%; display: block; } } /* Desktop Layout: 769px to a max of 1232px. Inherits styles from: Mobile Layout and Tablet Layout. */ @media only screen and (min-width: 769px) { .gridContainer { width: 99.3478%; max-width: 1232px; padding-left: 0.326%; padding-right: 0.326%; margin: auto; } #LayoutDiv1 { clear: both; float: left; margin-left: 0; width: 100%; display: block; } #LayoutDiv2 { clear: both; float: left; margin-left: 0; width: 100%; display: block; } }

    Firefox the web browser (from mozilla.org) nor Mozilla will NOT send any form or viruses, malware or toolbars into Firefox as it would hurt Mozilla far too much for any little gain.
    You seem to have the current Release Firefox 30.0 so there should be no more updates until Firefox 31.0 unless a chemspill update (30.0.1) was warranted in meantime for security and or stability fixes.
    So you are considering filing a lawasuit for Firefox prompting you for a Firefox update?.
    There are other reasons for connections like say looking updates for any Extensions and Themes you have installed, updates to a blocklist for Extensions and other safe things like mentioned at http://kb.mozillazine.org/Connections_established_on_startup_-_Firefox

  • Setting the session when link is clicked in JSP

    I have a jsp page which recieves a Map from a java class function. It retireves the element from the map and displays it onto the page as a link. Now what I want to do is whenever any link is clicked then I want to put the map in the session. How can I do that in the same page????
    I do not want to already set the session becoz that gives me problem later on.

    Ok, I understand what you are trying to do now. Unfortunately, I still don't think you have much choice. Essentially you will only ever have 4 ways of persisting the data:
    1. In memory on the server (eg Session)
    2. On disk on the server (eg database)
    3. In memory on the client (eg Applet or maybe Javascript)
    4. On disk on the client (eg signed applet writing to local file system)
    The "standard" approach is to store all of this sort of stuff on the server, so you have a choice between 1 and 2.
    I assume your "Employee" data is in a database or LDAP directory? (or some form of "on disk" persistence), and you are querying this data store to populate the objects in memory?
    If so, there is a way you can avoid persisting in memory for a long time, but because you will have to persist "somewhere" you will only have option 2 left.. on disk.
    In the code where you initially retrieve the data from the data store for the first JSP, you can put the Map in the HttpServletRequest object rather than the session (request.setAttribute()), then access this in the first JSP to render the list. When you get to the second JSP however, this object will be out of scope and you won't have access to it anymore so you will have to query the datastore again for the specific record (based on an ID passed from the first JSP). So when you hit "back", the first JSP should execute again and requery the entire list again.
    This approach "shifts" the load from a memory load to a disk load (and you will also be affected by database performance issues), so you may not solve your performance desires.
    Alternatively, if the list of Employees is the same for all users (ie, it is an entire list and not a "filtered" list based on some search criteria), then you could store the list in memory at "application scope". Basically you would just load the Map on application start-up and put it into a static variable somewhere. I suspect this won't meet your needs as typically the list you generate would be based on a specific query (I am guessing here).
    All that being said, your concerns about memory usage and performance may be unwarranted. If you do some quick calculations about the memory usage of each Employee object, you may find it is a trivial amount. (Of course you won't be able to tell definatively how much memory it is using, but you may be able to hazard an educated guess). Remember also that things like Strings are "immutable" (never change) and are drawn from a "pool" of Strings. So, if you have two objects which contain the String "Java", they will actually both be using the same bit of memory.
    Also, a word of warning: If you choose to maintain your "in memory" model, you may run into concurrency issues. Consider the situation where the initial query generates a list of Employees. The user traverses the list looking at the details of each employee. Meanwhile, another user is changing the details of an Employee on disk, but the first user hasn't looked at the details of this Employee from their list yet. Because the list the first user is viewing is in memory, it won't reflect any alterations made since it was generated. So when the first user views the details of the Employee that the second user altered on disk, they will see the "old" details for that Employee.
    So, in summary the only two choices I can think of that are reasonable are:
    1. Keep things the same but don't destroy the Map in the session so the first page always has it, and suffer the memory issues. (remembering the warning above)
    2. Limit the scope of the data to the "request" only, and re-query every time. This will have poorer performance from a "response-time" perspective but avoids concurrency issues.
    My recommendation:
    If the list is "small" (sub 100 items), and you don't care about the risk of viewing "old" data, keep it in the Session. If the list is too big, perhaps you could look at only storing the first X number or records in the session and only displaying the first X number of records in the first JSP (like a search engine does)
    If the list is big, and/or you DO care about viewing old data, maintain the persistence on disk. If you choose this option, performance can be enhanced by using connection pools, stored procedures etc.
    At the end of the day, memory will only cause a performance issue if you "run out". Maybe the solution is to simply add more memory to the server?
    Hope some of this helps.

  • Wrong blog posts when link is clicked

    When link to blog post dated December 4 is clicked, the blog for the week previous (November 26) comes up. I thought the problem might be due to the fact that I started the December 4 post the same day I wrote the November 26 post (saved it as draft, then posted final draft on Dec. 4). So I deleted the December 4 post and created a new post (on December 4) and posted it. But the November 26 post still comes up instead. Any help??

    Hi
    Can you please provide the URL so we can check.

  • Green highlight when working with Fluid Grid Layout Div tags

    What does the green highlight mean when working in Live view of a Fluid Grid Layout using Fluid Grid Layout Div Tags? Sometimes they show up, but sometimes they don't. I think it has something to do with the width setting but I can't figure out what the rule is or what the highlight indicates.
    Dreamweaver CS6
    Mac OSX 10.8.2
    THANK YOU!!

    Brian McNay wrote:
    the green highlight sometimes disappears when modifying the width property of the div. My question is what does this signify?
    If you change the width of a div manually in Code view or in the CSS styles panel, Dreamweaver ceases to treat it as a fluid grid layout div, and the green highlighting disappears.
    To be treated as a fluid grid layout div, the width must be adjusted by dragging the handles in Design view. Dreamweaver snaps fluid grid layout divs to the grid that is defined when you first create the page, and it calculates the width and margins to many decimal places. If the width and/or margin doesn't match the grid dimensions, the highlighting disappears, and the div is treated as any other div.
    It's not a bug, nor are fluid grid layout divs any different from normal ones. The idea of the grid and the highlighting is to allow you to create a responsive layout according to a hypothetical grid. Once you've created the basic structure, it's best to turn off the visual guides anyway.
    Personally, I think that the implementation of fluid grid layouts in Dreamweaver CS6 leaves a lot to be desired. The basic idea is good, but it's difficult to use if you don't have a solid understanding of CSS.

  • SharePoint Online workflows show server error when link is clicked. Cannot terminate them.

    This is for SharePoint Online. I have a number of workflows on a list that are in a 'suspended' state when I navigate to the workflows page for the item. When I click the link to view the workflow, I get a server error.  I need to terminate these workflows.

    Hi,
    Based on your description, you want to terminate these workflows in SharePoint online.
    You can terminate these workflows by the CSOM implementation through passing the ID of the list and list item.
    You can refer to the code snippets below.
    // connect to the workflow services via a CSOM client context
    var clientContext = new ClientContext(siteCollectionUrl);
    var workflowServicesManager = new WorkflowServicesManager(clientContext, clientContext.Web);
    // connect to the instance service
    var workflowInstanceService = workflowServicesManager.GetWorkflowInstanceService();
    // get all instances
    var workflowInstances = workflowInstanceService.EnumerateInstancesForListItem(listId, listItemId);
    clientContext.Load(workflowInstances);
    clientContext.ExecuteQuery();
    foreach (var instance in workflowInstances)
    // is this what we are looking for?
    // if so, suspend it
    workflowInstanceService.SuspendWorkflow(instance);
    // or you can terminate it
    workflowInstanceService.TerminateWorkflow(instance);
    There is a similar case:
    https://social.msdn.microsoft.com/Forums/office/en-US/c62e1d54-bd58-4d38-9514-d58cd22557e4/stop-and-restart-workflow-on-item-edit-sharepoint-online?forum=sharepointdevelopment
    Best regards
    Sara Fan
    TechNet Community Support

  • Firefox opens new window when link is clicked but the bookmarks toolbar is missing

    When I start up firefox, the original window displays my bookmark toolbar. But when I click a link where firefox opens a new window, not a new tab, the new window doesn't display my bookmark toolbar. I made sure that it was toggled to be on, and the original window has it, but the new one does not. I don't know how to fix it and it's really irritating because I use the toolbar a lot.

    see [[Reset Firefox – easily fix most problems|Reset Firefox – easily fix most problems]]
    [[Firefox does not work - Common fixes to get you back up and running|Firefox does not work - Common fixes to get you back up and running]]

  • Actionscript to load captions from array to dynamic text when thumb is clicked

    i have this code below that i made using a tutorial....it loads vars from txt file splits it then puts it into an array....once in an array it the brings the pics in from the array to create thumbnails and a larger image. my problem is i have captions to go with it and when i try to load the captions nothing happens or can be seen to be happening.
    i dont know where i am going wrong as i have no output or compiled errors
    var locVar = new Array();
    locVar = imgLoc.split(",");
    trace ( locVar );
    var tmbVar = new Array();
    tmbVar = tmbLoc.split(",");
    trace ( tmbVar );
    var capVar = new Array();
    capVar = imgCap.split(",");
    trace ( capVar );
    var NPICS:Number = locVar.length;     // number of pictures to load
    var PICX:Number = 32.8;               // x loc of big picture
    var PICY:Number = 24.9;               // y loc
    var THUMBHOLDERX:Number = 50;        // x location of thumbnail holder movieclip
    var THUMBHOLDERY:Number = 457;      // y location
    var THUMBW:Number = 100;             // width of each thumbnail
    var THUMBH:Number = 75;             // height
    var MARGIN:Number = 10;             // margin between thumbnails
    var TOTALBYTES:Number = 212000;     // approx sum of bytes in all jpgs (x 2)
    var MAXPIXELS:Number = 12;          // max number of pixels to move slider per frame
    // mask definition; mask is assumed to cover some part of the thumbnail slider (here the numbers
    // were chosen so that there are margins between the mask and the right and left edges of the movie
    // (which is 420 x 290), and enough space above and below the thumbs to show them when they 'grow'
    // on mouseover
    var MASKX:Number = 0;                    // start x location of mask
    var MASKW:Number = 600;                    // mask width
    var MASKY:Number = 447.9;                    // start y location of mask
    var MASKH:Number = 92;                    // mask height
    var totalloaded:Number = 0;         // running tally of bytes loaded from all pics
    // index into pictures array, used for loading
    var ipic:Number;
    // set up loader, an instance of MovieClipLoader
    var loader:MovieClipLoader = new MovieClipLoader();
    // use the main timeline to listen to and respond to loader's broadcast events
    loader.addListener(this);
    // function to move thumbnail slider ("this" = thumbs_mc)
    function sliderControl() {
       var w:Number = this._width/2;
       var hw:Number = mask_mc._width/2;
       var npixels:Number;
       // only do when mouse over slider mask
       if (_ymouse > mask_mc._y && _ymouse < mask_mc._y + mask_mc._height) {
          // mouse over left half of slider:
          if (_xmouse > mask_mc._x && _xmouse < mask_mc._x + hw) {
             npixels = (hw - _xmouse) / hw * MAXPIXELS;
             this._x += npixels;
             if (this._x >= 0) this._x = this._x - w;
          // mouse over right half of slider:
          } else if (_xmouse > mask_mc._x + hw && _xmouse < mask_mc._x + mask_mc._width) {
             npixels = (_xmouse - hw) / hw * MAXPIXELS;
             this._x -= npixels;
             if (this._x <= -w) this._x = this._x + w;
    // thumbnail click (onrelease) handler
    function openPic() {
       pic_mc.loadMovie(locVar[this.i]);
    function brightON(){
         this._alpha = 300;
    function brightOFF(){
         this._alpha = 30;
    function captionTXT(){
         _root.cap_txt = capVar;
    // assign event handlers (called when all jpgs are loaded)
    function setupHandlers() {
       pct_txt.removeTextField();          // don't need loading indicator any more
       thumbs_mc.onEnterFrame = sliderControl;
       for (var i:Number = 0; i < NPICS*2; i++) {
          thumbs_mc["mc"+i].onRollOver = brightON;
          thumbs_mc["mc"+i].onRollOut = brightOFF;
          thumbs_mc["mc"+i].onMouseDown = captionTXT;
          thumbs_mc["mc"+i].onRelease = openPic;
    // listener function for broadcast 'done' message (for each pic)
    // onLoadInit gets executed when the movieclip has been loaded into _mc AND
    //   its width and height data are available.
    //   (_mc = the movieclip being loaded into)
    // this routine sets the size and position of each thumbnail clip as its jpg
    //   is loaded and starts the next one loading.  When all have been loaded,
    //   a random picture is loaded into pic_mc and setupHandlers is called to
    //   assign handlers to each thumbnail movieclip
    function onLoadInit(_mc:MovieClip) {
       // this gets done when the jpg is completely loaded:
       _mc._width = THUMBW;
       _mc._height = THUMBH;
       _mc._alpha = 30;          // for image clarity
       // give the movieclip a property to remind it who it is
       // (used by openPic to know which big picture to open)
       _mc.i = (ipic >= NPICS ? ipic-NPICS : ipic);
       // add picture size to totalloaded variable
       totalloaded += loader.getProgress(_mc).bytesTotal;
       // now load the next one (if there are more) or set up handlers if done
       ipic++;
       if (ipic == NPICS * 2) {
          // start with a random photo displayed when all thumbs loaded
          pic_mc.loadMovie(locVar[Math.floor(Math.random()*NPICS)]);
          setupHandlers();
       } else if (ipic >= NPICS) {
          // load jpg into duplicate thumbnail (will already be cached)
          loader.loadClip(tmbVar[ipic-NPICS],  thumbs_mc["mc"+ipic]);
       } else {
          // load jpg into thumbnail
          loader.loadClip(tmbVar[ipic],  thumbs_mc["mc"+ipic]);
    // listener function to handle broadcast progress messages
    // make pct_txt show cumulative loading progress
    function onLoadProgress(_mc:MovieClip, loaded:Number) {
       var loadedsofar:Number = totalloaded + loaded;    
       pct_txt.text = Math.floor(loadedsofar / TOTALBYTES * 100) + "%";
    function init() {
       // create holder for pictures
       createEmptyMovieClip("pic_mc", 1);
       pic_mc._x = PICX;
       pic_mc._y = PICY;
       // create (and draw) holder for thumbnails
       createEmptyMovieClip("thumbs_mc", 2);
       thumbs_mc.beginFill(0, 100);     // black
       thumbs_mc.moveTo(0, 0);
          thumbs_mc.lineTo(2 * (MARGIN + THUMBW) * NPICS, 0);
       thumbs_mc.lineTo(2 * (MARGIN + THUMBW) * NPICS, THUMBH);
       thumbs_mc.lineTo(0, THUMBH);
       thumbs_mc.endFill();
       // drawing the thumb holder at 0, 0 and then moving it makes its reg point = upper left
       thumbs_mc._x = THUMBHOLDERX;
       thumbs_mc._y = THUMBHOLDERY;
       // create, draw and enable mask over thumbs (could use different variables to define mask
       // if desired)
       createEmptyMovieClip("mask_mc", 3);
       mask_mc.beginFill(0x0000cc, 100);
       mask_mc.moveTo(0, 0);
       mask_mc.lineTo(MASKW, 0);
       mask_mc.lineTo(MASKW, MASKH);
       mask_mc.lineTo(0, MASKH);
       mask_mc.endFill();
       mask_mc._x = MASKX;
       mask_mc._y = MASKY;
       thumbs_mc.setMask(mask_mc);
       // create loading textfield indicator
       createTextField("pct_txt", 4, 200, 100, 40, 100);
       var tf:TextFormat = new TextFormat();
       tf.align = "center";
       tf.size = 12;
       tf.font = "Verdana";
       tf.color = 0xFFFF00;
       pct_txt.setNewTextFormat(tf);
       // create loading textfield indicator
       createTextField("cap_txt", 0, 400, 200, 40, 100);
       var cf:TextFormat = new TextFormat();
       cf.align = "center";
       cf.size = 12;
       cf.font = "Verdana";
       cf.color = 0xFFFF00;
       cap_txt.setNewTextFormat(cf);
       // make empty movieclips in thumbs_mc for each pic to go into
       // make double the number so the slider can move continuously and show content
       for (var i:Number = 0; i < NPICS * 2; i++) {
          var mc:MovieClip = thumbs_mc.createEmptyMovieClip("mc"+i, i+1);
          mc._x = i*(MARGIN + THUMBW);
          mc._y = 0;
       // set the pointer to the first jpg in the array picnames
       ipic = 0;
       // start loading jpgs (ipic is initialized to 0)
       loader.loadClip(locVar[ipic], thumbs_mc["mc"+ipic]);
    init();
    stop();

    ok here is my code so far.....i've set a movieclip where i want the captions and set the dyn text box above the clip....i've given the movieclip a background n faded so images can still be seen behind.
    im just having a problem with the loop.....each one i tried resulted in the caption staying the same no matter what thumbnail is clicked.
    are there any suggestions as to how this can be done......(please bare in mind im a newbie to actionscript)
    var locVar = new Array();
    locVar = imgLoc.split(",");
    var tmbVar = new Array();
    tmbVar = tmbLoc.split(",");
    var capVar = new Array();
    capVar = imgCap.split(",");
    var NPICS:Number = locVar.length;     // number of pictures to load
    var PICX:Number = 32.8;               // x loc of big picture
    var PICY:Number = 24.9;               // y loc
    var THUMBHOLDERX:Number = 50;        // x location of thumbnail holder movieclip
    var THUMBHOLDERY:Number = 457;      // y location
    var THUMBW:Number = 100;             // width of each thumbnail
    var THUMBH:Number = 75;             // height
    var MARGIN:Number = 10;             // margin between thumbnails
    var TOTALBYTES:Number = 212000;     // approx sum of bytes in all jpgs (x 2)
    var MAXPIXELS:Number = 12;                    // max number of pixels to move slider per frame
    var CAPSW:Number = 525;                    
    var CAPSH:Number = 28;     
    var CAPSX:Number = 38;            //caption text x position
    var CAPSY:Number = 391;            //caption text y position
    // mask definition; mask is assumed to cover some part of the thumbnail slider (here the numbers
    // were chosen so that there are margins between the mask and the right and left edges of the movie
    // (which is 420 x 290), and enough space above and below the thumbs to show them when they 'grow'
    // on mouseover
    var MASKX:Number = 0;                    // start x location of mask
    var MASKW:Number = 600;                    // mask width
    var MASKY:Number = 447.9;                    // start y location of mask
    var MASKH:Number = 92;                    // mask height
    var totalloaded:Number = 0;         // running tally of bytes loaded from all pics
    // index into pictures array, used for loading
    var ipic:Number;
    // set up loader, an instance of MovieClipLoader
    var loader:MovieClipLoader = new MovieClipLoader();
    // use the main timeline to listen to and respond to loader's broadcast events
    loader.addListener(this);
    // function to move thumbnail slider ("this" = thumbs_mc)
    function sliderControl() {
       var w:Number = this._width/2;
       var hw:Number = mask_mc._width/2;
       var npixels:Number;
       // only do when mouse over slider mask
       if (_ymouse > mask_mc._y && _ymouse < mask_mc._y + mask_mc._height) {
          // mouse over left half of slider:
          if (_xmouse > mask_mc._x && _xmouse < mask_mc._x + hw) {
             npixels = (hw - _xmouse) / hw * MAXPIXELS;
             this._x += npixels;
             if (this._x >= 0) this._x = this._x - w;
          // mouse over right half of slider:
          } else if (_xmouse > mask_mc._x + hw && _xmouse < mask_mc._x + mask_mc._width) {
             npixels = (_xmouse - hw) / hw * MAXPIXELS;
             this._x -= npixels;
             if (this._x <= -w) this._x = this._x + w;
    // thumbnail click (onrelease) handler
    function openPic() {
            pic_mc.loadMovie(locVar[this.i]);
    function brightON(){
         this._alpha = 300;
    function brightOFF(){
         this._alpha = 30;
    function captionTXT(){
         cap_txt.text = capVar[this.i];
    // assign event handlers (called when all jpgs are loaded)
    function setupHandlers() {
       pct_txt.removeTextField();          // don't need loading indicator any more
       thumbs_mc.onEnterFrame = sliderControl;
       for (var i:Number = 0; i < NPICS*2; i++) {
          thumbs_mc["mc"+i].onRollOver = brightON;
          thumbs_mc["mc"+i].onRollOut = brightOFF;
          thumbs_mc["mc"+i].onMouseDown = captionTXT;
          thumbs_mc["mc"+i].onRelease = openPic;
    // listener function for broadcast 'done' message (for each pic)
    // onLoadInit gets executed when the movieclip has been loaded into _mc AND
    //   its width and height data are available.
    //   (_mc = the movieclip being loaded into)
    // this routine sets the size and position of each thumbnail clip as its jpg
    //   is loaded and starts the next one loading.  When all have been loaded,
    //   a random picture is loaded into pic_mc and setupHandlers is called to
    //   assign handlers to each thumbnail movieclip
    function onLoadInit(_mc:MovieClip) {
       // this gets done when the jpg is completely loaded:
       _mc._width = THUMBW;
       _mc._height = THUMBH;
       _mc._alpha = 30;          // for image clarity
       // give the movieclip a property to remind it who it is
       // (used by openPic to know which big picture to open)
       _mc.i = (ipic >= NPICS ? ipic-NPICS : ipic);
       // add picture size to totalloaded variable
       totalloaded += loader.getProgress(_mc).bytesTotal;
       // now load the next one (if there are more) or set up handlers if done
       ipic++;
       if (ipic == NPICS * 2) {
          // start with a random photo displayed when all thumbs loaded
           var calc:Number = Math.floor(Math.random()*NPICS);
          pic_mc.loadMovie(locVar[0]);
           cap_txt.text = capVar[0];
          setupHandlers();
       } else if (ipic >= NPICS) {
          // load jpg into duplicate thumbnail (will already be cached)
          loader.loadClip(tmbVar[ipic-NPICS],  thumbs_mc["mc"+ipic]);
       } else {
          // load jpg into thumbnail
          loader.loadClip(tmbVar[ipic],  thumbs_mc["mc"+ipic]);
    // listener function to handle broadcast progress messages
    // make pct_txt show cumulative loading progress
    function onLoadProgress(_mc:MovieClip, loaded:Number) {
       var loadedsofar:Number = totalloaded + loaded;     
       pct_txt.text = Math.floor(loadedsofar / TOTALBYTES * 100) + "%";
    function init() {
       // create holder for pictures
       createEmptyMovieClip("pic_mc", 1);
       pic_mc._x = PICX;
       pic_mc._y = PICY;
       // create (and draw) holder for thumbnails
       createEmptyMovieClip("thumbs_mc", 2);
       thumbs_mc.beginFill(0, 100);     // black
       thumbs_mc.moveTo(0, 0);
       thumbs_mc.lineTo(2 * (MARGIN + THUMBW) * NPICS, 0);
       thumbs_mc.lineTo(2 * (MARGIN + THUMBW) * NPICS, THUMBH);
       thumbs_mc.lineTo(0, THUMBH);
       thumbs_mc.endFill();
       // drawing the thumb holder at 0, 0 and then moving it makes its reg point = upper left
       thumbs_mc._x = THUMBHOLDERX;
       thumbs_mc._y = THUMBHOLDERY;
       // create, draw and enable mask over thumbs (could use different variables to define mask
       // if desired)
       createEmptyMovieClip("mask_mc", 3);
       mask_mc.beginFill(0x0000cc, 100);
       mask_mc.moveTo(0, 0);
       mask_mc.lineTo(MASKW, 0);
       mask_mc.lineTo(MASKW, MASKH);
       mask_mc.lineTo(0, MASKH);
       mask_mc.endFill();
       mask_mc._x = MASKX;
       mask_mc._y = MASKY;
       thumbs_mc.setMask(mask_mc);
       // create loading textfield indicator
       createTextField("pct_txt", 4, 200, 100, 40, 100);
       var tf:TextFormat = new TextFormat();
       tf.align = "center";
       tf.size = 12;
       tf.font = "Verdana";
       tf.color = 0xFFFF00;
       pct_txt.setNewTextFormat(tf);
       createEmptyMovieClip("caps_mc", 5);
       caps_mc.beginFill(0x000000, 50);
       caps_mc.moveTo(0, 0);
       caps_mc.lineTo(CAPSW, 0);
       caps_mc.lineTo(CAPSW, CAPSH);
       caps_mc.lineTo(0, CAPSH);
       caps_mc.endFill();
       caps_mc._x = CAPSX;
       caps_mc._y = CAPSY;
       // create loading textfield indicator
       createTextField("cap_txt", 6, 38, 380, 525, 25);
       var cf:TextFormat = new TextFormat();
       cf.align = "center";
       cf.size = 16;
       cf.font = "Arial Black";
       cf.color = 0xFFFFFF;
       cap_txt.setNewTextFormat(cf);
       cap_txt._x = CAPSX;
       cap_txt._y = CAPSY;
       // make empty movieclips in thumbs_mc for each pic to go into
       // make double the number so the slider can move continuously and show content
       for (var i:Number = 0; i < NPICS * 2; i++) {
          var mc:MovieClip = thumbs_mc.createEmptyMovieClip("mc"+i, i+1);
          mc._x = i*(MARGIN + THUMBW);
          mc._y = 0;
       // set the pointer to the first jpg in the array locVar
       ipic = 0;
       // start loading jpgs (ipic is initialized to 0)
       loader.loadClip(locVar[ipic], thumbs_mc["mc"+ipic]);
       cap_txt.text = capVar[2];
    init();
    stop();

  • Premier Elements 3 crashes when 'Burn' button clicked or 'Export to DVD' selected

    After compiling a slide show in Premier Elements ( including rendering, previewing, saving) and I then try to either “Burn” or “Export to DVD” the programme immediately shows “Adobe Premier Elements.exe application error.  The instruction at 0X0000000 reference memory 0X0000000.  The memory could not be read.” OK or Cancel immediately shuts the program down and can’t be re-opened until the computer is re-started. On shut down a second message is displayed “The instruction at 0x00f96cb7 reference memory at 0x00000000.  The memory could not be read. OK to terminate.’ I have replaced the RAM. I have repaired the programme many times with my original disc. I have uninstalled and reinstalled the programme many times. I have uninstalled Nero in case of a conflict. These fixing attempts seemed to have stopped message 2 appearing and the programme can now be restarted after it crashes without having to reboot. I have not been able to cure message 1, it crashes completely at any attempt to ‘burn’ a DVD or ‘export to a DVD’. I can use Windows to burn other discs without problems. I have previously burnt many other slideshow DVD’s without problem.
    I cannot find anything similar to this fault in PE forums.
    Hope to find some help.

    Rosemary,
    Trying to remember the full article, I do not think that I used too much "jargon," but in case that I did, I'll give you a quick distillation. You might want to still read on, as much more will be covered in that article.
    When one starts a Project and then does a Save, a file is written to the location that the user chose. That file is [Project Name].prel. That file uses a computer language called XML. In the article, I show and example of a little bit of that language. That file ONLY contains a series of lines that link to the location of all Imported Asset files - the AV files, the still images, etc.. Those links are to where the various files were located on one's computer, when they did the Save. Next, there are a series of instructions for PrE to work with those linked Assets. These might be along the lines of "cut Shot_01.AVI at 00;00;30;00 and then again at 00;00;45;00," or "apply the Gaussian Blur Effect to Shot_02.AVI." Things like that. PrE is what is called a non-destructive NLE (Non Linear Editor) program, in that it never directly does anything to your original Assets, but only to the info gathered from them though those links. Your files are untouched, unless you were to do an Export/Share to that location, with the exact same name.
    The .prel file only has some programming language inside. It is basically a database of links and instructions - not one Asset. It is not until a user does an Export, or Share (those terms basically mean the same thing, but in later versions, some of the old Export functions are now only under the Share tab), that any playable file is generated from PrE. Until then, there is nothing to play, only to Open in PrE (so long as the linked Assets still exist).
    I hope that this makes sense. Many users are under the mistaken impression that Save will yield a playable file, or that one can play a .prel file. That is not the case, as explained above. This question has come up often enough, that I did the article to point out the differences, and give some tips on how to really get what one wishes.
    After you read through the article, please do not hesitate to post any questions. What I want is something that is useful to all, regardless of their level of computer expertise, or their knowledge and familiarity with PrE, or any other NLE program.
    Just let me know,
    Hunt

  • Elements 11 freezes when I right click on a photo

    About two weeks ago my elements 11 started freezing, blue spinning circle(program not responding), whenever I right clicked on a photo in the "open" window.  I had an older version of photoshop on my computer and it started doing the same thing on that one as well. I uninstalled both and then reinstalled 11, still freezes. HELP!

    Sounds like you installed something or had a driver  update that's causing an issue. If you are on Windows then Control Panel / Programs  will show when programs have been installed. Windows Update history may show if any drivers were updated.
    Probably not relevant for Photoshop  Elements, or there would be more reports, but in the Premiere Elements forums an awful lot of v10 users with nvidia GTX graphics cards are having problems with the most recent graphics driver  update. They are solving those problems by restoring back to the previous version.
    Do you have a system restore point from before the problem occurred you could go back to?
    Cheers,
    Neale

  • How do I fix needing approval for seperate tabs when links are clicked?

    when I click on link in e-mail it takes me to new tab, but wants me to click the "approve" button to open link

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    *Use a compressed image type like PNG or JPG to save the screenshot
    *Make sure that you do not exceed the maximum size of 1 MB

  • Iframes: hide an image outside of iframe when link is clicked

    I have a site I inherited from someone else. There is a photo
    gallery page was created with iframes. The main photo gallery page
    has a graphic at the top that says "Photo Gallery" with the iframe
    below it holding photo thumbnails. When a thumbnail is clicked
    another html page opens within that window showing the enlarged
    image.
    How do I hide the graphic that says Photo Gallery when the
    thumbnail is clicked?
    thanks in advance

    you might try the action "show/hide" on the layer with the
    graphic. "onclick" - hide the layer.

  • Firefox 7.0.1 causes windows live mail to report problem when link is clicked

    When Firefox 7.0.1 is not open and a link in an email is selected (Windows Live Mail), mail reports an error "there was a problem sending the command to the program". The requested website does load after this with no problems. This same error has been previously reported with Firefox 4, however I have only recently had the problem.

    Solved (for me). The problem was Roboform 7.5.5. When they updated Roboform to 7.5.6, the issue with Firefox 7 was resolved. Note that the problem did not occur with any other browsers before, and now it is fixed in Firefox 7.

Maybe you are looking for

  • Can't log in or properly sync mobile accounts

    I recently purchased a Mini server running Mountain Lion. I have set up network accounts for six users for use by three stationary mini computers. I have two MacBook Airs each dedicated to one user. One those I created mobile accounts. I am having tw

  • Unable to start WLS8.1sp4 after extended with Workshop& Integration Templat

    Hi, I have configured three domains of WLS8.1sp4 on unique ports namely 6001, 7001 & 8001 but only one domain can be started on the port 7001 but there is a problem starting the other ports. All the three domains WLS were able to be started without a

  • HP Laserjet 3052 Compatibility

    I'm looking for an All-In-One printer. Does anybody have any info (good or bad) on the HP Laerjet 3052 All-In-One? Will it work with the iMac (Intel) running 10.4.8? Suggestions on alternatives are also welcome!

  • Where does a PL/SQL block run? PGA or SGA?

    Hi all, 11g I'm not familiar with the oracle memory structure, if I have a simple pl/sql block as below DECLARE   v1 number; BEGIN   v1:=100;   DBMS_OUTPUT.PUT_LINE(v1); END;in my mind, even though it's a small block, when i execute it, it would also

  • Error in Consuming Webservice

    Hi Expert,   I have a problem in consuming webservice into my client proxy.   when I test the client proxy it  will raise error  :    SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/   Does anyone here has facing this pr