Welcome to TalkGraphics.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2000
    Location
    Lunteren, The Netherlands
    Posts
    138

    Default pop up layer doesnt work after inserting javascript code

    Hi All,

    In a former lesson from Gary Priester he demonstrated a way to get the top of a page loose from the top of the browser window. You had to place the following javascript to the head html section of the website. <style>#xr_xr { margin-top: 20px;}</style>
    <script type="text/javascript">

    Today I found out that when you use the javascript a pop up layer doesn't work anymore. So I had to remove the script. Does anybody know if there is another way to get the page loose from the top?

    Ragards,
    Frits
    Attached Files Attached Files
    Last edited by frits; 19 September 2012 at 10:07 AM. Reason: demo page attached

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,503

    Default Re: pop up layer doesnt work after inserting javascript code

    Hello Frits

    There is an easier way that works with Designer Pro and Web Designer.

    First remove the code.

    Enable Rulers.

    Add a pasteboard color by dragging and dropping a color onto the pasteboard.

    Drag the Set Drag 0,0 Point cross hairs so the beginning point is above the page as shown in my illustration.

    That's it.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	set origin point.png 
Views:	90 
Size:	12.2 KB 
ID:	92244  

  3. #3
    Join Date
    Aug 2000
    Location
    Lunteren, The Netherlands
    Posts
    138

    Default Re: pop up layer doesnt work after inserting javascript code

    Hi Gary,
    That's a great tip! I had to figure it out but it works fine.
    Thank you very much.
    Regards,
    Frits

  4. #4
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,503

    Default Re: pop up layer doesnt work after inserting javascript code

    Steve Ledger from whom I got that script originally says that it should be:

    <style>#xr_xr { margin-top: 20px;}</style> (change the size as you wish)

    This script will not cause the conflicts you noted.

  5. #5
    Join Date
    Aug 2000
    Location
    Lunteren, The Netherlands
    Posts
    138

    Default Re: pop up layer doesnt work after inserting javascript code

    Hi Gary,

    Thank you, that might be easier. Because you have to use the script tag just once for the whole site. And the suggestion you did has to be used for each page, once you have the pages. When you start a new site it's fine, because you can do it for one page and then copy it (I think).

    But both ways work fine.

    Again, big thanks.

    Frits

  6. #6
    Join Date
    May 2009
    Location
    Stoke on Trent , UK
    Posts
    384

    Default Re: pop up layer doesnt work after inserting javascript code

    hi gary ive just tried the code method and as frits says it stops a popup layer effect from working - it pops up on mouseover like it should but doesnt pop back off when the mouse is moved away

    :-))

  7. #7
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,503

    Default Re: pop up layer doesnt work after inserting javascript code

    trukkerz - did you add the code to the Head section?

    I just tried that snippet of code in my gwpriester.com website which is popup layer intensive and it works fine. (I previewed the entire site in the Xara browser. On my actual site I used the drag down 1:1 point method).

  8. #8
    Join Date
    May 2009
    Location
    Stoke on Trent , UK
    Posts
    384

    Default Re: pop up layer doesnt work after inserting javascript code

    yes i pasted it into the head section of the website and on the left hand side of the site i had 5 small pics which when the mouse goes over them they expand/grow a little then shrink back when the mouse is moved away but when the code is inserted they grow and stop like that . without the code they work fine - no worries it wasnt my site i was playing with just thought i would say i did have a problem with a popup layer

    cheerz

  9. #9
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,503

    Default Re: pop up layer doesnt work after inserting javascript code

    OK

 

 

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
  •