/    Sign up×
Community /Pin to ProfileBookmark

A little Link Frame Split Redirect Action.. Problems.

Ok. What your looking at works to a degree.. What it does is loads the top frame which is important on the click through. BUT what does no work is the bottom page. I want it to be setup like a Please wait for a second in a page called “Redirect” to load and then redirect to the proper link. Take AOL.com for instance. Im fresh out of school and i got this far. Could someone Who can Hammer this down help out. Also idk if you can pass “<script LANGUAGE=’JavaScript’> function redirect:: with the ” around javaScript? am i missing any lines or just not lining it up right?

Thanks Guys.. You think you can Figure this one out?

<html>

<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<title>This is the Pits unless it works.</title>

<SCRIPT LANGUAGE=”JavaScript”>

function loadFrames(page1, page2) {
// / Everything below this until the window.document.write code is what gets written on the fly for the next window.
framecode =
//**call redirect funtion set timeout call the go_now function **
“<script LANGUAGE=’JavaScript’> function redirect () { setTimeout(‘go_now()’,10000); }”

//page2 is called because of the LoadFrames funtion above.

  • +

    “function go_now () { window.location.href = page2;}” + ” </script” + “>”

  • +

    “<frameset rows=’110,100%,’ border=0>”


  • +

    “<frame src='” + page1 + “‘scrolling=no>”

    // this link right here says what the page should originally be.
    // It should be like an orbitz thing.
    // Where it says please wait a minute to find results.

  • +

    “<frame src=’redirect.html’ name=bottom >”

  • +

    “</frameset>”;

  • window.document.write(framecode);

    }
    // End –>
    </script>
    </head>

    <body>
    <!–This Splits the link in the a tag…. into variables declaired uptop–>
    <a href=”javascript:loadFrames(‘http://www.mrcomputersolutions.com/salesmax/trying/topBaby.html’,’http://www.aol.com‘)”> Click this link and it will split into 2 frames. with a redirect on the bottom frame</a>

    </body>
    </html>

    to post a comment
    Java

    1 Comments(s)

    Copy linkTweet thisAlerts:
    @Khalid_AliMar 04.2005 — wrong forum, post your question in JavaScript forum.
    ×

    Success!

    Help @JrJavaScripter spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.17,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...