civic3x98
03-02-2006, 05:57 PM
Hi all, Thanks in advance!
I have designed a system to help administor my companies web site more effiiciently. I am using a frameset with multiple rows. Each row has a link on it with a category name. When you click the category name for a particular row, all other rows resize and become very thin, white the category selected becomes large and displays information. Make sense?
Well this frameset work fine except when you click the category link and the row becomes wide... you have to click it again to make it thin before you can select another category to view.
This is not a huge deal, but an annoying inconvenience... people do not like over clicking. Is it possible to click on a catogory, view it... then click another category and the previous frame shrinks and the new category automatically becomes big?
Here is the code that shows the link to click on:
<a href="javascript:parent.resizeFrame('5%, 3%, *')">
Here is the JavaScript code required for the head:
<script language="JavaScript" type="text/javascript">
<!--
function checkform ( form )
{
// see http://www.thesitewizard.com/archive/validation.shtml
// for an explanation of this script and how to use it on your
// own website
// ** START **
if (start.grab_logo.value == "") {
alert( "Whoops! I think you forgot your logo!" );
form.grab_logo.focus();
return false ;
}
if (start.web_url.value == "") {
alert( "Whoops! I don't know what web site you want to use!" );
form.web_url.focus();
return false ;
}
if (start.company_name.value == "") {
alert( "Hey! What company does this logo belong to?" );
form.web_url.focus();
return false ;
}
// ** END **
return true ;
}
//-->
</script>
<SCRIPT TYPE="text/javascript">
<!--
function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
{
if(mySel.form.target)myWin = parent[mySel.form.target];
else myWin = window;
if (! myWin) return true;
myWin.location = myVal;
}
return false;
}
//-->
</SCRIPT>
I have designed a system to help administor my companies web site more effiiciently. I am using a frameset with multiple rows. Each row has a link on it with a category name. When you click the category name for a particular row, all other rows resize and become very thin, white the category selected becomes large and displays information. Make sense?
Well this frameset work fine except when you click the category link and the row becomes wide... you have to click it again to make it thin before you can select another category to view.
This is not a huge deal, but an annoying inconvenience... people do not like over clicking. Is it possible to click on a catogory, view it... then click another category and the previous frame shrinks and the new category automatically becomes big?
Here is the code that shows the link to click on:
<a href="javascript:parent.resizeFrame('5%, 3%, *')">
Here is the JavaScript code required for the head:
<script language="JavaScript" type="text/javascript">
<!--
function checkform ( form )
{
// see http://www.thesitewizard.com/archive/validation.shtml
// for an explanation of this script and how to use it on your
// own website
// ** START **
if (start.grab_logo.value == "") {
alert( "Whoops! I think you forgot your logo!" );
form.grab_logo.focus();
return false ;
}
if (start.web_url.value == "") {
alert( "Whoops! I don't know what web site you want to use!" );
form.web_url.focus();
return false ;
}
if (start.company_name.value == "") {
alert( "Hey! What company does this logo belong to?" );
form.web_url.focus();
return false ;
}
// ** END **
return true ;
}
//-->
</script>
<SCRIPT TYPE="text/javascript">
<!--
function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
{
if(mySel.form.target)myWin = parent[mySel.form.target];
else myWin = window;
if (! myWin) return true;
myWin.location = myVal;
}
return false;
}
//-->
</SCRIPT>