Jump to content

Recommended Posts

Posted

hi all,

i`ve written a really simple html page for my active desktop. it contains a frameset with two frames. left and right. on the left are the links that should be opened in the right frame. everything works fine in a browser window. but on my desktop itll open in a new browser window instead of the right frame.

Must have to do something about Active Desktop. But how can i force the pages to open in my right frame?

Here is the code and i hope you can help me out.

--------------------------------------------------------------------------------------------

-----------------------------index.htm-----------------------------

<html>

<head>

<title>Under Construction</title>

<meta name="description" content="Under Construction">

<meta name="author" content="Administrator">

<meta name="generator" content="HTML EDITOR">

</head>

<frameset cols="10%,90%">

<frame src="left.html" name="left" noresize>

<frame src="right.html" name="right">

</frameset>

<body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000">

</body>

</html>

--------------------------------------------------------------------------------------------

-----------------------------left.htm-----------------------------

<html>

<head>

<title>Basic DHTML Menu</title>

<style type="text/css">

body { font-family:Verdana;font-size:11px;color:#000000; }

a:link { font-family:Verdana;font-size:12px;color:#000000;text-decoration:none; }

a:active { font-family:Verdana;font-size:12px;color:#000000;text-decoration:none; }

a:visited { font-family:Verdana;font-size:12px;color:#000000;text-decoration:none; }

a:hover { font-family:Verdana;font-size:12px;color:#000000;text-decoration:underline; }

a:link.sub { font-family:Verdana;font-size:10px;color:#000000;text-decoration:none; }

a:active.sub { font-family:Verdana;font-size:10px;color:#000000;text-decoration:none; }

a:visited.sub { font-family:Verdana;font-size:10px;color:#000000;text-decoration:none; }

a:hover.sub { font-family:Verdana;font-size:10px;color:#000000;text-decoration:underline; }

</style>

<script type="text/javascript">

<!--

function show(divid) {

document.getElementById("cat1").style.display="none";

document.getElementById("cat2").style.display="none";

document.getElementById(divid).style.display="inline";

}

//-->

</script>

</head>

<body bgcolor="#FFFFFF">

<a href="#" onclick="show('cat1')">Pictures</a><br>

<div id="cat1" style="display:none">

<a href="D:\Inetpub\wwwroot\HTML\index.html" target="right" class="sub">Anime</a><br>

<a href="#" class="sub">Manga</a><br>

<a href="#" target=right class="sub">Hentai</a><br>

</div><br>

<a href="#" onclick="show('cat2')">Category2</a><br>

<div id="cat2" style="display:none">

<a href="#" class="sub">Sub1</a><br>

<a href="#" class="sub">Sub2</a><br>

<a href="#" class="sub">Sub3</a><br>

</div><br>

</body>

</head>

</html>

--------------------------------------------------------------------------------------------

-----------------------------right.htm-----------------------------

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<title></title>

<meta name="author" content="Administrator">

<meta name="generator" content="Ulli Meybohms HTML EDITOR">

</head>

<body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000">

</body>

</html>


Posted

1st in your index.htm u've specified wrong names

<frame src="left.html" name="left" noresize>

<frame src="right.html" name="right">

u posted them as
-----------------------------right.htm-----------------------------

so u're missing a L at the end, u probably have it on your comp but didn't realize

2nd add this to index.htm to have it open left frame links at right frame

<base target="right">

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...