Hi Bazze,
Thanks for your quick reply. I posted a sample of what my page looks like.
As it is now, all divs are visible. What I want to achieve is when page load, only Div1 and Div6 is visible.
When user clicks "Show Div3", I want Div1 to fade-out and Div3 to fade-in.
When user clicks "Show Div7", I want Div6 to fade-out and Div7 to fade-in.
Thanks
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<table style="width: 100%; margin-top: 50px; margin-left: 80px;">
<tr style="height: 300px">
<td style="width: 50%">
<div style="position: relative;">
<div id="Div1" style="border: 3px solid #000066; height: 100px; position: absolute;
top: 0px; left: 0px; width: 200px;">Div1
</div>
<div id="Div2" style="border: 3px solid #6600CC; height: 100px; position: absolute;
top: 0px; left: 0px; width: 250px;">Div2
</div>
<div id="Div3" style="border: 3px solid #993399; height: 100px; position: absolute;
top: 0px; left: 0px; width: 275px;">Div3
</div>
<div id="Div4" style="border: 3px solid #669900; height: 100px; position: absolute;
top: 0px; left: 0px; width: 260px;">Div4
</div>
<div id="Div5" style="border: 3px solid #33CC33; height: 100px; position: absolute;
top: 0px; left: 0px; width: 255px;">Div5
</div>
</div>
</td>
<td>
<div style="position: relative;">
<div id="Div6" style="border: 3px solid #000066; height: 100px; position: absolute;
top: 0px; left: 0px; width: 200px;">Div6
</div>
<div id="Div7" style="border: 3px solid #6600CC; height: 100px; position: absolute;
top: 0px; left: 0px; width: 250px;">Div7
</div>
<div id="Div8" style="border: 3px solid #993399; height: 100px; position: absolute;
top: 0px; left: 0px; width: 275px;">Div8
</div>
<div id="Div9" style="border: 3px solid #669900; height: 100px; position: absolute;
top: 0px; left: 0px; width: 260px;">Div9
</div>
</div>
</td>
</tr>
<tr>
<td>
<input id="Button1" type="button" value="Show Div1" />
<input id="Button2" type="button" value="Show Div2" />
<input id="Button3" type="button" value="Show Div3" />
<input id="Button4" type="button" value="Show Div4" />
<input id="Button5" type="button" value="Show Div5" />
</td>
<td>
<input id="Button6" type="button" value="Show Div6" />
<input id="Button7" type="button" value="Show Div7" />
<input id="Button8" type="button" value="Show Div8" />
<input id="Button9" type="button" value="Show Div9" />
</td>
</tr>
</table>
</body>
</html>
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70:





by: BazzeFTWPosted on 2009-10-28 at 06:03:55ID: 25682737
Could you show the HTML? Would be a lot easier then. I can give you a more complete code if you show me the HTML-code.
Using jQuery (www.jquery.com):
Select allOpen in new window