Click here to Skip to main content
15,912,324 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is a JavaScript Function
parent.document.getElementsByTagName("FRAMESET").item(1).cols = '100,*';

is it possibe to rewrite this function is JQuery. Please help me?
Posted
Updated 26-Jul-11 19:05pm
v2

1 solution

$("#framesetid or if there is one? frameset").find("#frameid").attr("cols", "100,*")

but i haven't tested it yet.
 
Share this answer
 
v2
Comments
Elk Cloner 27-Jul-11 3:45am    
not working in all the combinations that i tested?
Jamal Seyedi 27-Jul-11 3:48am    
can u email it?
my e-mail: jamalsayedi@yahoo.com
Elk Cloner 27-Jul-11 7:52am    
<FRAMESET rows="90px,81%" border="1" framespacing="0" frameborder="2">
<frame name="banner" src="Banner.aspx" border="1" frameborder="1" scrolling="no" class="frmtop">
<FRAMESET cols="20%,80%" border="1" frameborder="1" framespacing="0">
<frame name="contents" src="Menu.aspx" border="0" id="frmcontents" frameborder="0" framespacing="0" scrolling="yes">
<frame name="main" id="frmMain" src="dashbord.aspx" border="0" scrolling="auto" frameborder="0" framespacing="0" runat="server">
</FRAMESET>
</FRAMESET>

This is the format of my frames. There are three frames. They are banner,menu and dashbord. I need to adjust the first frame Rows when i place the mouse on the bannor.aspx, like that when i place mouse on the menu.aspx the second frames Cols need to adjust. is it possible to do so?
Jamal Seyedi 27-Jul-11 8:30am    
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="jquery-1.4.1-vsdoc.js" type="text/ecmascript"></script>
<script type="text/ecmascript">
<!--
$(document).ready(function ()
{
$("frame[name='banner']").mouseover(function ()
{
$(this.parentElement).attr("rows", "200px,81%");
});
$("frame[name='banner']").mouseout(function ()
{
$(this.parentElement).attr("rows", "90px,81%");
});


$("frame[name='contents']").mouseover(function ()
{
$(this.parentElement).attr("cols", "40%,60%");
});
$("frame[name='contents']").mouseout(function ()
{
name = ""
$(this.parentElement).attr("cols", "20%,80%");
});
});
//-->
</script>
</head>
<FRAMESET rows="90px,81%" border="1" framespacing="0" frameborder="2"> <frame name="banner" src="Banner.aspx" border="1" frameborder="1" scrolling="no" class="frmtop"> <FRAMESET cols="20%,80%" border="1" frameborder="1" framespacing="0"> <frame name="contents" src="Menu.aspx" border="0" id="frmcontents" frameborder="0" framespacing="0" scrolling="yes"> <frame name="main" id="frmMain" src="dashbord.aspx" border="0" scrolling="auto" frameborder="0" framespacing="0" runat="server"> </FRAMESET> </FRAMESET>
</html>
Jamal Seyedi 27-Jul-11 8:31am    
I've tested it ... it works...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900