View Full Version : Frame work needs help with buttons


the-new-wwe
07-10-2003, 02:27 PM
well heres theproblem i know you have to target the frame but I am using buttons and i cant figure out how to target it please help my page is www.the-new-wwe.cjb.net and can i have an inline frame where the writing is

MaGiCSuN
07-10-2003, 06:54 PM
change your framecode to this, you had the frameset into the <head> part:

<html>
<head> <script language="JavaScript"> <!--
// No rightclick script v.2.5
// (c) 1998 barts1000
// barts1000@aol.com
//provided free at http://www.lissaexplains.com
// Don't delete this header!

var message="Sorry, that function is disabled.\n\nContents & Graphics Copyright ©WWE The new Generation\nOur work is not Public Domain, and should NOT be taken from this site."; // Message for the alert box

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script>
<title>KWF</title></head>
<frameset cols=20%,80%>
<frame src="http://www.geocities.com/kwf76/frame.html" name="frame">
<frame src="http://www.geocities.com/kwf76/" name="main">
</frameset> <frame src="www.geocities.com/kwf76" name="main">

<body>
</body>
</html>

and change your frame.html page to this:

<html>
<head>
<style type="text/css">
<!--
BODY{
scrollbar-face-color:blue;
scrollbar-arrow-color:cyan;
scrollbar-track-color:black;
scrollbar-shadow-color:blue;
scrollbar-highlight-color:blue;
scrollbar-3dlight-color:black;
scrollbar-darkshadow-Color:blue;
}
-->
</style>
<script language="JavaScript"> <!--
// No rightclick script v.2.5
// (c) 1998 barts1000
// barts1000@aol.com
//provided free at http://www.lissaexplains.com
// Don't delete this header!

var message="Sorry, that function is disabled.\n\nContents & Graphics Copyright ©WWE The new Generation\nOur work is not Public Domain, and should NOT be taken from this site."; // Message for the alert box

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script>



<title> Frame</title></head>
<body bgcolor=black>
<font size=4><font color=blue><u><b>NON-MEMBERS</u> </b>
<FORM METHOD="link"
ACTION=http://www.geocities.com/kwf76/Rules.html TARGET="main">
<INPUT TYPE="submit"
VALUE="Rules"
style="font-family:impact"
style="border style:solid"
style="background:black"
style="color:blue">
</FORM>
<FORM METHOD="link"
ACTION=http://www.geocities.com/kwf76/ROSTER.html TARGET="main">
<INPUT TYPE="submit"
VALUE="Roster"
style="font-family:impact"
style="border style:solid"
style="background:black"
style="color:blue">
</FORM>
<FORM METHOD="link"
ACTION=http://www.geocities.com/kwf76/STABLES.html TARGET="main">
<INPUT TYPE="submit"
VALUE="Stables"
style="font-family:impact"
style="border style:solid"
style="background:black"
style="color:blue">
</FORM>
<FORM METHOD="link"
ACTION=http://www.geocities.com/kwf76/titles.html TARGET="main">
<INPUT TYPE="submit"
VALUE="Champions"
style="font-family:impact"
style="border style:solid"
style="background:black"
style="color:blue">
</FORM>
<FORM METHOD="link"
ACTION=http://www.geocities.com/kwf76/staff.html TARGET="main">
<INPUT TYPE="submit"
VALUE="Staff"
style="font-family:impact"
style="border style:solid"
style="background:black"
style="color:blue">
</FORM>
<FORM METHOD="link"
ACTION=http://fs3.formsite.com/kwform/form652967437/index.html TARGET="main">
<INPUT TYPE="submit"
VALUE="Join"
style="font-family:impact"
style="border style:solid"
style="background:black"
style="color:blue">
</FORM>

<font size=4><font color=blue><u><b>MEMBERS</u> </b>
<FORM METHOD="link"
ACTION=http://www.geocities.com/kwf76/ROSTER.html TARGET="main">
<INPUT TYPE="submit"
VALUE="Roster"
style="font-family:impact"
style="border style:solid"
style="background:black"
style="color:blue">
</FORM>
<FORM METHOD="link"
ACTION=http://www.geocities.com/kwf76/STABLES.html TARGET="main">
<INPUT TYPE="submit"
VALUE="Stables"
style="font-family:impact"
style="border style:solid"
style="background:black"
style="color:blue">
</FORM>
<FORM METHOD="link"
ACTION=http://www.geocities.com/kwf76/titles.html TARGET="main">
<INPUT TYPE="submit"
VALUE="Champions"
style="font-family:impact"
style="border style:solid"
style="background:black"
style="color:blue">
</FORM>
<FORM METHOD="link"
ACTION=http://www.geocities.com/kwf76/Rules.html TARGET="main">
<INPUT TYPE="submit"
VALUE="Rules"
style="font-family:impact"
style="border style:solid"
style="background:black"
style="color:blue">
</FORM>
<FORM METHOD="link"
ACTION=http://www.geocities.com/kwf76/raw_card.html TARGET="main">
<INPUT TYPE="submit"
VALUE="Raw Card"
style="font-family:impact"
style="border style:solid"
style="background:black"
style="color:blue">
</FORM>
<FORM METHOD="link"
ACTION=http://www.geocities.com/kwf76/raw_results.html TARGET="main">
<INPUT TYPE="submit"
VALUE="Raw Results"
style="font-family:impact"
style="border style:solid"
style="background:black"
style="color:blue">
</FORM>

<FORM METHOD="link"
ACTION=http://www.geocities.com/kwf76/rp.html TARGET="main">
<INPUT TYPE="submit"
VALUE="Boards and Chat room"
style="font-family:impact"
style="border style:solid"
style="background:black"
style="color:blue">
</FORM>
</body>
</html>

you had links targetted to "rightside" but you don't even have a frame named "rightside" so i targetted everything to "main" which is the frame that is called like that. You also used links AROUND the buttons, but you only need a button no extra links around it.

as for the iframe part, i don't see the use of it, but you can add an iframe yeah. Just add <iframe height="#px" width="#px" frameborder="0" src="text.html" name="text"></iframe> on the place you want the iframe to appear. And then make a page called text.html with the text onit, so that that one opens into the iframe when entering the site.

Love,
Mirna