Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Nov 2009
    Posts
    24

    Default Losing layers after adding a map through a placeholder

    Hello All

    Some help please, im sure it is something silly.

    When I have added some code to a place holder, the layers on the buttons of each page become not active, they still act as links but do not change colour as on other pages.

    Please see here on the contact page for the problem

    http://www.chpevents.co.uk/contact.htm

  2. #2
    Join Date
    Oct 2007
    Location
    Richmond, MI USA
    Posts
    1,221

    Default Re: Losing layers after adding a map through a placeholder

    Can you attach you file?

  3. #3
    Join Date
    Nov 2009
    Posts
    24

    Default Re: Losing layers after adding a map through a placeholder

    Sorry , here you go.
    Attached Files Attached Files

  4. #4
    Join Date
    Oct 2007
    Location
    Richmond, MI USA
    Posts
    1,221

    Default Re: Losing layers after adding a map through a placeholder

    Only thing I did was remove the first and last lines of code with the <div> tags. Replace your code with this code:

    <iframe width="500" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.multimap.com/client/embed/?width=500&amp;height=400&amp;lat=53.1882&amp;lon=-2.89053&amp;zoomFactor=18&amp;emid=P3Cwl9mx2k9SQ5h e0FQnK4Z3roB9COfZ&amp;qs=ch11rs&amp;mapType=map&am p;moveMap=7,16"></iframe>

    I would also size the placeholder to 500x400 so I could place it on the page better. It worked fine for me. Let me know if it works for you.

    Jim

  5. #5
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: Losing layers after adding a map through a placeholder

    Code should end </div> not <div>

    placeholders wrap <div></div> tags around the code you insert so are often not required.
    Last edited by Drwyd; 16 February 2010 at 10:26 PM.

  6. #6
    Join Date
    Oct 2007
    Location
    Richmond, MI USA
    Posts
    1,221

    Default Re: Losing layers after adding a map through a placeholder

    Drwrd,
    I guess your method would be more correct than mine. What exactly do these particular tags do?

    Jim

  7. #7

    Default Re: Losing layers after adding a map through a placeholder

    Hi Jim,

    W3Schools is a great resource of information for this sort of thing, I often pop over there to refresh my memory or learn something new.

    DIV tags

  8. #8
    Join Date
    Oct 2007
    Location
    Richmond, MI USA
    Posts
    1,221

    Default Re: Losing layers after adding a map through a placeholder

    I should re-phrase the question: What does <div id="MMEmbeddedMap" mean or do in this instance? I'm not smart enough to comprehend what this all means. Thanks for the patience.

    Jim

  9. #9

    Default Re: Losing layers after adding a map through a placeholder

    I do beg your pardon Jim. Obviously I made a mistake.

  10. #10
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: Losing layers after adding a map through a placeholder

    Hi Jim

    The id in this case seems redundant, I didn't see it made use of anywhere and the 8px padding would probably only confuse things so stripping it down to the iframe code was the best solution.

    Div (division) tags usually define a section or area that can be styled separately as a block and are often used to create the main layout of a page.

    Placeholders in Xara, when placed on the page rather than the pasteboard, create a pair of div tags to enclose your code. The additional div tags are usually only needed if you wish to add additional styling.

    e.g.

    <div style="border:5px solid red; width: 500px">
    ...
    ...
    ...
    </div>

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •