Welcome to TalkGraphics.com
Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1

    Default Page alignment and popup trigger

    Hi,

    two questions:

    1. Can XWD pages, I mean the html output, be aligned to left instead of centre alignment which comes by default?
    I realize that absolute positioning is being used for wysiwyg's sake, but could the page (in theory) be aligned to the browsers left edge?
    I'm doing mock ups for the customer and in cases when they have their service left aligned and my mock up is centre aligned it raises questions.

    2. Could popups be triggered by onClick instead of current hover method?
    Again this request is because I'm faking real functionality in my mock ups and popups are often a great way to show dynamic change but the hover based triggering is not natural for the specific case.

  2. #2
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Page alignment and popup trigger

    Quote Originally Posted by Markku View Post
    Hi,
    two questions:
    1. Can XWD pages, I mean the html output, be aligned to left instead of centre alignment which comes by default?
    I realize that absolute positioning is being used for wysiwyg's sake, but could the page (in theory) be aligned to the browsers left edge?
    I'm doing mock ups for the customer and in cases when they have their service left aligned and my mock up is centre aligned it raises questions.
    Yes, this can be done by a snippet. If you need it, I can write one for you.
    2. Could popups be triggered by onClick instead of current hover method?
    Yes, if you link your button to the pop up layer in the: "Web Properties dialog / Link tab / Popup layer:".
    John.

  3. #3

    Default Re: Page alignment and popup trigger

    Quote Originally Posted by covoxer View Post
    Yes, this can be done by a snippet. If you need it, I can write one for you.
    Yes, if you link your button to the pop up layer in the: "Web Properties dialog / Link tab / Popup layer:".
    Good tip John.

    How about a link/action on the pop up layer to close it?

  4. #4

    Default Re: Page alignment and popup trigger

    Quote Originally Posted by covoxer View Post
    Yes, this can be done by a snippet. If you need it, I can write one for you.
    This would be helpful! I'd love to have it, please.

  5. #5
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Page alignment and popup trigger

    Quote Originally Posted by sledger View Post
    How about a link/action on the pop up layer to close it?
    You mean something like this? http://www.talkgraphics.com/showpost...01&postcount=8
    John.

  6. #6

    Default Re: Page alignment and popup trigger

    Got it, thanks

  7. #7

    Default Re: Page alignment and popup trigger

    I saw earlier the same post as John just linked to and read that with great interest.

    All this stuff is very valuable and interesting.

    For popups I need them to be "sticky" (script by John) and be triggered by clicking (solution by John). So if this works like this then it is pretty easy and really nice of john to provide all this help.

    Left aligned page; Yes I would welcome that scripting help from you.

    Oh my, oh my! John, your help is fantastic!

  8. #8
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Page alignment and popup trigger

    Left aligned page.
    Create placeholder anywhere on the page and puth th ecode in it.
    If you want it to be applied to all pages you can insert it in the Web Properties dialog / Website tab / Tracker code.

    Code:
    <script type="text/javascript">
    function my_res(e)
    {
    if(my_oldres)my_oldres(e);
    xr.style.marginLeft="0px";
    xr.style.left="0px";
    dx=0;
    document.body.style.backgroundPosition="0px 0px";
    };
    var my_oldres=0;
    document.body.onload=my_lod;
    function my_lod()
    {
    my_oldres=window.onresize;
    window.onresize=my_res;
    my_res();
    };
    </script>
    John.

  9. #9

    Default Re: Page alignment and popup trigger

    Thanks so much, John! That was quick.
    However it seems to work only on IE and not on Firefox nor Chrome.
    Do you think it is easily fixed?

  10. #10

    Default Re: Page alignment and popup trigger

    Thank you! You're speedy!

 

 

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
  •