Results 1 to 2 of 2

Thread: Help with targetdestination var

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

    Default Help with targetdestination var

    Hi,
    I am adding the AnimationIntro to my site. See http://www.dynamicdrive.com/dynamici...htmlsplash.htm.
    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
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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:
    sc_cross.style.top=ns6?parseInt(window.pageYOffset)+parseInt(window.innerHeight)/2-sc_cross.offsetHeight/2 : document.body.scrollTop+document.body.clientHeight/2-sc_cross.offsetHeight/2
    To move it up then, you can modify it to something like:

    Code:
    sc_cross.style.top=ns6?parseInt(window.pageYOffset)+40 : document.body.scrollTop+40
    Change 40 to a larger or smaller number to increase/decrease the offset.

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
  •