Results 1 to 2 of 2

Thread: Help with targetdestination var

  1. #1
    Join Date
    Sep 2004
    Thanked 0 Times in 0 Posts

    Default Help with targetdestination var

    I am adding the AnimationIntro to my site. See
    I am using frames, with the above effect operating in the main 'content' frame as a pseudo flash intro.

    I have 2 questions:

    1) I cannot seem to set the targetdestination page in the var. I want the intro to finish and then 'load' the main home page into the frame. The script I have tried is simply: var targetdestination='Content_home.htm'. This page is located in the same folder as the rest of the site files. The preview (IN FP2000 and IE) returns the standard 'This page cannot be displayed' . So, what am I doing wrong?? The var works fine with external urls.

    2) How do i reposition the layer/area where the intro text is displayed. I want to shift it up the page, rather than being centred as it is by default.

    Thanks in advance,

    J Clements.

  2. #2
    Join Date
    Aug 2004
    Thanked 1,008 Times in 993 Posts
    Blog Entries


    To answer your questions:

    1) Hmmm if all the files are in the same directory, simply specifying 'Content_home.htm' should work. Without knowing more about the structure of your directories, however, it's hard to say.

    2) The code below within function "displaysplash()" controls the vertical position of the messages (default: centered):

    Code: : document.body.scrollTop+document.body.clientHeight/2-sc_cross.offsetHeight/2
    To move it up then, you can modify it to something like:

    Code: : document.body.scrollTop+40
    Change 40 to a larger or smaller number to increase/decrease the offset.


Posting Permissions

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