equalie
04-30-2008, 06:41 AM
1) Script Title: Ajax Tabs Content Script (v 2.2)
2) Script URL (on DD): http://dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
3) Describe problem:
Im having problems naming the Div container. i used the origional demo div setup and it works but when i try to change the names a little, it changes to a link and doesn't use ajax. heres the script as you can see i named the Div container admindivframe and used the javascript at the end as the same name any help would be great
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="ajaxtabs/ajaxtabs.js">
/***********************************************
* Ajax Tabs Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<style type="text/css">
<!--
.style3 {font-family: "Dark Crystal"; color: #FFFFFF; }
-->
</style></head>
<body bgcolor="414141">
<table align="center" width="522" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5" width="522" height="59" background="adminpage/images/forktop.GIF"></tr>
<tr>
<td width="11" rowspan="2" background="adminpage/images/left.jpg" bgcolor="414141"> </td>
<ul id="admintabs">
<td height="29" width="166" background="adminpage/images/possbutton.GIF"><a href="admincommands.html" rel="adminframe"><div align="center"><span class="style3">Admin Commands</span></div></a></td>
<td width="167" bordercolor="0" background="adminpage/images/centbutton.GIF"><div align="center"><span class="style3">Want Admin?</span></div></td>
<td width="166" background="adminpage/images/possbutton2.gif"><div align="center"><span class="style3">Admin Abuse</span></div></td>
<td width="11" rowspan="2" background="adminpage/images/right.jpg"> </td>
</ul>
</tr>
<tr>
<td width="500" colspan="3" height="300" bgcolor="414141"><div id="admindivframe"><div align="center"><img src="adminpage/images/Image3.gif" /></div>
</div> </td>
</tr>
<tr>
<td colspan="5" ><img src="adminpage/images/forkbottom.gif" width="522" height="59"/></td>
</tr>
</table>
<script type="text/javascript">
var countries=new ddajaxtabs("admintabs", "admindivframe")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
</body>
</html>
thanks for the help ~joey~
2) Script URL (on DD): http://dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
3) Describe problem:
Im having problems naming the Div container. i used the origional demo div setup and it works but when i try to change the names a little, it changes to a link and doesn't use ajax. heres the script as you can see i named the Div container admindivframe and used the javascript at the end as the same name any help would be great
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="ajaxtabs/ajaxtabs.js">
/***********************************************
* Ajax Tabs Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<style type="text/css">
<!--
.style3 {font-family: "Dark Crystal"; color: #FFFFFF; }
-->
</style></head>
<body bgcolor="414141">
<table align="center" width="522" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5" width="522" height="59" background="adminpage/images/forktop.GIF"></tr>
<tr>
<td width="11" rowspan="2" background="adminpage/images/left.jpg" bgcolor="414141"> </td>
<ul id="admintabs">
<td height="29" width="166" background="adminpage/images/possbutton.GIF"><a href="admincommands.html" rel="adminframe"><div align="center"><span class="style3">Admin Commands</span></div></a></td>
<td width="167" bordercolor="0" background="adminpage/images/centbutton.GIF"><div align="center"><span class="style3">Want Admin?</span></div></td>
<td width="166" background="adminpage/images/possbutton2.gif"><div align="center"><span class="style3">Admin Abuse</span></div></td>
<td width="11" rowspan="2" background="adminpage/images/right.jpg"> </td>
</ul>
</tr>
<tr>
<td width="500" colspan="3" height="300" bgcolor="414141"><div id="admindivframe"><div align="center"><img src="adminpage/images/Image3.gif" /></div>
</div> </td>
</tr>
<tr>
<td colspan="5" ><img src="adminpage/images/forkbottom.gif" width="522" height="59"/></td>
</tr>
</table>
<script type="text/javascript">
var countries=new ddajaxtabs("admintabs", "admindivframe")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
</body>
</html>
thanks for the help ~joey~