Jump to content

This topic is 7770 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I need my page to jump to an anchor after the page loads. The anchor number is generate in FPM, the onLoad script is DW's - Doe anyon have a clean solution that word on explore and safari

---------

function MM_goToURL() { //v3.0

var i, args=MM_goToURL.arguments; document.MM_returnValue = false;

for (i=0; i<(args.length-1); i+=2) eval(args+".location='"+args[i+1]+"'");

}

//-->

</script>

</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_goToURL('content','#[FMP-Field:a_RandomAnchor]');return document.MM_returnValue">

Posted

u have to specify whihc page will be the one with acnhors:

<body onLoad="MM_goToURL('parent','ResutlsPage.html#FMP-Field-Value-that-holds anchor name');return document.MM_returnValue">

but remember that Anchors have to ANCHORED meaning that they have to exsit and be named in the page so probably ur looking into some JS on that ResultsPage ( or any other way u generate anchors)

Response.Write("<a name="FMP-Field-Value-that-holds anchor name"></a>")

All the best!

Posted

This one works for me:

<style>

#one { position: absolute; top: 100px; left: 10px; width: 200px; height: 400px; background-color: blue }

#two { position: absolute; top: 800px; left: 10px; width: 100px; height: 200px; background-color: red }

</style>

</head>

<body onload="document.location='#anchorbottom';">

Hello World

<div id="one">The Div</div>

<div id="two">After the DIV<b>

<a name="anchorbottom">At the bottom</a>

</div>

</body>

Good Luck.

Garry

This topic is 7770 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.