/    Sign up×
Community /Pin to ProfileBookmark

hierarchical menus vs. framejammer

hello!

i have a site with 3 frames – to make the navigation
easier i changed it and use now the hierarchical menus
(as shown here: [URL=http://www.webreference.com/dhtml/column21/index.html]http://www.webreference.com/dhtml/column21/index.html[/URL] )

it worked great, only the framejammer (to reload the
whole framset when a single webpage is linked form
elsewhere) i have now doesn’t work anymore!

when i deactivate the hierarchical menus the framejammer
works. so those two seem to have a problem with each
other!any idea how i could make them work together?

here you see the script for the jammer. if you need more
information about the hierarchical menus please tell me!

frameset:
<script>
// frameJammer_hp v2.5
if (self != top) // frame buster
{
top.location.replace(self.location);
}

function frameJammer_hp()
{
var framedPage = location.search;

if (framedPage.length > 1)
{
framedPage = framedPage.substring(1);
var theSplit = framedPage.lastIndexOf(‘~’);
var thePage = framedPage.substring(0,theSplit);
var theFrame = framedPage.substring(theSplit+1);
eval(“top.”+theFrame+”.location.replace(‘”+thePage+”‘)”);
}

}

// frameJammer_hp End
</script>

every webpage of the site:
<script>
var sUrl = “../frameset.htm?”;
sUrl += document.location;
sUrl += “~Mitte”;

if (window.name!=’Mitte’ && window.name!=’booker_’
&& !((self.innerHeight == 0) && (self.innerWidth == 0)))
{
top.location.replace(sUrl);
}

</script>

thanks for your help, birgit

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@swonDec 24.2002 — Try another framejammer, put it on every site where you want the frame jammer.

<script language="javascript">

if(window.location == top.location)

{top.location.href="frames.html";}

</script>

this should works.
×

Success!

Help @birgit 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 4.28,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

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