Preloading an image in a page based on a template

I have a fairly simple problem here, there must be a simple
solution. I hope!
I have a site whose pages are all based on one DW template.
On each page, there is a single image (a different one on each
page) that I want to have preload. It is not part of any rollovers
but is a significant graphical element and it is distracting that
it is the final component to load each time. All I want to do is
add it to the preload list in each page's <body> tag, but I
am unable to do that, as it is not an editable area. I tried going
into the template and adding an editable or optional region within
the <body> tag, but it won't let me do that, and inserts it
after the tag.
I don't want to detatch my pages from the template, I am sure
the client will have future site-wide changes.
How can I do this? Thanks in advance for any help.

> I tried going into the
> template and adding an editable or optional region
within the <body> tag, but
> it won't let me do that, and inserts it after the tag.
editable regions can't contain the head or body tag.
select the body tag in the quick tag selector (bottom left
margin of design
window)
then go to Modify-->templates-->add editable attribute
and add an onload attribute.
in the child page, use modify->Template parameters to add
the preload.
Or- use some other javascript preloader inside of an editable
region in the
head section.
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/

Similar Messages

  • Error Copying pages based on a template

    I get the following error while copying pages based on a template. The template also contains a top horizontal navigation bar (portlet), a footer (portlet) and one item (portal smart text - Current Page). I'm using Portal 9iAs Rel 2 on win2000.
    Error while copying page. (WWC-44262)
    An unexpected error occurred: User-Defined Exception (WWC-44088)
    This region was not found. (WWC-44089)
    An unexpected error occurred: ORA-01403: no data found (WWC-44082)
    An unexpected error occurred: ORA-01403: no data found (WWC-44082)
    An unexpected error occurred: ORA-01403: no data found (WWC-44082)
    If I delete all the portlets and items from the template I'm able to make copies of the page.
    Has anyone else faced a similar problem? Please let me know if anyone has a solution.

    We've seen this problem on pages imported from another site. Please report this problem to Oracle Tech Support.
    Thanks,
    Portal PM

  • Edit/change swf files in pages based on DW templates

    I have seen how to make banners or pictures editable by using the »Editable Tag Attribute« function. But when I want to do the same with a swf banner I don't get the option SCR in the popup menu, but: ID, CLASSID, WIDTH and HIGHT instead. I have tried to add other attributes as well, but none of them seem to work. Do anyone know how to solve this problem, so I can define a knew swf on every new page?

    I would do this by creating the circles in Illustrator and assigning them with a formula in Excel so they can just come in with the merge.
    Use this formula, substituting your values
    =IF(A2>75,"Green.jpg",IF(A2>49,"Yellow.jpg",IF(A2<50,"Red.jpg",)))
    Then just have placeholders for the circles. (note that the title of the column must begin with '@ for DataMerge to see this as an image field. (Make sure the csv file is in the same folder with the images.)

  • CSS Rollover Menu with Images and Current Page Indicator

    Hello.
    I have found a very interesting video here: http://www.youtube.com/watch?v=vv8cRYGCvIY about creating a CSS Rollover Menu with Images and Current Page Indicator (I tested it and it is working fine).
    I have a web site with 15 pages based on a template and I want to use that video sample to do the same thing on my web site.
    Please tell me if I can use the sample from the link above to do that.
    What should I change in the css file (what new class should I make) to make this work on a web site based on a template  ?
    Thank You !

    I don't know about that video tutorial but a sitewide persistent menu indicator ('you are here' highlighting) is very simple to do with CSS classes.
    Details and code examples below:
    http://alt-web.com/Articles/Persistent-Page-Indicator.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Name of editable instance inserted on page based on template

    I use a template that has an editable area named "scripts."
    The code, when I open the template in Dreamweaver, looks like this:
    <!-- TemplateBeginEditable name="scripts" --><!--
    TemplateEndEditable -->
    However, when I use a browser to go to a page based on that
    template, the word "scripts" appears at the upper left corner of
    the page. You can see an example here:
    http://www.ellenfinkelstein.com/powerpoint_tip_link_and_return.html
    When I view the source in my browser, the code reads like
    this:
    <!-- InstanceBeginEditable name="scripts"
    -->scripts<!-- InstanceEndEditable -->
    Why does the name of the area appear between the tags and
    therefore on my page, when it's not in the original code? I've just
    modified the template and uploaded all the changed pages, so I know
    that they reflect the current template.
    Thanks for any help!
    Ellen
    www.ellenfinkelstein.com
    Thanks,
    Ellen

    Change this -
    <!-- InstanceBeginEditable name="scripts"
    -->scripts<!--
    InstanceEndEditable -->
    to this -
    <!-- InstanceBeginEditable name="scripts" --><!--
    InstanceEndEditable -->
    in the child page.
    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
    ==================
    "ellenfinkl" <[email protected]> wrote in
    message
    news:gla783$chl$[email protected]..
    >I use a template that has an editable area named
    "scripts." The code, when
    >I
    > open the template in Dreamweaver, looks like this:
    > <!-- TemplateBeginEditable name="scripts"
    --><!-- TemplateEndEditable -->
    >
    > However, when I use a browser to go to a page based on
    that template, the
    > word
    > "scripts" appears at the upper left corner of the page.
    You can see an
    > example
    > here:
    http://www.ellenfinkelstein.com/powerpoint_tip_link_and_return.html
    >
    > When I view the source in my browser, the code reads
    like this:
    > <!-- InstanceBeginEditable name="scripts"
    -->scripts<!--
    > InstanceEndEditable
    > -->
    > Why does the name of the area appear between the tags
    and therefore on my
    > page, when it's not in the original code? I've just
    modified the template
    > and
    > uploaded all the changed pages, so I know that they
    reflect the current
    > template.
    > Thanks for any help!
    > Ellen
    > www.ellenfinkelstein.com
    > Thanks,
    > Ellen
    >
    >

  • Need help with create page based on template

    I created a template on my class computer and i created few
    pages based on it.
    Today i moved all the file&folders to my private
    computer, and when i tried to create a new page based on the
    template I got a messege:
    Error accessing file: "c:\sigal\....\template_site.dwt"
    sharing violation (error code 32)
    What is wrong? What do I have to do?
    Can anybody help me please???
    10x

    Please respond to your reply on the DW forum.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "michal2401" <[email protected]> wrote in
    message
    news:eds23r$nhp$[email protected]..
    >I created a template on my class computer and i created
    few pages based on
    >it.
    >
    > Today i moved all the file&folders to my private
    computer, and when i
    > tried to
    > create a new page based on the template I got a messege:
    > Error accessing file: "c:\sigal\....\template_site.dwt"
    sharing violation
    > (error code 32)
    >
    > What is wrong? What do I have to do?
    >
    > Can anybody help me please???
    >
    > 10x
    >
    >
    >

  • Update links in file created based on the template page

    Hello everyone:
    a) I have problems when update links in files crated based on
    a template page.
    I read Dreamwaver (DW) help menu. Seems to me Dreamwaver is
    smart enough to update links based on correct file structure.
    I created a template file based on a sample page. Template
    file saved to the template folder. Then I crated few pages based on
    the template. I checked links in new files and found that link
    structures are based on template folder, not based on files current
    folder position.
    Please give me some suggestions on how to correct this
    problem. If you know some good online tutorial or documentations
    please share with me.
    b) Can DW template update Navigation bar links correctly
    based on relative document path?
    I have Navbars imported from Fireworks into DW. Files crated
    based on template are not updating pop-up menu links correctly. I
    manually updated every links. It is time consuming and

    > I created a template file based on a sample page.
    Template file saved to
    > the
    > template folder. Then I crated few pages based on the
    template. I checked
    > links
    > in new files and found that link structures are based on
    template folder,
    > not
    > based on files current folder position.
    This means that you are entering the links manually, not
    using the Property
    inspector and browsing to the target file. You should do it
    this way until
    you understand how templates work. All links in a template
    file should
    (usually) be one of three kinds -
    1. Document relative BASED ON THE TEMPLATE, e.g.,
    <a href="../whatever....
    2. Root relative, e.g.,
    <a href="/whatever....
    3. Absolute, e.g.,
    <a href=''
    http://www.example.com/whatever....
    Anything else will always result in the Template folder being
    placed in the
    path for the link when you create a child page.
    > b) Can DW template update Navigation bar links correctly
    based on relative
    > document path?
    Yes, of course.
    > I have Navbars imported from Fireworks into DW.
    This could easily be one of your problems. Those menus are
    definitely
    broken and should never be used.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "sjmacro" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hello everyone:
    >
    > a) I have problems when update links in files crated
    based on a template
    > page.
    >
    > I read Dreamwaver (DW) help menu. Seems to me Dreamwaver
    is smart enough
    > to
    > update links based on correct file structure.
    >
    > I created a template file based on a sample page.
    Template file saved to
    > the
    > template folder. Then I crated few pages based on the
    template. I checked
    > links
    > in new files and found that link structures are based on
    template folder,
    > not
    > based on files current folder position.
    >
    > Please give me some suggestions on how to correct this
    problem. If you
    > know
    > some good online tutorial or documentations please share
    with me.
    >
    > b) Can DW template update Navigation bar links correctly
    based on relative
    > document path?
    > I have Navbars imported from Fireworks into DW. Files
    crated based on
    > template are not updating pop-up menu links correctly. I
    manually updated
    > every
    > links. It is time consuming and
    >
    >

  • Creating multi-page document with multiple templates

    Hi,
    I am new to Pages and am attempting to create a photo book that I can export as a PDF and have printed through an online service. I have successfully created multiple templates in Pages that I want to use in my book, but cannot figure out how to create a new page based on an existing template. If I select "New" or "New from Template Chooser" I end up with a brand new document, not a new page in my existing document. If I select Insert --> Pages, I am only given the choice to insert a Text or a Blank page. How do I insert a new page based on a template? Or, how do I apply a template to a blank page?
    Thanks very much,
    Eric

    Okay, I have figured out a way to accomplish my goal. I have my master Pages document that I am adding pages to by:
    1. File --> "New from Template Chooser"
    2. Selecting my template
    3. A new document is opened
    4. I add my photo and custom text
    5. Copy the new page from the Pages area in the left nav
    6. Paste the new page back into my master document
    This works, although is a bit cumbersome. Would much prefer to be able to simply add a page in my master based on an existing template, but I still don't see how to do that...

  • Finding all pages attached to a template without updating the pages

    Is there a fast way to identify all the pages that are attached to a specific template?
    I inherited an unfinished site that was done by a compulsively disorganized person, and I have to get the site functional ASAP. There is a very large number of templates and pages, and I need to identify which templates go which pages to get the site cleaned up most efficiently.  If anyone is familiar with MS Access, the equivalent of the database documenter function for Dreamweaver would be great.

    Yes. Go into one page that is based on the template. Find the code up near the very top of the head section that reads:
    <!-- InstanceBegin template="/Templates/templateFileNameHere.dwt" codeOutsideHTMLIsLocked="false" -->
    Copy this fragment of code and do a Find in "Entire Current Local Site"; Find All.
    In the Results Window will be displayed all pages based on that template.
    If, instead of searching for a specific template, you searched for just the first part of that string,
    <!-- InstanceBegin template="/Templates/
    your results will list the different pages in the left column and the citation of your search text on the right column.
    You can save the results (it will be an xml file). To save as an xml file, click on the small floppy disk icon two down from the green flippy triangle on the Search Results Panel. The default file name will be ResultsReport.xml, but you will have the opportunity to give it more meaningful name before it is saved.
    Such a file may be opened in Excel or as an XML file. When opening in Excel, you will be given a choice of formats to view it in.
    Beth

  • Page based on template don't update image path

    When I create a new page beased on a template in the
    templates folder some of the image paths don't update.
    A div in the template has the following style code
    "background-image: url(../images/leftframe.png);
    background-repeat:repeat-y".
    When the new page is created, and before it is saved in the
    correct folder the code turns to: "background-image:
    url(file:///MYDISK/CLIENTFOLDER/client_webpages/images/leftframe.png);
    background-repeat:repeat-y".
    This is perfect, because the new page still don't know its
    correct path. But in CS3, and earlier versions of Deamweaver the
    path was updated when the new page was saved. That does not happen
    in CS4.
    Linked css files and other image and file paths are updated
    as it should, but this div style is not.
    I know the work arounds; move the div style code to the css
    file, open the html page in an other html editor correct it and
    paste it back...
    I don't want to spend time changing my templates or perform
    work arounds when it is obvious that there is a bug in CS4.
    Others with the same experience or a way to solve the
    problem? Or should I send Adobe a bug report?
    Stavanger

    > I know the work arounds; move the div style code to the
    css file, open the
    > html page in an other html editor correct it and paste
    it back...
    Here's a better one - make the link root relative rather than
    document
    relative.
    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
    ==================
    "Mr. Stavanger" <[email protected]> wrote in
    message
    news:gmu4dv$i4q$[email protected]..
    > When I create a new page beased on a template in the
    templates folder some
    > of
    > the image paths don't update.
    > A div in the template has the following style code
    "background-image:
    > url(../images/leftframe.png);
    background-repeat:repeat-y".
    >
    > When the new page is created, and before it is saved in
    the correct folder
    > the
    > code turns to: "background-image:
    >
    url(file:///MYDISK/CLIENTFOLDER/client_webpages/images/leftframe.png);
    > background-repeat:repeat-y".
    >
    > This is perfect, because the new page still don't know
    its correct path.
    > But
    > in CS3, and earlier versions of Deamweaver the path was
    updated when the
    > new
    > page was saved. That does not happen in CS4.
    >
    > Linked css files and other image and file paths are
    updated as it should,
    > but
    > this div style is not.
    >
    > I know the work arounds; move the div style code to the
    css file, open the
    > html page in an other html editor correct it and paste
    it back...
    >
    > I don't want to spend time changing my templates or
    perform work arounds
    > when
    > it is obvious that there is a bug in CS4.
    >
    > Others with the same experience or a way to solve the
    problem? Or should I
    > send Adobe a bug report?
    >
    > Stavanger
    >

  • Two images on a page, want to number each image.  How?

    Page layout with two images on a page, other pages have one image.  I want to have a number associated with each image.  I tried page numbering to no avail.  How do I have a sequence number for each image?
    I further complicate this; I will make many documents, each document will have about five pages, as I progress, I want the photo numbers to function likek page numbers, across all the documents. 
    How do I accomplish this?
    Rob

    Thank you, I am closer to the solution after following your instructions. On the Master pages (Two page spread), I made a text frame adjacent to each of two frames for the images (There will be two images on each document page, thus two frames on each Master Page).  They are threaded together and I verified this by View > Show Text Threads.
    Since I am not getting the right result, I must have done something wrong.  I made numbered List using Paragrach Styles.  I could not find "text attribubutes" so I am probably not doing this right.  Please note that I have spent 7 hours on this so far, so I am making an effort. 
    It seems reasonable that this should be done on a Master layout, is this right?  So far, the text frame number flow from 1 to 4 across the the Master Page spread.  Thus the first two pages are correct.  However, when page is added based on the Master it repeats the same flow: 1 though 4.  I expect this because that's what the Master shows,  However, I want the numbers to continue as I add photos to additional pages.
    Thank you for any additional information you are willing to provide. 

  • When working in my photo album in iphoto my photos are replaced with a grey box and an !. I can't see the image on the page.

    Lately when I am working in my photo album in iPhoto my images are replaced with a grey box and an ! . I can't see the images on the page. All my photos are high quality.  What am I doing wrong?

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • PreLoad ALL images within a site?

    My ImageReady rollover preloads are working fine (per page).
    However, can someone please provide script that I can place in my
    index page, that downloads every single image in my site?
    Thanks.

    ...and it would be a pain for anyone still using dialup. They
    may just
    close your portfolio and go somewhere else.
    "David Powers" <[email protected]> wrote in message
    news:e7eotm$j2v$[email protected]..
    > swissgrid wrote:
    >> Why not? Of course you would want the index page to
    load its own images
    >> first. However, why stop there? By the time a user
    clicks on the next
    >> page, all of the images could be loaded.
    >
    > Wasting huge amounts of bandwidth on images that may
    never be seen. If
    > your images are taking too long to download, you ought
    to reconsider their
    > size. On the other hand, if it's a portfolio site, users
    will normally be
    > happy to wait if your material is really worth looking
    at.
    >
    > --
    > David Powers
    > Author, "Foundation PHP for Dreamweaver 8" (friends of
    ED)
    > Author, "Foundation PHP 5 for Flash" (friends of ED)
    >
    http://foundationphp.com/

  • Need to show the images in calculated column based on the condition in sharepoint 2013.

    Hi ,
    I'm working in sharepoint 2013, In this i want to show an image in calculated column based on the condition, but image is not showing .
    In sharepoint 2010 its working with help of javascript in content editor on the same page. Same thing i tried in SP 2013. but doesn't work.
    Could any one please give proper solution for this?
    Thanks in advance.
    by,
    Siva.

    Hi please provide the JS you have used in the content editor as well as the calculation for the column so we can better understand what's maybe differs?
    Blog: chrisstahl.wordpress.com Twitter:
    @Cstahl

  • Cross reference to an image on textless pages

    My InDesign project has pages with only graphics on some pages, or even a single image across two pages. I'd like to reference them for two purposes-
    to build a list of plates - could be file name and page number as a starting point.
    to reference in explanitory text, eg "See earlier work X on page 22 and Z on pages 10-11"
    I can't figure out how to associate a marker with an image. I seem to have to create an empty text box as a child of the graphic and insert a text anchor if I want to insert a cross reference to that graphic elsewhere. It's a bit cludgy and I don't really know what to do with the graphics that span pages, or how to generate a list of plates when I'm done- I imagine I should be using the index tool, but then, will I have to create both an index and a text anchor? Or can a cross-reference link to a page reference created in the index tool, instead of a to text anchor/hyperlink destination? Or is there a way to index and cross reference non-text objects?
    I'm using CS5 version of InDesign.

    See http://forums.adobe.com/message/2614941 where this is discussed.
    Hope that helps

Maybe you are looking for

  • Error (PTRV_HEAD/PTRV_PERIO/Cluster TE)).

    Hi when i am creating the travel request i am getting this error(error while wirintg to the database(PTRV_HEAD/PTRV_PERIO/Cluster TE)). kindly lok into the issue guys , prem

  • Spool to pdf conversion

    Hi All I have created a pdf through spool, and the list is having output in ALV. The columns in ALV are 11 where as I am getting only 9 columns in pdf attachment. Can anyone suggest any solution to get all the 11 columns in pdf attachment. Thanks in

  • Cannot create Oracle model MS SQL 7 - Oracle 8.1.6

    Have MS SQL Server 7.0 and Oracle 8.1.6 running on same NT server. The SQL Server 7.0 Source Model is created with no problems - I can see each table and its owner (always dbo). When creating the Oracle model the tables from the MASTER database are l

  • CC stopped showing Ps and Br installed

    It's been 3-4 days since CC (windows) updated itself, and btw started loading automatically, and my problem is that it stopped showing my Ps and Br as installed applications. It only shows Lr. Furthermore, today, as I was notified for updates, Lr 5.5

  • How to change MNC& MCC in 3G-CDMA please help

    I have a Cisco  HWIC-3G-CDMA-S card I activate it and everything is good but my service provider asked me to change the MNC and MCC (Mobile Network Code and Mobile Country Code) but I found no command that can do it because it is CDMA and has no SIM